code-review-mcp-server

v1.5.3
code-review-mcp-server Checked 1 day ago Published 4 months ago

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

ParameterTypeDescription
baseBranch *stringName of the base branch to compare against the current branch (required). Specifies the reference point for diff comparison.
folderPath *stringPath 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.

ParameterTypeDescription
baseBranch *stringName of the base branch to compare against the current branch (required). Specifies the reference point for diff comparison.
folderPath *stringPath 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.

ParameterTypeDescription
url *stringA GitHub pull request URL to fetch the diff from (required).

addPRSummaryComment

Add a summary comment to a GitHub pull request

ParameterTypeDescription
commentMessage *stringThe comment message to add to the PR (required).
url *stringA GitHub pull request URL to add the comment to (required).

addPRLineComment

Add multiple comments to specific lines in a GitHub pull request

ParameterTypeDescription
comments *arrayArray of comments to add to specific lines in the PR (required). (Array<{filePath: string, line: string, commentMessage: string}>)
url *stringA 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

ParameterTypeDescription
folderPath *stringPath to the folder to search for PR template files
templateNamestringName 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.

ParameterTypeDescription
baseBranch *stringTarget branch for the PR
body *stringPR description/body
folderPath *stringPath to the git repository folder
title *stringPR title
draftbooleanWhether to create as draft PR (optional, defaults to false)
githubUrlstringGitHub repository URL (optional, auto-detected if not provided)
milestonestringMilestone to assign to the PR (optional)