mcp-code-review

v0.3.0
mcp-code-review Checked 2 days ago Published 7 months ago

MCP 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.

ParameterTypeDescription
url *stringGitHub PR URL (e.g. https://github.com/org/repo/pull/42)
focusstringReview focus — "all", "security", "performance", "quality"
localeReport language — "en", "it", "es". Overrides project config.

review_gitlab_mr

Review a GitLab Merge Request. Fetches MR metadata, file diffs, and project conventions.

ParameterTypeDescription
url *stringGitLab MR URL (e.g. https://gitlab.com/org/repo/-/merge_requests/15)
focusstringReview focus — "all", "security", "performance", "quality"
localeReport language — "en", "it", "es".

review_diff

Review local git diff. Compares HEAD against base branch with static analysis.

ParameterTypeDescription
base_branchstringBranch to compare against (default: main)
focusstringReview focus — "all", "security", "performance", "quality"
localeReport language.
pathstringProject root directory (default: current directory)

review_file

Review a single file with static analysis.

ParameterTypeDescription
path *stringPath to the file to review.
focusstringReview focus — "all", "security", "performance", "quality"
localeReport language.

review_project

Scan entire project: structure, dependencies, security.

ParameterTypeDescription
focusstringReview focus — "all", "security", "performance", "quality"
localeReport language.
pathstringProject root directory (default: current directory)

post_github_review

Post review comments on a GitHub PR.

ParameterTypeDescription
comments *arrayList of comments. Each: {"path": str, "line": int, "body": str}
pr_url *stringGitHub PR URL.
verdictstring"approved", "changes_requested", or "rejected".

post_gitlab_review

Post review comments on a GitLab MR.

ParameterTypeDescription
comments *arrayList of comments. Each: {"path": str, "line": int, "body": str}
mr_url *stringGitLab MR URL.
verdictstring"approved", "changes_requested", or "rejected".

save_review_report

Save a review report as a markdown file.

ParameterTypeDescription
content *stringFull markdown content of the review.
title *stringReport title (used in filename).
output_dirDirectory to save the report (default: REVIEW_OUTPUT_DIR or current dir).

get_conventions

Get project conventions from .codereview.yml or auto-detect.

ParameterTypeDescription
pathstringProject root directory.

list_analyzers

List available static analysis tools with install instructions.