Gerrit Code Review

v1.2.1
team.gaijin/go-gerrit-mcp Checked 3 days ago Published 4 days ago

Capability-gated Gerrit code review tools, plus a review activity tool for the Claude Code plugin

Values you need

VariableWhat it is
GERRIT_URLrequired Base URL of the Gerrit instance
GERRIT_USERNAMErequired Account username for HTTP authentication
GERRIT_TOKENrequired secret HTTP password or token of the account
GERRIT_MCP_GROUPSoptional Comma-separated capability groups to enable: read, comment, transition Default: read
GERRIT_MCP_PROJECTSoptional Comma-separated Gerrit project allowlist confining every operation
GERRIT_MCP_OWN_CHANGES_ONLYoptional Refuse trail-leaving operations on changes not owned by the authenticated account Default: true
GERRIT_MCP_ACTIVITY_INCLUDE_OWNoptional Keep the authenticated account's own activity in the reported review activity Default: false
GERRIT_MCP_ACTIVITY_EXCLUDE_ACCOUNTSoptional Comma-separated usernames or numeric account IDs whose activity is never reported
GERRIT_MCP_ACTIVITY_EXCLUDE_PATTERNSoptional 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.1
Add 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

  1. 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.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: get_server_info.
  5. If it fails, check that the required runtime is installed (Docker) and that the values above are set.

Machine-readable: install.md · manifest.json