fix(auth)!: remove /.well-known/openid-configuration/mcp route #284
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.62) × (1 − Review Confidence (0.48)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 259 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.00 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.350
Diff Size
diff_size
0.333
Sensitive Paths
sensitive_paths
0.062
Real PR Conversation Timeline
2 items
Approved
Approved these changes.
rozzilla
mcollina
Summary
GET /.well-known/openid-configuration/mcp(src/routes/well-known.ts) built authorization-server metadata fromauthorizationServers[0]:authorization_endpoint,token_endpointandtoken_introspection_endpointwere guessed by appending fixed paths (/oauth/authorize,/oauth/token,/oauth/introspect) to the issuer.scopes_supportedwas hard-coded to['read','write','mcp:resources','mcp:prompts','mcp:tools']and ignoredrequiredScopes.Authorization-server metadata belongs to the authorization server. MCP clients find it through the
authorization_serverslisted in the protected resource metadata (RFC 9728, MCP spec "Authorization Server Discovery"), and the plugin already serves that. This PR removes the route instead of keeping guessed values.src/routes/well-known.ts.test/well-known-routes.test.tswith a regression test that checks the route returns 404.authorization_servers. The route itself was never documented.Breaking change
GET /.well-known/openid-configuration/mcpnow returns 404. Clients that relied on it should readauthorization_serversfrom/.well-known/oauth-protected-resource(or/.well-known/oauth-protected-resource{path}) and fetch RFC 8414 / OIDC discovery metadata from the authorization server.Fixes #263
🤖 Generated with Claude Code
https://claude.ai/code/session_01UF4S3w7iA83V9DVsasLJzM