-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
area:autharea:mcpbugSomething isn't workingSomething isn't workinghas reproHas detailed reproduction stepsHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOSIssue specifically occurs on macOS
Description
Environment
- Platform (select one):
- Anthropic API
- AWS Bedrock
- Google Vertex AI
- Other:
- Claude CLI version: 1.0.31 (Claude Code)
- Operating System: MacOS 15.5
- Terminal: Terminal App
Bug Description
Similar to #1763, Claude Code attempts OAuth2 Dynamic Client Registration despite the MCP being configured with an Authorization header.
Steps to Reproduce
- Run a server on localhost:8098
claude mcp add --transport http my-mcp-local 'http://localhost:8098/ai/mcp' -H "Authorization: Bearer dummy"- Open
claudeand type/mcpto verify the configuration
Expected Behavior
- Claude Code should perform MCP initialization WITHOUT any OAuth2-related processes
Actual Behavior
- Claude
/mcpreturns the error:Error: Dynamic client registration failed: HTTP 404 - The server access logs show requests to
GET /.well-known/oauth-authorization-serverandPOST /register
Additional Context
claude mcp get my-mcp-local displays the following output, which confirms the Authorization header is configured:
my-mcp-local:
Scope: Local (private to you in this project)
Type: http
URL: http://localhost:8098/ai/mcp/observability
Headers:
Authorization: Bearer dummy
To remove this server, run: claude mcp remove "my-mcp-local" -s local
Metadata
Metadata
Assignees
Labels
area:autharea:mcpbugSomething isn't workingSomething isn't workinghas reproHas detailed reproduction stepsHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOSIssue specifically occurs on macOS