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

Diff for: README.md

+18-4
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)