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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user