Lets AI assistants fetch and review Gerrit code changes and their details.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add gerrit-code-review --env PATH='<PATH>' --env PYTHONPATH='<PYTHONPATH>' --env VIRTUAL_ENV='<VIRTUAL_ENV>' -- npx -y @smithery/cli install @cayirtepeomer/gerrit-code-review-mcp --client claude~/.codex/config.toml
[mcp_servers.gerrit-code-review]
command = "npx"
args = ["-y", "@smithery/cli", "install", "@cayirtepeomer/gerrit-code-review-mcp", "--client", "claude"]
env = { PATH = "<PATH>", PYTHONPATH = "<PYTHONPATH>", VIRTUAL_ENV = "<VIRTUAL_ENV>" }
# codex mcp add gerrit-code-review --env PATH='<PATH>' --env PYTHONPATH='<PYTHONPATH>' --env VIRTUAL_ENV='<VIRTUAL_ENV>' -- npx -y @smithery/cli install @cayirtepeomer/gerrit-code-review-mcp --client claude~/.cursor/mcp.json
{
"mcpServers": {
"gerrit-code-review": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@cayirtepeomer/gerrit-code-review-mcp",
"--client",
"claude"
],
"env": {
"PATH": "<PATH>",
"PYTHONPATH": "<PYTHONPATH>",
"VIRTUAL_ENV": "<VIRTUAL_ENV>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"gerrit-code-review": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@cayirtepeomer/gerrit-code-review-mcp",
"--client",
"claude"
],
"env": {
"PATH": "<PATH>",
"PYTHONPATH": "<PYTHONPATH>",
"VIRTUAL_ENV": "<VIRTUAL_ENV>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"gerrit-code-review": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@cayirtepeomer/gerrit-code-review-mcp",
"--client",
"claude"
],
"env": {
"PATH": "<PATH>",
"PYTHONPATH": "<PYTHONPATH>",
"VIRTUAL_ENV": "<VIRTUAL_ENV>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"gerrit-code-review": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@cayirtepeomer/gerrit-code-review-mcp",
"--client",
"claude"
],
"env": {
"PATH": "<PATH>",
"PYTHONPATH": "<PYTHONPATH>",
"VIRTUAL_ENV": "<VIRTUAL_ENV>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"gerrit-code-review": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@cayirtepeomer/gerrit-code-review-mcp",
"--client",
"claude"
],
"env": {
"PATH": "<PATH>",
"PYTHONPATH": "<PYTHONPATH>",
"VIRTUAL_ENV": "<VIRTUAL_ENV>"
}
}
}
}需要的环境变量
PATHPYTHONPATHVIRTUAL_ENV
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。