claude-code
claude-code copied to clipboard
[BUG] Fix the docs. You use --header to add an authorization header, not -e
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.
Thanks, we'll get this fixed in the next docs update!
has this been addressed?
This is now fixed in the docs
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.