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:
Garfield
2026-06-12 15:04:46 -04:00
parent 6604ab5d2b
commit f084be6bc6
2 changed files with 2 additions and 1 deletions

View File

@@ -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',