diff --git a/README.md b/README.md index 00f49b64e..05575c658 100644 --- a/README.md +++ b/README.md @@ -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, and use the `github-mcp-server stdio` -command with the `GITHUB_PERSONAL_ACCESS_TOKEN` environment variable set to -your token. +`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 " + } +} +``` ## GitHub Enterprise Server pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy