critique-mcp
critique-mcp
エージェントがプルリクエストを実際にレビューするためのツールを提供するMCPサーバーです。diffを要約するだけでなく、diffを分解して精査し、変更されたコードをlintし、テストが更新されていないことを検出して、実際のレビューをGitHubに投稿します。
Python · Model Context Protocol · GitHub REST API
ツール
ツール | 説明 |
| PR内で変更されたファイルを、差分統計とパッチテキスト付きで表示する |
| ソースファイルを変更したのにテストファイルに一切触れていないPRを警告する |
| PRのHEADコミット時点で、変更されたすべてのPythonファイルに対して |
| PRに実際のレビュー(コメント / 承認 / 変更依頼)を投稿する |
各ツールは、薄く独立してテスト可能な関数です。run_linterはcheck_test_coverageの仕組みを知りません。また、どちらもGitHubClientを経由しない限りGitHubと通信しません。組み合わせ方はエージェントが決めます。このサーバーは、そのための手を与えるだけです。
check_test_coverageはPRレベルのヒューリスティックであり、ファイル単位のカバレッジ計測ではありません。「ソースファイルが変更されているのに、このPR内でどのテストファイルにも触れていない」ことを検出します。これはDanger.jsのようなツールが使うのと同じ粗いシグナルです。5つのソースファイルを変更し、無関係なテストファイルを1つだけ変更したPRは警告されません。正確な判定には、ファイル名ではなく実際のカバレッジデータが必要です。
Related MCP server: github-pr-review-mcp
なぜ存在するのか
私は、こうしたツールが検出する種類のバグを、他の人のPRで手動でも見つけ、修正してきました。chroma-core/chromaの自明にパスするだけのテストアサーション、weaviate-python-clientのリストの1要素しかチェックしていなかったバリデーター、qdrant-clientの浮動小数点精度に関するバグ。これにより、そのレビュープロセスが、エージェントが直接呼び出せるツール群になります。人間が毎回同じチェックを手作業で行う必要はありません。
セットアップ
Python 3.11以上、PATHにruff、およびrepoスコープを持つGitHub personal access tokenが必要です(post_reviewを機能させる場合を除き、読み取り専用で十分です)。
cp .env.example .env # then add your token to .env
python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt使い方
Claude Desktop / Claude CodeのMCP設定に追加します。
{
"mcpServers": {
"critique": {
"command": "python",
"args": ["-m", "critique_mcp.server"],
"env": { "GITHUB_TOKEN": "ghp_..." }
}
}
}そのうえでエージェントに「critiqueを使ってowner/repoのPR #42をレビューしてください。lintの問題とテスト不足を確認して、要約レビューを投稿してください」と依頼します。
テスト
pytestすべてのGitHub API呼び出しはテスト内でモックされています。サーバー自体を実行しない限り、実際のネットワーク呼び出しは発生しません。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform comprehensive GitHub pull request code reviews, including analysis of code patterns, complexity, and security issues, while managing review comments and ensuring compliance with team coding standards.2MIT
- AlicenseNot gradedqualityCmaintenanceProvides GitHub PR review capabilities to LLMs, enabling automated PR analysis, review submission, and inline commenting via MCP.101MIT
- FlicenseNot gradedqualityCmaintenanceEnables reviewing GitHub pull requests via ChatGPT, including listing PRs, viewing diffs, posting comments, approving, and requesting changes.
- FlicenseAqualityCmaintenanceEnables LLM clients to list, read, review, and comment on GitHub pull requests, turning an AI assistant into a fully capable code reviewer.61
Related MCP Connectors
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Pull change requests from your Amendor board into your coding agent to build and open PRs.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Nimra3261/critique-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server