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
@@ -0,0 +1,7 @@
/** Claude discovery probe — no OAuth; never redirect to /login. */
export default defineEventHandler((event) => {
setResponseStatus(event, 404)
setResponseHeader(event, 'Content-Type', 'application/json')
setResponseHeader(event, 'Cache-Control', 'no-store')
return { error: 'not found' }
})