GG

gerritcodereview/gerrit-mcp-server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

24 stars 27 forks Качество 62 Тренд 21Apache-2.0

Сервер MCP для взаимодействия с системой проверки кода Gerrit (зеркало https://gerrit.googlesource.com/gerrit-mcp-server))

Обзор

Сервер MCP (Model Context Protocol) для взаимодействия с системой проверки кода Gerrit. Этот сервер позволяет языковой модели, такой как Gemini, запрашивать изменения, извлекать детали и управлять отзывами, выполняя команды скручивания против API Gerrit REST. Этот сервер может быть запущен как постоянный или по требованию. Подробную информацию см. в документах / каталоге: Подробное руководство по файлу gerrit config.json и всем методам аутентификации. Инструкции о том, как запустить модуль, интеграцию и тесты E2E. Как настроить Gemini CLI для использования этого сервера Как использовать этот сервер в качестве плагина Claude Code - : Советы по эффективному использованию сервера. Руководящие принципы для содействия проекту. Список всех доступных инструментов и их описания. Как зарегистрировать дополнительные инструменты MCP без изменения основного сервера Сценарии, демонстрирующие, как использовать сервер.

Обзор (машинный перевод)

Сервер MCP (Model Context Protocol) для взаимодействия с кодом Gerrit Система обзора. Этот сервер позволяет языковой модели, такой как Gemini, запрашивать изменения. Управляйте обзорами, выполняя команды против curl Gerrit REST API.

Этот сервер может быть запущен как постоянный **HTTP-сервер ** или по требованию через STDIO.

Документация

Подробную информацию см. в каталоге docs/:

Конфигурация: подробное руководство по gerrit_config.json Файл и все методы аутентификации. Руководство по проведению испытаний: Инструкции по управлению подразделением, Интеграция и тесты E2E. Gemini CLI Setup: как настроить Gemini CLI Используйте этот сервер. **Настройка кода **: Как использовать сервер в качестве Плагин Claude Code. Лучшие практики: советы по использованию сервера эффективно. Вклад : Руководящие принципы для содействия Проект. ** Доступные инструменты: список всех доступных инструментов и их описания. ** Расширения: Как зарегистрировать дополнительные инструменты MCP Без изменения основного сервера. Примеры использования **: Сценарии, демонстрирующие, как использовать Сервер.

Начало работы

###1 Предпосылки

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

🐍 Gerrit MCP Server

An MCP (Model Context Protocol) server that brings Gerrit code-review workflows to AI clients including the Gemini CLI, Claude Code, and OpenAI Codex. It provides tools to search changes, inspect diffs and review metadata, manage reviewers, comments, and change state, and analyze related or dependent changes. Optional extensions add tools backed by Gerrit plugins.

Use it as a Gemini CLI extension, Claude Code plugin, or Codex plugin, or run it directly as a persistent HTTP server or on-demand via STDIO.

📚 Documentation

For detailed information, please see the documents in the docs/ directory:

  • Configuration: A detailed guide to the gerrit_config.json file and all authentication methods.
  • Testing Guide: Instructions on how to run the unit, integration, and E2E tests.
  • Gemini CLI Setup: How to configure the Gemini CLI to use this server.
  • Claude Code Setup: How to use this server as a Claude Code plugin.
  • Codex Setup: How to use this server as a Codex plugin.
  • Best Practices: Tips for using the server effectively.
  • Contributing: Guidelines for contributing to the project.
  • Available Tools: A list of all available tools and their descriptions.
  • Extensions: How to register additional MCP tools without modifying the core server.
  • Example Use Cases: Scenarios demonstrating how to use the server.

Reporting bugs and feature requests

Please report bugs and feature requests in the Gerrit MCP Server component of the Gerrit issue tracker.

Due to spam abuse, membership in the repo-discuss Google Group is required to create issues. See the announcement for more information.

🚀 Getting Started

1. Prerequisites

Before you begin, ensure you have the following tools installed and available in your system’s PATH.

  • Python 3.12+: Required by the server.
  • uv: Used for dependency management and running the server. Optional — the build script will install it via pip if absent.
  • curl: The standard command-line tool for transferring data with URLs.

2. Build the Environment

Run the build script from the root of the gerrit-mcp-server project directory. This will create a virtual environment in .venv via uv sync and install all dependencies.

./build-gerrit.sh

3. Configure the Server

Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →