mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 02:57:20 +00:00
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:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user