GitStuffServer

GitStuffServer

0

Git Stuff Server is a Node.js application functioning as an MCP server, providing tools for generating diffs for Git merge commits. It utilizes a PowerShell script for processing the commit hash to generate diffs, handling MCP requests via stdio communication.

Git Stuff Server

Features

  • Runs as an MCP server using stdio for communication.
  • get_git_merge_diff Tool:
    • Accepts a Git merge commit hash.
    • Executes a PowerShell script to generate a diff.

Prerequisites

  • Node.js, npm, Git, and PowerShell (or pwsh) are required.

Installation

  1. Clone the repository.
  2. Install dependencies.

Usage

  1. Build the TypeScript code.
  2. Run the server, either in compiled mode or development mode.

How it Works

  1. Server receives a request for the tool.
  2. Validates input and executes a PowerShell script.
  3. Generates and returns the diff content to the MCP client.