
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"
}
}
}
}