Skip to content

[BUG] claude mcp add test-mcp http://localhost:8888/endpoint -t sse -H "Authorization: Basic [base64]" ignores the -H header #1763

@mmaunder

Description

@mmaunder

Environment

  • Platform (select one):
    • [ X] Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other:
  • Claude CLI version: 1.0.17
  • Operating System: OS X 15.4.1
  • Terminal: Terminal App

Bug Description

See bug title. When using the following command the -H parameter which should cause a HTTP header to be passed to the MCP server, is ignored.

claude mcp add test-mcp http://localhost:8888/endpoint -t sse -H "Authorization: Basic [base64]"

Steps to Reproduce

  1. Run the above command with any HTTP header in the quotes and it won't get sent to the MCP server.

Expected Behavior

I expect the HTTP header to be sent as part of the HTTP request to the MCP server.

Actual Behavior

HTTP header is not sent.

Additional Context

I've tried -H in various positions and either got an error or same result.

Metadata

Metadata

Assignees

Labels

area:mcpbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOS

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions