Skip to content

Commit 62eed34

Browse files
authored
Clarify local build (#264)
1 parent bbba3bb commit 62eed34

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,24 @@ More about using MCP server tools in VS Code's [agent mode documentation](https:
9191

9292
### Build from source
9393

94-
If you don't have Docker, you can use `go` to build the binary in the
95-
`cmd/github-mcp-server` directory, and use the `github-mcp-server stdio`
96-
command with the `GITHUB_PERSONAL_ACCESS_TOKEN` environment variable set to
97-
your token.
94+
If you don't have Docker, you can use `go build` to build the binary in the
95+
`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. To specify the output location of the build, use the `-o` flag. You should configure your server to use the built executable as its `command`. For example:
96+
97+
```JSON
98+
{
99+
"mcp": {
100+
"servers": {
101+
"github": {
102+
"command": "/path/to/github-mcp-server",
103+
"args": ["stdio"],
104+
"env": {
105+
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
106+
}
107+
}
108+
}
109+
}
110+
}
111+
```
98112

99113
## GitHub Enterprise Server
100114

0 commit comments

Comments
 (0)
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