Skip to content
VS Code

Gerrit for VS Code

io.github.gyeonghokim/gerrit-mcp-server

Gerrit code review for AI agents: find changes, read diffs, draft comments and publish reviews.

client:VS Code transport:stdio runtime:npm

Install Gerrit in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "gerrit-url",
      "description": "GERRIT_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gerrit-user",
      "description": "GERRIT_USER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gerrit-token",
      "description": "GERRIT_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gerrit-allow-write",
      "description": "GERRIT_ALLOW_WRITE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gerrit-timeout",
      "description": "GERRIT_TIMEOUT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gerrit-log-level",
      "description": "GERRIT_LOG_LEVEL",
      "password": true
    }
  ],
  "servers": {
    "gerrit-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@gyeonghokim/gerrit-mcp-server"
      ],
      "env": {
        "GERRIT_URL": "${input:gerrit-url}",
        "GERRIT_USER": "${input:gerrit-user}",
        "GERRIT_TOKEN": "${input:gerrit-token}",
        "GERRIT_ALLOW_WRITE": "${input:gerrit-allow-write}",
        "GERRIT_TIMEOUT": "${input:gerrit-timeout}",
        "GERRIT_LOG_LEVEL": "${input:gerrit-log-level}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Gerrit in other clients