Documentation error: SSE server with custom headers
Resolved 💬 2 comments Opened Jun 19, 2025 by tidbeck Closed Nov 29, 2025
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"This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗