code-review-mcp-server
v1.5.3MCP Server with Code Review
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
codeReview
Run a git diff between branches. Requires a base branch name to compare against the current branch, and provide instructions to review/fix issues.
| Parameter | Type | Description |
|---|---|---|
baseBranch * | string | Name of the base branch to compare against the current branch (required). Specifies the reference point for diff comparison. |
folderPath * | string | Path to the full root directory of the repository to run git diff |
getLocalGitDiff
Get git diff between two branches locally. Returns raw diff output without review instructions.
| Parameter | Type | Description |
|---|---|---|
baseBranch * | string | Name of the base branch to compare against the current branch (required). Specifies the reference point for diff comparison. |
folderPath * | string | Path to the full root directory of the repository to run git diff |
codeReviewWithGithubUrl
Run a git diff using a GitHub PR URL. Requires a GitHub pull request URL to fetch the diff, and provide instructions to review/fix issues.
| Parameter | Type | Description |
|---|---|---|
url * | string | A GitHub pull request URL to fetch the diff from (required). |
addPRSummaryComment
Add a summary comment to a GitHub pull request
| Parameter | Type | Description |
|---|---|---|
commentMessage * | string | The comment message to add to the PR (required). |
url * | string | A GitHub pull request URL to add the comment to (required). |
addPRLineComment
Add multiple comments to specific lines in a GitHub pull request
| Parameter | Type | Description |
|---|---|---|
comments * | array | Array of comments to add to specific lines in the PR (required). (Array<{filePath: string, line: string, commentMessage: string}>) |
url * | string | A GitHub pull request URL to add the comments to (required). |
getPRTemplate
Read PR template from specified folder path and template name, returns template content or default template if not found
| Parameter | Type | Description |
|---|---|---|
folderPath * | string | Path to the folder to search for PR template files |
templateName | string | Name of the template file (optional, defaults to pull_request_template.md) |
createPR
Create a new GitHub Pull Request with specified title, body, and branches. Automatically detects GitHub URL and current branch from local git configuration.
| Parameter | Type | Description |
|---|---|---|
baseBranch * | string | Target branch for the PR |
body * | string | PR description/body |
folderPath * | string | Path to the git repository folder |
title * | string | PR title |
draft | boolean | Whether to create as draft PR (optional, defaults to false) |
githubUrl | string | GitHub repository URL (optional, auto-detected if not provided) |
milestone | string | Milestone to assign to the PR (optional) |