AI Pull Request Generator

by Shougakusei

Integrations

  • 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

AI 拉取请求生成器

一种使用 FastMCP 框架自动创建拉取请求和生成代码的人工智能工具。

特征

  • 使用人工智能(GPT-4)进行任务规划
  • 根据计划生成代码
  • 自动创建 GitHub 拉取请求
  • 与 FastMCP 框架集成

要求

  • Python 3.8+
  • 具有存储库访问权限的 GitHub 令牌
  • OpenAI API 密钥
  • 所需的 Python 包(请参阅 requirements.txt)

设置

  1. 安装依赖项:
pip install -r requirements.txt
  1. 设置环境变量:创建一个包含以下变量的.env文件:
GITHUB_TOKEN=your_github_token API_KEY=your_openai_api_key API_BASE=your_api_base_url

用法

该工具提供三个主要功能:

  1. 任务规划
await task_planning(task_file="path/to/task.txt", plan_file="path/to/plan.txt")
  1. 代码生成
await code_for_plan(plan_file="path/to/plan.txt", code_file="path/to/code.py")
  1. 创建拉取请求
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 许可证

贡献

欢迎贡献!请随时提交拉取请求。

-
security - not tested
F
license - not found
-
quality - not tested

由人工智能驱动的 FastMCP 服务器工具,可自动执行规划任务、生成代码和创建 GitHub 拉取请求的过程。

  1. 特征
    1. 要求
      1. 设置
        1. 用法
          1. 发展
            1. 执照
              1. 贡献

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  An MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.
                  Last updated -
                  132
                  Python
                  MIT License
                  • Apple
                  • Linux
                • A
                  security
                  F
                  license
                  A
                  quality
                  An MCP server that enables AI assistants to manage GitHub Actions workflows by providing tools for listing, viewing, triggering, canceling, and rerunning workflows through the GitHub API.
                  Last updated -
                  9
                  24
                  TypeScript
                  • Linux
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  An MCP server that analyzes codebases and generates contextual prompts, making it easier for AI assistants to understand and work with code repositories.
                  Last updated -
                  2
                  Python
                  MIT License
                • A
                  security
                  A
                  license
                  A
                  quality
                  An MCP server that supercharges AI assistants with powerful tools for software development, enabling research, planning, code generation, and project scaffolding through natural language interaction.
                  Last updated -
                  11
                  6
                  TypeScript
                  MIT License
                  • Linux
                  • Apple

                View all related MCP servers

                ID: qu86pf9ek4