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