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:
@@ -1,7 +0,0 @@
|
||||
import { mcpOauthProtectedResource } from '~/server/utils/aigenMcp'
|
||||
|
||||
export default defineEventHandler((event) => {
|
||||
setResponseHeader(event, 'Content-Type', 'application/json')
|
||||
setResponseHeader(event, 'Cache-Control', 'no-store')
|
||||
return mcpOauthProtectedResource()
|
||||
})
|
||||
Reference in New Issue
Block a user