
iskanderal/auto-review-claudemcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
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:
- Environment variables (
GITHUB_TOKEN,GITHUB_REPO) — for Claude Desktop - OS keychain (via
keyring) — for Claude Code and local development - Interactive prompt — fallback from the terminal
Option A — Keychain (recommended for Claude Code)
Run the server once manually to store your credentials in the OS keychain:
python server.py
You will be prompted for:
- GITHUB_TOKEN — A GitHub Personal Access Token (classic) with
reposcope. Generate one at github.com/settings/tokens. - GITHUB_REPO — The repository in
owner/repoformat (e.g.octocat/Hello-World).
Both values are stored securely in your OS keychain and will not be prompted again.
Option B — Environment variables (recommended for Claude Desktop)
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
envblock — 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
설치
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"
}
}
}
}