AI Pull Request Generator
AI 拉取请求生成器
一种使用 FastMCP 框架自动创建拉取请求和生成代码的人工智能工具。
特征
使用人工智能(GPT-4)进行任务规划
根据计划生成代码
自动创建 GitHub 拉取请求
与 FastMCP 框架集成
Related MCP server: My First MCP Server
要求
Python 3.8+
具有存储库访问权限的 GitHub 令牌
OpenAI API 密钥
所需的 Python 包(请参阅 requirements.txt)
设置
安装依赖项:
pip install -r requirements.txt设置环境变量:创建一个包含以下变量的
.env文件:
GITHUB_TOKEN=your_github_token
API_KEY=your_openai_api_key
API_BASE=your_api_base_url用法
该工具提供三个主要功能:
任务规划
await task_planning(task_file="path/to/task.txt", plan_file="path/to/plan.txt")代码生成
await code_for_plan(plan_file="path/to/plan.txt", code_file="path/to/code.py")创建拉取请求
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"
)发展
该工具使用 FastMCP 框架进行通信,并作为服务器运行。要在本地运行,请执行以下操作:
python pull-request.py执照
MIT 许可证
贡献
欢迎贡献!请随时提交拉取请求。
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
MCP server for generating rough-draft project plans from natural-language prompts.
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.
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.1118 npm102MIT
- 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.5 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