Docker MCP (GitHub) fails to start when providing a custom docker CMD on Windows

"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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.