feat(mcp): add OAuth 2.1 support (#505)

* feat(mcp): add OAuth 2.1 support with dynamic client registration

* feat(api): alias bare oauth-authorization-server discovery endpoint

* fix(auth): preserve user session on OAuth sign-in redirect to consent
This commit is contained in:
Yiling-J
2026-10-29 15:39:37 +08:00
committed by GitHub
parent 96539207d0
commit baf30730af
39 changed files with 19604 additions and 44 deletions
+1
View File
@@ -134,6 +134,7 @@ async function run() {
const routes: Record<string, any> = {
'/api/*': app.fetch,
'/files/*': app.fetch,
'/.well-known/*': app.fetch,
// Shumai's MCP server; without this entry the SPA catch-all (`/*`) would serve it HTML.
'/mcp': app.fetch,
}