MCP: scopes_supported в описании защищённого ресурса (Claude иначе просит все scope realm)
All checks were successful
ci / test (push) Successful in 39s
ci / deploy (push) Successful in 2m41s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 08:53:04 +03:00
parent 213ef36bcf
commit 7638242a51

View File

@@ -75,6 +75,7 @@ export function buildApi(deps: ApiDeps): FastifyInstance {
resource: `${base}/mcp`,
...(deps.settings.mcp.issuer ? { authorization_servers: [deps.settings.mcp.issuer] } : {}),
bearer_methods_supported: ["header"],
scopes_supported: ["openid", "email", "profile"],
};
});
registerMcp(app, { pool: deps.pool, settings: deps.settings });