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

@@ -22,7 +22,7 @@ spec:
fsGroup: 1000
containers:
- name: hermes-mcp
image: localhost:32000/hermes-mcp@sha256:e5dec7b23a64f2f2d7977d24ca789dbcc077bcffb86a5b623d6ec64ff2436e06
image: localhost:32000/hermes-mcp@sha256:ab1d74247354c49cd5be651433a95b683da8a7204ddfb0367569ee6b48a62561
imagePullPolicy: Always
securityContext:
allowPrivilegeEscalation: false

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