GitHub PR MCP Server logo

GitHub PR MCP Server

by gourav221b

An MCP server built with TypeScript for analyzing GitHub Pull Requests. It provides a structured way to examine and understand pull request data.

View on GitHub

Last updated: N/A

GitHub PR MCP Server

An MCP (Model-Controller-Presenter) server built with TypeScript for analyzing GitHub Pull Requests.

Prerequisites

  • Node.js (version 14 or higher)
  • npm (comes with Node.js)

Installation

  1. Clone the repository:

    git clone https://github.com/gourav221b/Github-PR-MCP-server.git
    
  2. Navigate to the project directory:

    cd Github-PR-MCP-server
    
  3. Install dependencies:

    npm install
    
  4. Build the project:

    npm run build
    
  5. Add the path to MCP Client Config:

    command: node
    args: path/to/build/index.js
    

Project Structure

  • src/: Contains the TypeScript source code.
  • build/: Holds the compiled JavaScript files.
  • package.json: Lists project dependencies and scripts.
  • tsconfig.json: TypeScript configuration file.

Scripts

  • npm run build: Compiles TypeScript files into JavaScript.
  • npm start: Runs the compiled JavaScript server.

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes.

License

This project is licensed under the MIT License.