[BUG] Fix the docs. You use --header to add an authorization header, not -e

Resolved 💬 4 comments Opened Jun 19, 2025 by mmaunder Closed Nov 26, 2025

This page:
https://docs.anthropic.com/en/docs/claude-code/mcp

Says:

Example: Adding an HTTP server with authentication header
claude mcp add --transport http secure-server https://api.example.com/mcp -e Authorization="Bearer your-token"

Which is wrong. The syntax is:

claude mcp add --transport http secure-server https://api.example.com/mcp --header "Authorization: Bearer your-token"

Please fix asap to save many others much time. Thanks for a great product.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗