Environment
- Platform (select one):
- 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
claude and type /mcp to verify the configuration
Expected Behavior
- Claude Code should perform MCP initialization WITHOUT any OAuth2-related processes
Actual Behavior
- Claude
/mcp returns the error: Error: Dynamic client registration failed: HTTP 404
- The server access logs show requests to
GET /.well-known/oauth-authorization-server and POST /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
Environment
Bug Description
Similar to #1763, Claude Code attempts OAuth2 Dynamic Client Registration despite the MCP being configured with an
Authorizationheader.Steps to Reproduce
claude mcp add --transport http my-mcp-local 'http://localhost:8098/ai/mcp' -H "Authorization: Bearer dummy"claudeand type/mcpto verify the configurationExpected Behavior
Actual Behavior
/mcpreturns the error:Error: Dynamic client registration failed: HTTP 404GET /.well-known/oauth-authorization-serverandPOST /registerAdditional Context
claude mcp get my-mcp-localdisplays the following output, which confirms theAuthorizationheader is configured: