- internal/auth/jwt.go: JWTValidator via lestrrat-go/jwx/v2, JWKS auto-refresh - internal/auth/bearer.go: replace Gitea PAT validation with JWT->static->default chain - internal/gitea/client.go: always use service PAT; remove TokenFromContext lookup - internal/config/config.go: add DexIssuerURL, MCPAudience, MCPResourceURL, StaticToken - cmd/gitea-mcp/main.go: wire validator, fix /.well-known to return real AS list - bearer_test.go: rewrite for new API
34 lines
780 B
JSON
34 lines
780 B
JSON
{
|
|
"mcpServers": {
|
|
"knowledge": {
|
|
"url": "http://localhost:3100/mcp",
|
|
"description": "Project knowledge base — vector + graph retrieval"
|
|
},
|
|
"brain": {
|
|
"type": "http",
|
|
"url": "https://brain-mcp.d-ma.be/mcp",
|
|
"headers": {
|
|
"Authorization": "Bearer ${BRAIN_MCP_TOKEN}"
|
|
}
|
|
},
|
|
"supervisor": {
|
|
"type": "http",
|
|
"url": "https://supervisor-mcp.d-ma.be/mcp",
|
|
"headers": {
|
|
"Authorization": "Bearer ${SUPERVISOR_MCP_TOKEN}"
|
|
}
|
|
},
|
|
"gitea": {
|
|
"type": "http",
|
|
"url": "https://git-mcp.d-ma.be/mcp",
|
|
"headers": {
|
|
"Authorization": "Bearer ${GITEA_MCP_TOKEN}"
|
|
}
|
|
},
|
|
"infra": {
|
|
"type": "http",
|
|
"url": "https://infra-mcp.d-ma.be/mcp"
|
|
}
|
|
}
|
|
}
|