"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server",
"./github-mcp-server",
"stdio",
"--toolsets",
"repos,pull_requests"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "■■■"
}
}
This configuration should work, however it fails in cursor.
Here’s the inlined command to run
docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN=■■■ ghcr.io/github/github-mcp-server ./github-mcp-server stdio --toolsets repos,pull_requests