Stop advertising OAuth so Claude MCP discovery can succeed.

Drop empty authorization_servers well-known ads, 404 discovery probes as JSON, and keep bearer-only /mcp auth.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-11-02 22:25:17 -06:00
co-authored by Cursor
parent 8c9b4d5f7d
commit 7fd040ad62
5 changed files with 23 additions and 24 deletions
+3 -2
View File
@@ -14,8 +14,9 @@ export default defineEventHandler((event) => {
path.startsWith('/_nuxt') ||
path.startsWith('/favicon') ||
path === '/login' ||
path === '/.well-known/oauth-protected-resource' ||
path.startsWith('/.well-known/oauth-protected-resource/')
// Claude MCP discovery — never 302 to /login (JSON 404 handlers serve these).
path === '/.well-known/oauth-authorization-server' ||
path === '/.well-known/openid-configuration'
) {
return
}