Commit Graph

9 Commits

Author SHA1 Message Date
simon.franken
64211e6a49 feat: add MCP endpoint and API key management
- Add ApiKey Prisma model (SHA-256 hash, prefix, lastUsedAt) with migration
- Implement ApiKeyService (create, list, delete, verify)
- Extend requireAuth middleware to accept sk_-prefixed API keys alongside JWTs
- Add GET/POST /api-keys routes for creating and revoking keys
- Add stateless Streamable HTTP MCP server at POST/GET /mcp exposing all 20
  time-tracking tools (clients, projects, time entries, timer, statistics,
  client targets and corrections)
- Frontend: ApiKey types, apiKeys API module, useApiKeys hook
- Frontend: ApiKeysPage with key table, one-time raw-key reveal modal, and
  inline revoke confirmation
- Wire /api-keys route and add API Keys link to Management dropdown in Navbar
2026-03-16 15:26:09 +01:00
simon.franken
078dc8c304 Add Prisma session store for persistent sessions 2026-02-23 11:39:09 +01:00
51c003cb0d update 2026-02-18 20:18:55 +01:00
859420c5d6 fix 2026-02-18 20:15:11 +01:00
simon.franken
4cce62934e adds targets 2026-02-18 14:27:44 +01:00
64fd134044 improvements 2026-02-16 19:54:15 +01:00
2311cd8265 fix 2026-02-16 18:25:09 +01:00
simon.franken
a9228d19c8 fix 2026-02-16 16:09:07 +01:00
simon.franken
7d678c1c4d creates application 2026-02-16 10:15:27 +01:00