- Go 1.22 or later
- Git (optional, for source builds)
Download the archive and checksums.txt from the GitHub release mirror:
curl -LO https://github.com/urandon/gitcode-mcp/releases/download/v0.1.0/gitcode-mcp_v0.1.0_darwin_arm64.tar.gz
curl -LO https://github.com/urandon/gitcode-mcp/releases/download/v0.1.0/checksums.txt
grep 'gitcode-mcp_v0.1.0_darwin_arm64.tar.gz$' checksums.txt | shasum -a 256 -c -
tar -xzf gitcode-mcp_v0.1.0_darwin_arm64.tar.gz
install -m 0755 gitcode-mcp_v0.1.0_darwin_arm64/gitcode-mcp /usr/local/bin/gitcode-mcpRelease artifacts are built for:
darwin/arm64linux/amd64linux/arm64windows/amd64
git clone <repository-url> gitcode-mcp
cd gitcode-mcp
go build -o gitcode-mcp ./cmd/gitcode-mcpMove the binary to your PATH:
cp gitcode-mcp /usr/local/bin/go install ./cmd/gitcode-mcpgitcode-mcp --versionExpected output:
gitcode-mcp 0.1.0
gitcode-mcp --helpExpected output includes:
Usage: gitcode-mcp [global flags] <command> [args]
Global flags:
--mcp run stdio MCP server
mcp serve run MCP server with stdio or HTTP/SSE transport
--cache-path PATH cache database path
--timeout DURATION CLI operation and GitCode request timeout
--max-size BYTES maximum GitCode response size
--format FORMAT default output format
--version print version
-h, --help show help
go test ./...Expected: all tests pass. No network access is required for the test suite.