fix(mcpd): anthropic adapter supports OAuth (sk-ant-oat) keys via Bearer #84
Reference in New Issue
Block a user
Delete Branch "fix/mcpd-anthropic-oauth"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mcpd's anthropic adapter only sent
x-api-key, so a Claude subscription / Claude Code OAuth token (sk-ant-oat…) 401'd when registered as a fallback Llm. Mirror the mcplocal client'sisOAuthswitch (Bearer forsk-ant-oat, x-api-key otherwise). Enables the anthropic failover target. 21 adapter tests green, tsc clean.🤖 Generated with Claude Code
Claude subscription / Claude Code keys are OAuth tokens and authenticate with Authorization: Bearer, not x-api-key. mcpd's server adapter only sent x-api-key, so registering an OAuth key as a fallback Llm 401'd ("invalid x-api-key"). Mirror the mcplocal client adapter's isOAuth switch so an OAuth key works as a server-side anthropic fallback. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>