fix(mcpd): anthropic adapter supports OAuth (sk-ant-oat) keys via Bearer #84

Merged
michal merged 1 commits from fix/mcpd-anthropic-oauth into main 2026-07-21 22:46:27 +00:00
Owner

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's isOAuth switch (Bearer for sk-ant-oat, x-api-key otherwise). Enables the anthropic failover target. 21 adapter tests green, tsc clean.

🤖 Generated with Claude Code

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's `isOAuth` switch (Bearer for `sk-ant-oat`, x-api-key otherwise). Enables the anthropic failover target. 21 adapter tests green, tsc clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
michal added 1 commit 2026-07-21 22:43:58 +00:00
fix(mcpd): anthropic adapter supports OAuth (sk-ant-oat) keys via Bearer
Some checks failed
CI/CD / lint (pull_request) Successful in 1m4s
CI/CD / test (pull_request) Successful in 1m19s
CI/CD / typecheck (pull_request) Successful in 2m11s
CI/CD / build (pull_request) Successful in 2m27s
CI/CD / smoke (pull_request) Failing after 2m48s
CI/CD / publish (pull_request) Has been skipped
a1c545d21a
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>
michal merged commit e95aeeb3a2 into main 2026-07-21 22:46:27 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: michal/mcpctl#84