mcp-code-review
v0.3.0MCP server for LLM-powered code review — GitHub PRs, GitLab MRs, local diffs
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
review_github_pr
Review a GitHub Pull Request. Fetches PR metadata, file diffs, and project conventions.
| Parameter | Type | Description |
|---|---|---|
url * | string | GitHub PR URL (e.g. https://github.com/org/repo/pull/42) |
focus | string | Review focus — "all", "security", "performance", "quality" |
locale | Report language — "en", "it", "es". Overrides project config. |
review_gitlab_mr
Review a GitLab Merge Request. Fetches MR metadata, file diffs, and project conventions.
| Parameter | Type | Description |
|---|---|---|
url * | string | GitLab MR URL (e.g. https://gitlab.com/org/repo/-/merge_requests/15) |
focus | string | Review focus — "all", "security", "performance", "quality" |
locale | Report language — "en", "it", "es". |
review_diff
Review local git diff. Compares HEAD against base branch with static analysis.
| Parameter | Type | Description |
|---|---|---|
base_branch | string | Branch to compare against (default: main) |
focus | string | Review focus — "all", "security", "performance", "quality" |
locale | Report language. | |
path | string | Project root directory (default: current directory) |
review_file
Review a single file with static analysis.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the file to review. |
focus | string | Review focus — "all", "security", "performance", "quality" |
locale | Report language. |
review_project
Scan entire project: structure, dependencies, security.
| Parameter | Type | Description |
|---|---|---|
focus | string | Review focus — "all", "security", "performance", "quality" |
locale | Report language. | |
path | string | Project root directory (default: current directory) |
post_github_review
Post review comments on a GitHub PR.
| Parameter | Type | Description |
|---|---|---|
comments * | array | List of comments. Each: {"path": str, "line": int, "body": str} |
pr_url * | string | GitHub PR URL. |
verdict | string | "approved", "changes_requested", or "rejected". |
post_gitlab_review
Post review comments on a GitLab MR.
| Parameter | Type | Description |
|---|---|---|
comments * | array | List of comments. Each: {"path": str, "line": int, "body": str} |
mr_url * | string | GitLab MR URL. |
verdict | string | "approved", "changes_requested", or "rejected". |
save_review_report
Save a review report as a markdown file.
| Parameter | Type | Description |
|---|---|---|
content * | string | Full markdown content of the review. |
title * | string | Report title (used in filename). |
output_dir | Directory to save the report (default: REVIEW_OUTPUT_DIR or current dir). |
get_conventions
Get project conventions from .codereview.yml or auto-detect.
| Parameter | Type | Description |
|---|---|---|
path | string | Project root directory. |
list_analyzers
List available static analysis tools with install instructions.