loading…
Search for a command to run...
loading…
MCP server to automate Pull Request creation with AI. Analyzes Git branches, generates descriptions, titles, suggests reviewers, and performs code reviews.
MCP server to automate Pull Request creation with AI. Analyzes Git branches, generates descriptions, titles, suggests reviewers, and performs code reviews.
MCP (Model Context Protocol) server to automate Pull Request creation with AI. Analyzes Git branches, generates descriptions, titles, suggests reviewers, and performs code reviews. Designed to speed up reviews and improve PR quality.
Local development:
npm install
npm run build
Global installation (recommended):
npm link
This makes the pr-mcp-server command available globally.
After npm link, run:
npx @modelcontextprotocol/inspector pr-mcp-server
The Inspector will list all available tools. Run it inside a Git repository for full functionality.
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"pr-mcp-server": {
"command": "pr-mcp-server",
"cwd": "{workspaceFolder}"
}
}
}
Restart Cursor, then ask:
See Configuration Guide for more details.
When you say "Create a PR", Claude (the AI) orchestrates an intelligent workflow:
Call review tool - Gathers comprehensive project context:
Claude analyzes and generates review - True AI-powered analysis:
Call create_pr_complete with review - Creates complete PR:
Unlike rule-based tools, this uses Claude's intelligence to:
Example: In a PHP Laravel project, it will flag SQL injection vulnerabilities and suggest Eloquent ORM. In a React i18n project, it will catch hardcoded strings. All automatically!
# In Cursor or Claude Desktop, simply say:
"Create a PR"
# Claude will automatically:
# 1. Call 'review' to get project context
# 2. Analyze the context and generate intelligent review
# 3. Call 'create_pr_complete' with the review
# 4. Return the PR URL
# With specific options:
"Create a PR in English with the detailed template"
"Create a draft PR without reviewers"
See AI_POWERED_REVIEW.md for technical details on how the AI review works.
| Tool | Description | Recommended |
|---|---|---|
create_pr_complete |
🚀 Unified workflow - Complete PR creation with AI review | ⭐ YES |
create_pr |
Create PR on GitHub with auto-reviewers (no AI review) | |
analyze_branch |
Analyze differences between branches | |
generate_pr_title |
Generate conventional PR title | |
generate_pr_description |
Generate PR description | |
generate_pr_complete |
Generate both title and description | |
suggest_reviewers |
Suggest reviewers based on Git history | |
review |
Automated code review (context-aware) |
Recommendation: Use create_pr_complete for the best experience. It combines all features with intelligent, context-aware code review.
See Tools Reference for detailed documentation.
npm run build # Compile TypeScript to dist/
npm start # Start the MCP server
npm test # Run tests
npm run test:watch # Run tests in watch mode
npm run test:ui # Run tests with UI
npm run dev # Run in development mode
npm run build)GITHUB_TOKEN environment variableSee GitHub Integration for more troubleshooting.
MIT
Выполни в терминале:
claude mcp add pr-mcp-server -- npx Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development