- Notifications
You must be signed in to change notification settings - Fork937
Update build from source instructions#224
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -92,9 +92,30 @@ More about using MCP server tools in VS Code's [agent mode documentation](https: | ||
### Build from source | ||
If you don't have Docker, you can use `go` to build the binary in the | ||
`cmd/github-mcp-server` directory: | ||
``` | ||
GOTOOLCHAIN=auto go install github.com/github/github-mcp-server/cmd/github-mcp-server@latest | ||
``` | ||
The MCP servers from VS Code and Claude needs to be adjusted respectively: | ||
```diff | ||
"github": { | ||
- "command": "docker", | ||
+ "command": "~/go/bin/github-mcp-server", | ||
"args": [ | ||
- "run", | ||
- "-i", | ||
- "--rm", | ||
- "-e", | ||
- "GITHUB_PERSONAL_ACCESS_TOKEN", | ||
- "ghcr.io/github/github-mcp-server" | ||
+ "stdio" | ||
], | ||
"env": { | ||
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token} OR <YOUR_TOKEN>" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Users shouldn't be hardcoding PATs in a config file. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I just copied it from the Claude Desktop section. What should it be instead? 🤔 And should I also update it in the Claude Desktop section? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Oh fair enough, vscode supports password inputs which prompts for input when the server is launched. Claude doesn't appear to have that feature. | ||
} | ||
} | ||
``` | ||
## GitHub Enterprise Server | ||