Skip to content

Claude Code Github MCP installation command #1757

@BuffMcBigHuge

Description

@BuffMcBigHuge

Describe the bug

In the documentation, the Claude Code installation command is written as:

claude mcp add --transport http github https://api.githubcopilot.com/mcp -H "Authorization: Bearer YOUR_GITHUB_PAT"

... but it does not set the headers correctly. In Claude Code > 2.1.1, it should be written as:

claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}' --scope user

... where --scope user is optional.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions