Skip to main content
Glama
Shougakusei

AI Pull Request Generator

by Shougakusei

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

  1. Install dependencies:

pip install -r requirements.txt
  1. Set up environment variables: Create a .env file with the following variables:

GITHUB_TOKEN=your_github_token
API_KEY=your_openai_api_key
API_BASE=your_api_base_url

Usage

The tool provides three main functions:

  1. Task Planning

await task_planning(task_file="path/to/task.txt", plan_file="path/to/plan.txt")
  1. Code Generation

await code_for_plan(plan_file="path/to/plan.txt", code_file="path/to/code.py")
  1. 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.py

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a pull request.

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    An 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.
    13
    ISC
  • F
    license
    A
    quality
    D
    maintenance
    An 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
  • A
    license
    -
    quality
    D
    maintenance
    A production-ready MCP server that provides AI assistants with comprehensive GitHub developer tooling including PR analysis, code review, changelog generation, dependency auditing, commit summarization, and refactoring suggestions.
    17
    ISC

View all related MCP servers

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.

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Shougakusei/plan_pr_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server