claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Documentation error: SSE server with custom headers

Open tidbeck opened this issue 6 months ago • 0 comments

In the documentation for Configure MCP servers it states that environment variables should be used to add an SSE server with custom header.

# Example: Adding an SSE server with custom headers
claude mcp add --transport sse api-server https://api.example.com/mcp -e X-API-Key=your-key

But the correct way for SSE and HTTP transports is to set customer header like this:

claude mcp add --transport sse api-server https://api.example.com/mcp -H "X-API-Key: your-key"

tidbeck avatar Jun 19 '25 11:06 tidbeck