PC

praneybehl/code-review-mcp

Developer tools

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

34 stars 8 forks Качество 71 Тренд 12MIT

Сервер MCP для проверки кода с использованием моделей OpenAI и Google для Claude-code

Обзор

Сервер MCP (Model Context Protocol), который предоставляет мощный инструмент для выполнения обзоров кода с использованием различных моделей большого языка (LLM). Этот сервер предназначен для бесшовной интеграции с помощниками кодирования ИИ, такими как Claude Code, Cursor, Windsurf или другими MCP-совместимыми клиентами. Этот инструмент был первоначально создан для Claude Code, но с тех пор был расширен для поддержки других IDE и Claude Desktop. См. руководства по интеграции для Claude Code, Cursor и Windsurf. Он анализирует вывод git diff для поэтапных изменений, отличий от HEAD или различий между ветвями, предоставляя контекстуализированные обзоры на основе описания вашей задачи и деталей проекта. - Отзывы о git diffs (стадийные изменения, текущая HEAD, различия ветвей). Интегрируется с моделями Google Gemini, OpenAI и Anthropic через Vercel AI SDK. - Позволяет спецификацию описания задач, фокус обзора и общий контекст проекта для индивидуальных обзоров. - Результаты обзоров в четком, действенном формате разметки.

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

Версия: 1.0.0

Сервер MCP (Model Context Protocol), который предоставляет мощный инструмент для выполнения обзоров кода с использованием различных моделей большого языка (LLM). Этот сервер предназначен для бесшовной интеграции с помощниками кодирования ИИ, такими как Claude Code, Cursor, Windsurf или другими MCP-совместимыми клиентами.

**Примечание: ** Этот инструмент был первоначально создан для Claude Code, но с тех пор был расширен для поддержки других IDE и Claude Desktop. См. руководства по интеграции для Claude Code, Cursor и Windsurf.

Он анализирует выход для поэтапных изменений, отличий от HEAD или различий между ветвями, предоставляя контекстуализированные обзоры на основе описания вашей задачи и деталей проекта.

Особенности

  • Отзывы о git diffs (стадийные изменения, текущая HEAD, различия ветвей). Интегрируется с моделями Google Gemini, OpenAI и Anthropic через Vercel AI SDK.
  • Позволяет спецификацию описания задач, фокус обзора и общий контекст проекта для индивидуальных обзоров.
  • Результаты обзоров в четком, действенном формате разметки. Предназначен для запуска из корня любого репозитория Git, который вы хотите проанализировать. Легко устанавливается и исполняется через npx для немедленного использования.

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

README

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

@vibesnipe/code-review-mcp

Version: 1.0.0

An MCP (Model Context Protocol) server that provides a powerful tool to perform code reviews using various Large Language Models (LLMs). This server is designed to be seamlessly integrated with AI coding assistants like Anthropic’s Claude Code, Cursor, Windsurf, or other MCP-compatible clients.

Note: This tool was initially created for Claude Code but has since been expanded to support other AI IDEs and Claude Desktop. See the integration guides for Claude Code, Cursor, and Windsurf.

It analyzes git diff output for staged changes, differences from HEAD, or differences between branches, providing contextualized reviews based on your task description and project details.

Features

  • Reviews git diffs (staged changes, current HEAD, branch differences).
  • Integrates with Google Gemini, OpenAI, and Anthropic models through the Vercel AI SDK.
  • Allows specification of task description, review focus, and overall project context for tailored reviews.
  • Outputs reviews in clear, actionable markdown format.
  • Designed to be run from the root of any Git repository you wish to analyze.
  • Easily installable and runnable via npx for immediate use.

Compatibility

  • Node.js: Version 18 or higher is required.
  • Operating Systems: Works on Windows, macOS, and Linux.
  • Git: Version 2.20.0 or higher recommended.

Prerequisites

  • Node.js: Version 18 or higher is required.
  • Git: Must be installed and accessible in your system’s PATH. The server executes git commands.
  • API Keys for LLMs: You need API keys for the LLM providers you intend to use. These should be set as environment variables:
    • GOOGLE_API_KEY for Google models.
    • OPENAI_API_KEY for OpenAI models.
    • ANTHROPIC_API_KEY for Anthropic models. These can be set globally in your environment or, conveniently, in a .env file placed in the root of the project you are currently reviewing. The server will automatically try to load it.

Installation & Usage

The primary way to use this server is with npx, which ensures you’re always using the latest version without needing a global installation.

Recommended: Using with npx

  1. Navigate to Your Project: Open your terminal and change to the root directory of the Git repository you want to review.

    cd /path/to/your-git-project
    
  2. Run the MCP Server: Execute the following command:

    npx -y @vibesnipe/code-review-mcp
    

    This command will download (if not already cached) and run the @vibesnipe/code-review-mcp server. You should see output in your terminal similar to: [MCP Server] Code Reviewer MCP Server is running via stdio and connected to transport.

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

Установка

npx -y @vibesnipe/code-review-mcp
Новичок в MCP? Начните с руководства на mcpskill.org →