feat(mcp): admin token CRUD HTTP handler (POST/GET/DELETE) + TokenService.List/GetByID

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-08 11:04:37 +08:00
parent 2d6521e610
commit d0efe2bdd4
3 changed files with 207 additions and 0 deletions
+4
View File
@@ -272,6 +272,10 @@ func New(ctx context.Context, cfg *config.Config, dist embed.FS) (*App, error) {
}
mcpServer := mcp.NewMCPServer(mcpDeps)
mcp.MountTransports(r, mcpServer, mcpTokenSvc, mcpRateLimiter)
mcp.MountAdmin(r, mcp.AdminHandlerDeps{
Tokens: mcpTokenSvc,
Users: userSvc,
})
// ===== ACP module wiring (Part 2: full SessionService + Supervisor) =====
acpRepo := acp.NewPostgresRepository(pool)