fix(oauth): register Anthropic Claude.ai redirect_uri for browser MCP flow
Add https://claude.ai/api/mcp/auth_callback to the pre-registered OAuth client redirect_uris so the new /oauth/connect-claude-ai route works. ensureOAuthAppRegistered uses ON DUPLICATE KEY UPDATE so the DB row is updated on the next server startup.
This commit is contained in:
@@ -2361,6 +2361,7 @@ async function main() {
|
||||
if (oauthClientId && oauthClientSecret) {
|
||||
await ensureOAuthAppRegistered(oauthClientId, oauthClientSecret, [
|
||||
`${SERVER_URL}/oauth/mcp-callback`,
|
||||
'https://claude.ai/api/mcp/auth_callback',
|
||||
'http://localhost:*',
|
||||
'claude-desktop://callback',
|
||||
'opencode://callback',
|
||||
|
||||
Reference in New Issue
Block a user