gerrit-mcp-server
Verified Safeby GerritCodeReview
Overview
This server allows a language model (like Gemini) to query, retrieve details, and manage code reviews within the Gerrit system.
Installation
./.venv/bin/uvicorn gerrit_mcp_server.main:app --host localhost --port 6322Environment Variables
- GERRIT_CONFIG_PATH
- GERRIT_BASE_URL
- PYTHONPATH
Security Notes
The server primarily interacts with Gerrit via `curl` commands. The `run_curl` function uses `asyncio.create_subprocess_exec` with a list of arguments, which mitigates shell injection risks. Input parameters for Gerrit queries are URL-quoted. Authentication details (username, auth_token, gitcookies_path) are stored in `gerrit_config.json`, which must be secured by the user. The `server.log` could expose executed commands and responses, requiring local filesystem security. Overall, the approach to command execution is robust against common injection vectors, but secure handling of the configuration file is critical.
Similar Servers
gemini-mcp-tool
A Model Context Protocol (MCP) server that enables AI assistants to interact with the Google Gemini CLI for comprehensive code and file analysis, structured edit suggestions, and creative brainstorming.
git-mcp-server
A Model Context Protocol (MCP) server that provides Git-specific tools and resources for AI/LLM agents to interact with version control systems.
claude-power-pack
Provides distributed locking and session coordination for Claude Code sessions via Redis, preventing conflicts during concurrent development activities.
gemini-mcp-rs
A high-performance Rust MCP server that enables AI-driven tasks by wrapping the Gemini CLI, facilitating integration with MCP-compatible clients like Claude Code.