Gerrit Code Review
v1.2.1Capability-gated Gerrit code review tools, plus a review activity tool for the Claude Code plugin
Values you need
| Variable | What it is | |
|---|---|---|
GERRIT_URL | required | Base URL of the Gerrit instance |
GERRIT_USERNAME | required | Account username for HTTP authentication |
GERRIT_TOKEN | required secret | HTTP password or token of the account |
GERRIT_MCP_GROUPS | optional | Comma-separated capability groups to enable: read, comment, transition Default: read |
GERRIT_MCP_PROJECTS | optional | Comma-separated Gerrit project allowlist confining every operation |
GERRIT_MCP_OWN_CHANGES_ONLY | optional | Refuse trail-leaving operations on changes not owned by the authenticated account Default: true |
GERRIT_MCP_ACTIVITY_INCLUDE_OWN | optional | Keep the authenticated account's own activity in the reported review activity Default: false |
GERRIT_MCP_ACTIVITY_EXCLUDE_ACCOUNTS | optional | Comma-separated usernames or numeric account IDs whose activity is never reported |
GERRIT_MCP_ACTIVITY_EXCLUDE_PATTERNS | optional | Comma-separated regular expressions; matching message or comment text is never reported |
Docker discovery passed
Requires Docker
Run in a terminal
claude mcp add go-gerrit-mcp -e 'GERRIT_TOKEN=<GERRIT_TOKEN>' -e 'GERRIT_URL=<GERRIT_URL>' -e 'GERRIT_USERNAME=<GERRIT_USERNAME>' -- docker run -i --rm -e GERRIT_TOKEN -e GERRIT_URL -e GERRIT_USERNAME ghcr.io/gaijinentertainment/go-gerrit-mcp:1.2.1Add to
claude_desktop_config.json{
"mcpServers": {
"go-gerrit-mcp": {
"args": [
"run",
"-i",
"--rm",
"-e",
"GERRIT_TOKEN",
"-e",
"GERRIT_URL",
"-e",
"GERRIT_USERNAME",
"ghcr.io/gaijinentertainment/go-gerrit-mcp:1.2.1"
],
"command": "docker",
"env": {
"GERRIT_TOKEN": "<GERRIT_TOKEN>",
"GERRIT_URL": "<GERRIT_URL>",
"GERRIT_USERNAME": "<GERRIT_USERNAME>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"go-gerrit-mcp": {
"args": [
"run",
"-i",
"--rm",
"-e",
"GERRIT_TOKEN",
"-e",
"GERRIT_URL",
"-e",
"GERRIT_USERNAME",
"ghcr.io/gaijinentertainment/go-gerrit-mcp:1.2.1"
],
"command": "docker",
"env": {
"GERRIT_TOKEN": "<GERRIT_TOKEN>",
"GERRIT_URL": "<GERRIT_URL>",
"GERRIT_USERNAME": "<GERRIT_USERNAME>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "GERRIT_TOKEN",
"id": "gerrit-token",
"password": true,
"type": "promptString"
},
{
"description": "GERRIT_URL",
"id": "gerrit-url",
"password": true,
"type": "promptString"
},
{
"description": "GERRIT_USERNAME",
"id": "gerrit-username",
"password": true,
"type": "promptString"
}
],
"servers": {
"go-gerrit-mcp": {
"args": [
"run",
"-i",
"--rm",
"-e",
"GERRIT_TOKEN",
"-e",
"GERRIT_URL",
"-e",
"GERRIT_USERNAME",
"ghcr.io/gaijinentertainment/go-gerrit-mcp:1.2.1"
],
"command": "docker",
"env": {
"GERRIT_TOKEN": "${input:gerrit-token}",
"GERRIT_URL": "${input:gerrit-url}",
"GERRIT_USERNAME": "${input:gerrit-username}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.go-gerrit-mcp]
command = "docker"
args = ["run", "-i", "--rm", "-e", "GERRIT_TOKEN", "-e", "GERRIT_URL", "-e", "GERRIT_USERNAME", "ghcr.io/gaijinentertainment/go-gerrit-mcp:1.2.1"]
env = { "GERRIT_TOKEN" = "<GERRIT_TOKEN>", "GERRIT_URL" = "<GERRIT_URL>", "GERRIT_USERNAME" = "<GERRIT_USERNAME>" }For AI agents
- Ask the user for: GERRIT_URL, GERRIT_USERNAME, GERRIT_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get_server_info.
- If it fails, check that the required runtime is installed (Docker) and that the values above are set.
Machine-readable: install.md · manifest.json