Integrations
Provides tools for generating prompts based on Git repository content, including the ability to generate PR descriptions by comparing differences between branches or commits.
Git Prompts MCP Server
This repository provides a Model Context Protocol (MCP) server that offers several commands to generate prompts based on the Git repository's content.
(This repository draws heavy inspiration from MarkItDown MCP server and the example Git MCP server.)
Installation
Manual Installation
- Clone this repository
- Install dependencies:
uv sync --frozen
Usage
As a MCP Server for Zed Editor
Add the following to your settings.json
:
Commands
The server responds to the following commands:
/git-diff <ancestor_branch_or_commit>
: Populate the diff results between HEAD and the specified ancestor branch or commit./generate-pr-desc <ancestor_branch_or_commit>
: Generate a pull request description based on the diff results between HEAD and the specified ancestor branch or commit.
- Note: This is largely the same as
/git-diff
, but it includes instructions for generating a pull request description at the end of the output.
/git-cached-diff
: Populate the diff results for the staged changes and HEAD.
Examples:
/generate-pr-desc main
/git-diff dev
/git-cached-diff
License
MIT License. See LICENSE for details.
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
A Model Context Protocol server that generates prompts based on Git repository content, including a command to generate PR descriptions from diffs.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.Last updated -1245,655JavaScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server for creating commit messages from git staged files.Last updated -21TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables Large Language Models to interact with Git repositories through a robust API, supporting operations like repository initialization, cloning, file staging, committing, and branch management.Last updated -2136955TypeScriptApache 2.0
- AsecurityFlicenseAqualityA Model Context Protocol server that automatically generates structured release notes from Git repository tags, analyzing differences between tags and saving formatted Markdown output to the .iris directory.Last updated -10JavaScript