G

Go Gerrit MCP

by gaijin.team · team.gaijin/go-gerrit-mcp

An MCP server that exposes Gerrit code review operations as capability-gated tools, enabling AI agents to search and read changes, publish comments, vote, and manage change state, with write capabilities as explicit opt-in.

oci Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "team-gaijin-go-gerrit-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "GERRIT_URL=<YOUR_VALUE>",
        "-e",
        "GERRIT_USERNAME=<YOUR_VALUE>",
        "-e",
        "GERRIT_TOKEN=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_GROUPS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_PROJECTS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_OWN_CHANGES_ONLY=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_POLL_INTERVAL=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_INCLUDE_OWN=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_EXCLUDE_ACCOUNTS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_EXCLUDE_PATTERNS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_EXCLUDE_TOOLS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_INCLUDE_TOOLS=<YOUR_VALUE>",
        "ghcr.io/gaijinentertainment/go-gerrit-mcp:1.1.3"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "team-gaijin-go-gerrit-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "GERRIT_URL=<YOUR_VALUE>",
        "-e",
        "GERRIT_USERNAME=<YOUR_VALUE>",
        "-e",
        "GERRIT_TOKEN=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_GROUPS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_PROJECTS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_OWN_CHANGES_ONLY=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_POLL_INTERVAL=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_INCLUDE_OWN=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_EXCLUDE_ACCOUNTS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_EXCLUDE_PATTERNS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_EXCLUDE_TOOLS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_INCLUDE_TOOLS=<YOUR_VALUE>",
        "ghcr.io/gaijinentertainment/go-gerrit-mcp:1.1.3"
      ]
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "team-gaijin-go-gerrit-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "GERRIT_URL=<YOUR_VALUE>",
        "-e",
        "GERRIT_USERNAME=<YOUR_VALUE>",
        "-e",
        "GERRIT_TOKEN=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_GROUPS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_PROJECTS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_OWN_CHANGES_ONLY=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_POLL_INTERVAL=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_INCLUDE_OWN=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_EXCLUDE_ACCOUNTS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_EXCLUDE_PATTERNS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_EXCLUDE_TOOLS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_INCLUDE_TOOLS=<YOUR_VALUE>",
        "ghcr.io/gaijinentertainment/go-gerrit-mcp:1.1.3"
      ]
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "team-gaijin-go-gerrit-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "GERRIT_URL=<YOUR_VALUE>",
        "-e",
        "GERRIT_USERNAME=<YOUR_VALUE>",
        "-e",
        "GERRIT_TOKEN=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_GROUPS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_PROJECTS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_OWN_CHANGES_ONLY=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_POLL_INTERVAL=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_INCLUDE_OWN=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_EXCLUDE_ACCOUNTS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_EXCLUDE_PATTERNS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_EXCLUDE_TOOLS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_INCLUDE_TOOLS=<YOUR_VALUE>",
        "ghcr.io/gaijinentertainment/go-gerrit-mcp:1.1.3"
      ]
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "team-gaijin-go-gerrit-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "GERRIT_URL=<YOUR_VALUE>",
        "-e",
        "GERRIT_USERNAME=<YOUR_VALUE>",
        "-e",
        "GERRIT_TOKEN=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_GROUPS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_PROJECTS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_OWN_CHANGES_ONLY=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_POLL_INTERVAL=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_INCLUDE_OWN=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_EXCLUDE_ACCOUNTS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_EXCLUDE_PATTERNS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_EXCLUDE_TOOLS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_INCLUDE_TOOLS=<YOUR_VALUE>",
        "ghcr.io/gaijinentertainment/go-gerrit-mcp:1.1.3"
      ]
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "team-gaijin-go-gerrit-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "GERRIT_URL=<YOUR_VALUE>",
        "-e",
        "GERRIT_USERNAME=<YOUR_VALUE>",
        "-e",
        "GERRIT_TOKEN=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_GROUPS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_PROJECTS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_OWN_CHANGES_ONLY=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_POLL_INTERVAL=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_INCLUDE_OWN=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_EXCLUDE_ACCOUNTS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_REVIEW_NOTIFICATIONS_EXCLUDE_PATTERNS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_EXCLUDE_TOOLS=<YOUR_VALUE>",
        "-e",
        "GERRIT_MCP_INCLUDE_TOOLS=<YOUR_VALUE>",
        "ghcr.io/gaijinentertainment/go-gerrit-mcp:1.1.3"
      ]
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
GERRIT_URL Yes Base URL of the Gerrit instance
GERRIT_USERNAME Yes Account username for HTTP Basic authentication
GERRIT_TOKEN secret Yes HTTP credential paired with the username
GERRIT_MCP_GROUPS No Comma-separated capability groups: read, comment, transition Default: read
GERRIT_MCP_PROJECTS No Project allowlist confining every operation, reads included
GERRIT_MCP_OWN_CHANGES_ONLY No Refuse trail-leaving operations on changes not owned by the authenticated account. Accepts 'true' or 'false'. Default: true
GERRIT_MCP_REVIEW_NOTIFICATIONS No Enable review notifications. Accepts 'true' or 'false'. Default: false
GERRIT_MCP_REVIEW_NOTIFICATIONS_POLL_INTERVAL No Poll cadence for subscribed changes, as a Go duration (e.g. '60s') Default: 60s
GERRIT_MCP_REVIEW_NOTIFICATIONS_INCLUDE_OWN No Keep the authenticated account's own activity in notifications. Accepts 'true' or 'false'. Default: false
GERRIT_MCP_REVIEW_NOTIFICATIONS_EXCLUDE_ACCOUNTS No Accounts (usernames or numeric IDs) whose activity never becomes a notification
GERRIT_MCP_REVIEW_NOTIFICATIONS_EXCLUDE_PATTERNS No Comma-separated regular expressions; matching message or comment text never becomes a notification
GERRIT_MCP_EXCLUDE_TOOLS No Remove the listed tools from the group-resolved set
GERRIT_MCP_INCLUDE_TOOLS No Keep only the listed tools from the group-resolved set

Similar servers