Skip to main content
Glama

Claude Code Review MCP

perform_code_review

Analyze git code changes using a specified LLM to review staged, HEAD, or branch_diff code. Focus on task-specific improvements, security, performance, or design principles, with customizable model and token limits.

Instructions

Performs a code review using a specified LLM on git changes. Requires being run from the root of a git repository.

Input Schema

NameRequiredDescriptionDefault
diffBaseNoFor 'branch_diff' target, the base branch or commit SHA to compare against (e.g., 'main', 'develop', 'specific-commit-sha'). Required if target is 'branch_diff'.
llmProviderYesThe LLM provider to use (google, openai, anthropic).
maxTokensNoMaximum number of tokens to use for the LLM response. Defaults to 32000 if not specified.
modelNameYesThe specific model name from the provider (e.g., 'gemini-2.5-pro-preview-05-06', 'o4-mini', 'claude-3-7-sonnet-20250219').
projectContextNoGeneral context about the project, its architecture, or coding standards.
reviewFocusNoSpecific areas or aspects to focus the review on (e.g., 'security vulnerabilities', 'performance optimizations', 'adherence to SOLID principles').
targetYesThe git target to review (e.g., 'staged', 'HEAD', or 'branch_diff').
taskDescriptionYesDescription of the task/feature/bugfix that led to these code changes.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "diffBase": { "description": "For 'branch_diff' target, the base branch or commit SHA to compare against (e.g., 'main', 'develop', 'specific-commit-sha'). Required if target is 'branch_diff'.", "type": "string" }, "llmProvider": { "description": "The LLM provider to use (google, openai, anthropic).", "enum": [ "google", "openai", "anthropic" ], "type": "string" }, "maxTokens": { "description": "Maximum number of tokens to use for the LLM response. Defaults to 32000 if not specified.", "exclusiveMinimum": 0, "type": "number" }, "modelName": { "description": "The specific model name from the provider (e.g., 'gemini-2.5-pro-preview-05-06', 'o4-mini', 'claude-3-7-sonnet-20250219').", "minLength": 1, "type": "string" }, "projectContext": { "description": "General context about the project, its architecture, or coding standards.", "type": "string" }, "reviewFocus": { "description": "Specific areas or aspects to focus the review on (e.g., 'security vulnerabilities', 'performance optimizations', 'adherence to SOLID principles').", "type": "string" }, "target": { "description": "The git target to review (e.g., 'staged', 'HEAD', or 'branch_diff').", "enum": [ "staged", "HEAD", "branch_diff" ], "type": "string" }, "taskDescription": { "description": "Description of the task/feature/bugfix that led to these code changes.", "minLength": 1, "type": "string" } }, "required": [ "target", "taskDescription", "llmProvider", "modelName" ], "type": "object" }
Install Server

Other Tools from Claude Code Review MCP

Related Tools

    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/praneybehl/claude-code-review-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server