PC

praneybehl/code-review-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

34 stars 8 forks 品質 71 トレンド 12MIT

Claude-codeのOpenAIとGoogleモデルを用いたコードレビューのためのMCPサーバー

概要

MCP (Model Context Protocol) サーバは、さまざまな大きな言語モデル (LLM) を使用してコードレビューを実行する強力なツールを提供します。 このサーバーは、AnthropicのClaudeコード、Cursor、WindsurfなどのAIコーディングアシスタントとシームレスに統合するように設計されています。 このツールは、Claude Code で最初に作成されましたが、他の AI IDE や Claude Desktop をサポートするために拡張されています。 クロードコード、カーソル、ウィンドサーフィンの統合ガイドをご覧ください。 段階的な変更、HEAD の違い、ブランチ間の差分を分析し、タスクの説明とプロジェクトの詳細に基づいてコンテキスト化されたレビューを提供します。 - レビュー git diffs (ステージ変更、現在のHEAD、ブランチの違い)。 - Vercel AI SDK で Google Gemini、OpenAI、Anthropic モデルと統合します。 - タスクの説明、レビューの焦点、およびプロジェクト全体のコンテキストの仕様を、調整されたレビューのために許可します。 - クリアで実用的なマークダウン形式でのレビューを出力します.

概要(AI 翻訳)

バージョン: 1.0.0

MCP (Model Context Protocol) サーバは、さまざまな大きな言語モデル (LLM) を使用してコードレビューを実行する強力なツールを提供します。 このサーバーは、AnthropicのClaudeコード、Cursor、WindsurfなどのAIコーディングアシスタントとシームレスに統合するように設計されています。

注記: このツールは、Claude Code で最初に作成されましたが、他の AI IDE や Claude Desktop をサポートするために拡張されています。 クロードコード、カーソル、ウィンドサーフィンの統合ガイドをご覧ください。

段階的な変更、HEAD の違い、ブランチ間の差分に対して出力された [[git diff] を解析し、タスクの説明とプロジェクトの詳細に基づいてコンテキスト化されたレビューを提供します。

##特徴

  • レビュー git diffs (ステージ変更、現在のHEAD、ブランチの違い)。
  • Vercel AI SDK で Google Gemini、OpenAI、Anthropic モデルと統合します。
  • タスクの説明、レビューの焦点、およびプロジェクト全体のコンテキストの仕様を、調整されたレビューのために許可します。
  • クリアで実用的なマークダウン形式でのレビューを出力します。
  • 分析したい任意のGitリポジトリのルートから実行するように設計.
  • すぐに使用するために[npx]を介して簡単にインストール可能で実行可能.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

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.

GitHub で README 全文を見る

インストール

npx -y @vibesnipe/code-review-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →