mcp-gh-pr-mini logo

mcp-gh-pr-mini

by y-hirakaw

A minimal MCP server for interacting with GitHub pull requests. This tool allows you to create, list, view diffs, request reviewers, and comment on pull requests in GitHub repositories via MCP.

View on GitHub

Last updated: N/A

What is mcp-gh-pr-mini?

mcp-gh-pr-mini is a minimal Model Context Protocol (MCP) server designed to facilitate interaction with GitHub pull requests. It provides a simplified interface for common pull request operations through an MCP-compatible client.

How to use mcp-gh-pr-mini?

The server runs locally and can be integrated with tools like Copilot Agent or any MCP-compatible client. Configure the server in your VSCode settings.json with the provided configuration, ensuring you have a GitHub personal access token with the necessary permissions (Pull requests: Read and write, Issues: Read and write, Contents: Read and write).

Key features of mcp-gh-pr-mini

  • Create a pull request in a GitHub repository

  • List open pull requests

  • Get the diff for a pull request

  • Request reviewers for a pull request

  • Add a comment to a pull request (with automatic AI identification)

  • Get comments from a pull request

  • Get file changes with comment positions

Use cases of mcp-gh-pr-mini

  • Automating pull request creation from within an IDE

  • Streamlining code review workflows using MCP

  • Integrating AI-powered code analysis tools with pull request commenting

  • Managing pull requests programmatically via an MCP client

FAQ from mcp-gh-pr-mini

What is MCP?

MCP stands for Model Context Protocol. It's a protocol that allows different tools and services to communicate and share context, enabling more integrated and automated workflows.

What permissions are required for the GitHub personal access token?

The token needs the following permissions: Pull requests: Read and write, Issues: Read and write, Contents: Read and write.

How do I configure the server in VSCode?

Add the provided JSON configuration snippet to your VSCode settings.json file, replacing {Your Fine-Grained GitHub Token} with your actual token.

Can I use this with other MCP-compatible clients besides Copilot Agent?

Yes, any MCP-compatible client should be able to interact with this server.

What if I encounter issues or have suggestions?

Feedback, suggestions, and contributions are welcome! The author acknowledges being new to MCP server development and appreciates any input.