- ๐ฏ Overview
- โจ Key Features
- ๐ Repository Structure
- ๐ Quick Start
- ๐ Documentation
- ๐ก Usage Examples
- ๐ค Contributing
- ๐ License
PR Buddy is an advanced AI-powered pull request management system that seamlessly integrates with your development workflow through the Model Context Protocol (MCP). It combines four powerful MCP servers with intelligent AI rules to automate and enhance your PR lifecycle - from creation through review to merging.
- ๐ค AI-Driven Automation - Intelligent PR creation, review, and updates using Cursor's AI agents
- ๐ Security-First - Built-in CVE scanning and vulnerability detection
- ๐ Full Integration - Seamless GitHub, Git, Jira, and security tool integration
- โก Zero Context Switching - Everything happens within your IDE
| Feature | Description |
|---|---|
| Smart PR Creation | Automatically generates PR descriptions, links Jira tickets, and validates changes |
| Comprehensive Reviews | AI-powered code review with bug detection, security scanning, and compliance checks |
| Safe Updates | Intelligent PR modifications that preserve important information |
| CVE Scanning | Real-time vulnerability detection in dependencies and code |
| Jira Integration | Automatic ticket linking, requirement verification, and status updates |
| GitHub Actions | Workflow management, CI/CD integration, and automated testing |
pr-buddy/
โโโ README.md # You are here!
โโโ setup_pr_buddy.sh # One-click installation script
โโโ docs/ # Detailed documentation
โ โโโ PREREQUISITES.md # System requirements & tools
โ โโโ SETUP_GITHUB.md # GitHub token setup guide
โ โโโ SETUP_JIRA.md # Jira integration guide
โ โโโ TROUBLESHOOTING.md # Common issues & solutions
โโโ rules/ # AI agent rules for Cursor
โ โโโ pr-creation.mdc # PR creation assistant
โ โโโ pr-review.mdc # PR review assistant
โ โโโ pr-update.mdc # PR update assistant
โโโ servers/ # MCP servers (git submodules)
โโโ cve-search/ # CVE vulnerability scanner
โโโ git/ # Git operations server
โโโ github-mcp-server/ # GitHub integration
โโโ jira-mcp/ # Jira integration
Before starting, ensure you have:
- โ Python 3.10+
- โ Git
- โ Cursor IDE (latest version)
- โ Go 1.21+ or Docker (for GitHub server)
๐ Detailed Prerequisites Guide
# 1. Clone the repository with submodules
git clone --recursive https://github.com/YOUR_USERNAME/pr-buddy.git
cd pr-buddy
# 2. Run the interactive setup script
./setup_pr_buddy.sh
# 3. Copy the generated configuration to Cursor
cp ~/.pr-buddy/mcp.json ~/.cursor/mcp.json
# 4. Restart Cursor and enable Agent ModeThe setup script will:
- โ Check all system requirements
- โ Install missing dependencies
- โ Configure all MCP servers
- โ Set up authentication tokens
- โ Install AI rules globally
- โ Test your connections
| Guide | Description |
|---|---|
| ๐ Prerequisites | System requirements, tool installation, and environment setup |
| ๐ GitHub Setup | Creating and configuring GitHub Personal Access Tokens |
| ๐ซ Jira Setup | Setting up Jira API tokens and integration |
| ๐ง Troubleshooting | Solutions for common issues and debugging tips |
| Document | Description |
|---|---|
| ๐ Quick Reference | Command cheat sheet and shortcuts |
| ๐๏ธ Architecture | Detailed system design and diagrams |
| ๐ ASCII Diagrams | Architecture diagrams in ASCII format |
| ๐ค Contributing | How to contribute to PR Buddy |
@pr-creation.mdc Create a PR for the authentication feature on master branch.
The changes are in feature/auth-oauth branch. This addresses Jira ticket DSE-1234.@pr-review.mdc Review PR Sense/cloudera-sense/789 thoroughly.
Check for security vulnerabilities, bugs, and Jira compliance.@pr-update.mdc Update PR Sense/cloudera-sense/456 description
with the latest Jira requirements while preserving test evidence.| Command | Description |
|---|---|
@pr-creation.mdc |
Activate PR creation assistant |
@pr-review.mdc |
Activate PR review assistant |
@pr-update.mdc |
Activate PR update assistant |
graph LR
A[Developer] --> B[Cursor IDE]
B --> C{PR Buddy Rules}
C --> D[Git Server]
C --> E[GitHub Server]
C --> F[Jira Server]
C --> G[CVE Scanner]
D --> H[Local Operations]
E --> I[PR Management]
F --> J[Ticket Sync]
G --> K[Security Scan]
style C fill:#4CAF50,stroke:#2E7D32,color:#fff
style B fill:#2196F3,stroke:#1565C0,color:#fff
-
Global Rules (for all projects):
cp rules/*.mdc ~/.cursor/rules/
-
Project-Specific Rules:
mkdir -p .cursor/rules
cp /path/to/pr-buddy/rules/*.mdc .cursor/rules/- Custom Toolsets (optimize performance):
{
"env": {
"GITHUB_TOOLSETS": "repos,pull_requests,issues"
}
}- ๐ Use environment variables for tokens
- ๐ Rotate tokens every 90 days
- ๐ก๏ธ Use fine-grained GitHub tokens
- ๐ Enable audit logging
- MCP servers not starting? โ Check Troubleshooting Guide
- Authentication failing? โ Review GitHub Setup or Jira Setup
- Rules not working? โ See Troubleshooting Guide
- ๐ GitHub Issues - Bug reports and feature requests
- ๐ฌ Discussions - Questions and community help
- ๐ง Email: support@pr-buddy.dev
We welcome contributions! Please see our Contributing Guide for:
- Code of conduct
- Development setup
- Submission guidelines
- Coding standards
PR Buddy is licensed under the MIT License. See LICENSE for details.
- Model Context Protocol team for the MCP framework
- Cursor team for the amazing IDE integration
- GitHub, Atlassian, and CIRCL for their APIs
- All contributors and users of PR Buddy
PR Buddy - Your AI-powered pull request companion