AI Pull Request Generator
Allows automated creation of pull requests in GitHub repositories, including setting branch names, file content, commit messages, PR titles, descriptions, and target branches
Leverages GPT-4 for task planning and code generation, enabling AI-powered analysis and creation of code based on specified tasks
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AI Pull Request Generatorgenerate a pull request to add user authentication to my Flask app"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AI Pull Request Generator
An AI-powered tool for automating pull request creation and code generation using FastMCP framework.
Features
Task planning using AI (GPT-4)
Code generation based on plans
Automated GitHub pull request creation
Integration with FastMCP framework
Related MCP server: My First MCP Server
Requirements
Python 3.8+
GitHub token with repository access
OpenAI API key
Required Python packages (see requirements.txt)
Setup
Install dependencies:
pip install -r requirements.txtSet up environment variables: Create a
.envfile with the following variables:
GITHUB_TOKEN=your_github_token
API_KEY=your_openai_api_key
API_BASE=your_api_base_urlUsage
The tool provides three main functions:
Task Planning
await task_planning(task_file="path/to/task.txt", plan_file="path/to/plan.txt")Code Generation
await code_for_plan(plan_file="path/to/plan.txt", code_file="path/to/code.py")Pull Request Creation
await create_github_pull_request(
repository="owner/repo",
branch_name="feature-branch",
file_path="path/to/file.py",
file_content="your code",
commit_message="feat: add new feature",
title="Add new feature",
body="Description of changes",
base_branch="main"
)Development
The tool uses FastMCP framework for communication and runs as a server. To run locally:
python pull-request.pyLicense
MIT License
Contributing
Contributions are welcome! Please feel free to submit a pull request.
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
MCP server for generating rough-draft project plans from natural-language prompts.
- JamOAuthdev.jam.mcp
The Jam MCP server provides AI tools with instant bug context without manual prompting, enabling a streamlined workflow from bug identification to ticket creation and pull request generation without switching between tools.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Related MCP Servers
- AlicenseBqualityCmaintenanceAn MCP server that supercharges AI assistants with powerful tools for software development, enabling research, planning, code generation, and project scaffolding through natural language interaction.1141 npm103MIT
- AlicenseNot gradedqualityDmaintenanceAn AI-powered MCP server that provides development tools for code analysis, documentation, and project management including code pattern extraction, humorous code reviews, TODO scanning, and PRD generation.2 npmISC
- FlicenseAqualityDmaintenanceAn MCP server that automates the full software development lifecycle through an AI-driven TDD state machine. It handles everything from task decomposition and test-driven development to integration testing and automated pull request creation.4-
- AlicenseAqualityDmaintenanceMCP server to automate Pull Request creation with AI. Analyzes Git branches, generates descriptions, titles, suggests reviewers, and performs code reviews.84MIT