generate-pr-mcp
v1.1.1
Published
A Model Context Protocol server for generating PRs
Maintainers
Readme
🚀 Generate PR MCP

When your PR description writes itself
📋 Overview
A Model Context Protocol server that automatically generates detailed Pull Request descriptions from your code changes. Say goodbye to writing PR descriptions manually!
✨ Features
- 🔍 Analyzes git diffs to create comprehensive PR descriptions
- 📊 Highlights key implementation points and code changes
- 🧩 Modular template architecture for customized PR generation
- 🔎 Automatic project type detection
- 📝 Generates markdown files for easy sharing
- 🖼️ Support for including before/after screenshots
🛠️ Installation
# Install globally
npm install -g generate-pr-mcp
# Or use with npx
npx generate-pr-mcpconfiguration with cursor
# get the path to the generate-pr-mcp package
npm list -g generate-pr-mcp --parseable
## output => /Users/username/.nvm/versions/node/v22.14.0/lib/node_modules/generate-pr-mcp/build/index.js
```json
{
"mcpServers": {
"generate-pr-mcp": {
"command": "node",
"args": [
"/Users/username /.nvm/versions/node/v22.14.0/lib/node_modules/generate-pr-mcp/build/index.js"
]
}
}
}🚦 Usage
Run the MCP server in your project directory:
# If installed globally
mcp-server
# Or with npx
npx generate-pr-mcp📝 Example Output
The tool generates a structured PR document including:
- PR title and description
- Summary of changes
- Key implementation points
- Code highlights
- Testing instructions
🔄 How It Works
- Detects the current git branch and finds the base branch (main/master)
- Analyzes the diff between branches or staged changes
- Processes the diff to identify key changes
- Generates a formatted PR description using templates
- Saves the output to a markdown file
🧪 Supported Project Types
The tool automatically detects and optimizes PR descriptions for:
- JavaScript/TypeScript projects
- React applications
- Node.js backends
- And more!
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
