IA

iskanderal/auto-review-claudemcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

22 stars 1 forks 품질 71 트렌드 10MIT

A Python MCP (Model Context Protocol) server that connects Claude Desktop to GitHub Pull Requests. It fetches PR diffs, filters out binary and asset files (Unity `.meta`, images, audio, shaders, etc.

개요

A Python MCP (Model Context Protocol) server that connects Claude Desktop to GitHub Pull Requests. It fetches PR diffs, filters out binary and asset files (Unity .meta, images, audio, shaders, etc.), and gives Claude only the actual code to review. Built as a QA automation tool to speed up pull request reviews using AI. The server looks for credentials in this order: 1. (GITHUB_TOKEN, GITHUB_REPO) — for Claude Desktop 2. (via keyring) — for Claude Code and local development 3. — fallback from the terminal Run the server once manually to store your credentials in the OS keychain: 1. — A GitHub Personal Access Token (classic) with repo scope. Generate one at github.com/settings/tokens. 2. — The repository in owner/repo format (e.g. octocat/Hello-World). Both values are stored securely in your OS keychain and will not be prompted again. Pass credentials directly in the MCP config (see examples below).

README

원문 README의 일부입니다. 원문 보기.

PR Review MCP Server

AI-assisted code review tool for developers/AQA engineers

A Python MCP (Model Context Protocol) server that connects Claude Desktop to GitHub Pull Requests. It fetches PR diffs, filters out binary and asset files (Unity .meta, images, audio, shaders, etc.), and gives Claude only the actual code to review.

Built as a QA automation tool to speed up pull request reviews using AI.

Requirements

  • Python 3.11+
  • Claude Desktop

Installation

git clone https://github.com//pr-review-mcp.git
cd pr-review-mcp
pip install -r requirements.txt

Authentication

The server looks for credentials in this order:

  1. Environment variables (GITHUB_TOKEN, GITHUB_REPO) — for Claude Desktop
  2. OS keychain (via keyring) — for Claude Code and local development
  3. Interactive prompt — fallback from the terminal

Run the server once manually to store your credentials in the OS keychain:

python server.py

You will be prompted for:

  1. GITHUB_TOKEN — A GitHub Personal Access Token (classic) with repo scope. Generate one at github.com/settings/tokens.
  2. GITHUB_REPO — The repository in owner/repo format (e.g. octocat/Hello-World).

Both values are stored securely in your OS keychain and will not be prompted again.

Pass credentials directly in the MCP config (see examples below). This avoids the interactive prompt, which does not work in Claude Desktop’s background processes.

Claude Desktop Configuration

Add the following to your Claude Desktop config file:

Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "pr-review": {
      "command": "python",
      "args": ["C:\\path\\to\\pr-review-mcp\\server.py"],
      "env": {
        "GITHUB_TOKEN": "ghp_your_token_here",
        "GITHUB_REPO": "owner/repo"
      }
    }
  }
}

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "pr-review": {
      "command": "python",
      "args": ["/path/to/pr-review-mcp/server.py"],
      "env": {
        "GITHUB_TOKEN": "ghp_your_token_here",
        "GITHUB_REPO": "owner/repo"
      }
    }
  }
}

Note: If you already stored credentials in the keychain (Option A), you can omit the env block — the server will find them automatically.

After editing the config, restart Claude Desktop.

Claude Code Configuration

Option A — CLI command:

claude mcp add pr-review -- python /path/to/pr-review-mcp/server.py

Option B — create .mcp.json in your project root:

{
  "mcpServers": {
    "pr-review": {
      "command": "python",
      "args": ["/path/to/pr-review-mcp/server.py"]
    }
  }
}

Then restart Claude Code.

Usage

GitHub에서 전체 README 보기

설치

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

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "pr-review": { "command": "python", "args": ["C:\\path\\to\\pr-review-mcp\\server.py"], "env": { "GITHUB_TOKEN": "ghp_your_token_here", "GITHUB_REPO": "owner/repo" } } } }