Skip to main content

MCP GitHub Issues Create/Update and PR Analyse

Project description

MCP for GitHub PR, Issues, Tags and Releases

The Model Context Protocol (MCP) is an open standard that enables seamless integration between Large Language Models (LLMs) and external tools. Whilst it can be implemented in any AI system, including custom LLM setups, the degree of integration and optimisation varies based on the model's architecture and capabilities.

GitHub PR Issue Analyser MCP server

This MCP application serves as a bridge between LLMs and GitHub's repository management features, offering automated analysis of pull requests and comprehensive issue management. It provides a robust set of tools to fetch PR details, create issues, and update issues directly from your desktop LLM. The application is designed with modularity in mind, supporting extensibility via the MCP tool interface and seamless integration with existing workflows.

The toolset enables automated PR analysis, issue tracking, tagging and release management through a standardised MCP interface, making it ideal for teams seeking to streamline their GitHub workflow automation.

Features

Function Description
Analyse GitHub Pull Requests and fetch diffs Retrieve the diff/patch for any PR in a repository.
Fetch content and metadata for specific PRs Get PR title, description, author, timestamps, and state.
Update PR title and description Change the title and body of any PR.
Add comments to PRs Post general comments to a PR thread.
Add inline review comments to PRs Comment on specific lines in PR files for code review.
Create and update GitHub Issues Open new issues or update existing ones with title, body, labels, and state.
Create tags and releases Tag repository commits and publish releases with changelogs.
Retrieve IPv4 and IPv6 information Get public IP address details for both IPv4 and IPv6.
List all open Issues or Pull Requests View all open PRs or issues for any user or organisation.

Requirements

  • Python 3.11+
  • GitHub Personal Access Token (with repo scope)

Architecture Diagram

                                     +------------------------+
                                     |                        |
                                     |    MCP Client/User     |
                                     |                        |
                                     +------------------------+
                                              |
                                              | (stdio/http)
                                              v
+--------------------+              +------------------------+
|                    |              |    PRIssueAnalyser     |
|   IP Integration   | <------------|    (FastMCP Server)    |
|   (ipinfo.io)      |              |                        |
+--------------------+              +------------------------+
                                              |
                                              | (API calls)
                                              v
                                   +------------------------+
                                   |   GitHub Integration   |
                                   +------------------------+
                                              |
                                              | (REST API)
                     +-------------------------+-------------------------+
                     |                         |                         |
              +-------------+           +--------------+        +-------------+
              | GitHub PRs  |           |GitHub Issues |        |GitHub Tags/ |
              | & Releases  |           |              |        | Releases    |
              +-------------+           +--------------+        +-------------+

Features:

  1. PR Management: Fetch, analyze, and update
  2. Issue Tracking: Create and update
  3. Release Management: Tags and releases
  4. Network Info: IPv4/IPv6 details

Main Flows:

  • PRIssueAnalyser: Main MCP server handling tool registration and requests
  • GitHub Integration: Manages all GitHub API interactions
  • IP Integration: Handles IPv4/IPv6 information retrieval
  • MCP Client: Interacts via stdio or streamable HTTP (http)

Local Installation

  1. Clone the repository:
git clone https://github.com/saidsef/mcp-github-pr-issue-analyser.git
cd mcp-github-pr-issue-analyser
  1. Install dependencies:

Launch MCP in stdio mode.

export GITHUB_TOKEN="<github-token>"
uvx ./

Alternatively, launch MCP in http mode.

export GITHUB_TOKEN="<github-token>"
export MCP_ENABLE_REMOTE=true
uvx ./

You can access it via http i.e. http(s)://localhost:8080/mcp

Local Integration with IDEs and LLMs

To add an MCP server to your IDE or LLM, you need to add this section to the configuration file. The basic structure involves defining a server name and providing the command and any necessary arguments to run the server.

Claude / Cursor / Windsurf
{
  "mcpServers": {
    "github_prs_issues": {
      "command": "uvx",
      "env": {
        "GITHUB_TOKEN": "<your-github-token>"
      },
      "args": [
        "https://github.com/saidsef/mcp-github-pr-issue-analyser.git",
      ]
    }
  }
}
VS Code
{
  "inputs": [
    {
      "type": "promptString",
      "id": "github-token",
      "description": "Enter your GitHub token",
      "password": true
    }
  ],
  "servers": {
    "github-prs-issues": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "https://github.com/saidsef/mcp-github-pr-issue-analyser.git",
      ],
      "env": {
        "GITHUB_TOKEN": "${input:github-token}"
      }
    }
  }
}

Source

Our latest and greatest source of mcp-github-pr-issue-analyser can be found on [GitHub]. Fork us!

Contributing

We would :heart: you to contribute by making a pull request.

Please read the official Contribution Guide for more information on how you can contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_mcp_github_pr_issue_analyser-3.4.1.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_mcp_github_pr_issue_analyser-3.4.1.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_mcp_github_pr_issue_analyser-3.4.1.tar.gz
Algorithm Hash digest
SHA256 ebe0ba8539ad86e905d94569ebf656fc4e44f51d59fc46ebabc872603d5090eb
MD5 fe0342d1ce0851342d339cc6b3773ef2
BLAKE2b-256 4ce5e406258f76fe9404ac92496e7ff66004fb1279b05fb65a6678ef4a412698

See more details on using hashes here.

File details

Details for the file iflow_mcp_mcp_github_pr_issue_analyser-3.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_mcp_github_pr_issue_analyser-3.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5e0ca6f2c209fa7f02f173404d97bfa4e06dd3d513581c35ab57c0b7905de66
MD5 d3a50d3eb01eed529c283ac9e21ef616
BLAKE2b-256 e516c834d99d325d5bcaf0aca2455231dfe6142047e97501e8e4410ebe99f6c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page