-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Update Claude Code installation command for v2.1.1+ add-json format #1766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
SamMorrowDrums
merged 3 commits into
main
from
copilot/update-claude-code-installation-command
Jan 8, 2026
Merged
Update Claude Code installation command for v2.1.1+ add-json format #1766
SamMorrowDrums
merged 3 commits into
main
from
copilot/update-claude-code-installation-command
Jan 8, 2026
+26
−6
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
….1.1+ Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update Claude Code installation command documentation
Update Claude Code installation command for v2.1.1+ add-json format
Jan 8, 2026
SamMorrowDrums
approved these changes
Jan 8, 2026
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the Claude Code installation documentation to use the new add-json command format required in Claude Code v2.1.1+, replacing the deprecated --transport http syntax that no longer sets headers correctly.
Key changes:
- Updated Remote Server Setup commands to use
claude mcp add-jsonwith JSON configuration objects - Added inline
--scopeflag documentation explaining local/project/user options and legacy name mappings - Created a "For Older Versions" section preserving the legacy command format for v2.1.0 and earlier
Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
SamMorrowDrums
approved these changes
Jan 8, 2026
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Updates Claude Code installation docs to use the
add-jsoncommand format required in v2.1.1+, replacing the deprecated--transport httpsyntax.Why
The documented
claude mcp add --transport httpcommand no longer sets headers correctly in Claude Code v2.1.1+. The newadd-jsonformat is required.What changed
claude mcp add-jsonwith JSON config object--scopeflag documentation (local/project/user) with legacy name mappingslocalscope (flag omitted) with guidance on using other scopesExample of new command format:
claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}'MCP impact
Prompts tested (tool changes only)
N/A
Security / limits
Tool renaming
Lint & tests
./script/lint./script/testDocs
docs/installation-guides/install-claude.mdOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.