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:
"context_servers": {
"git_prompt_mcp": {
"command": {
"path": "uv",
"args": [
"--directory",
"/path/to/local/git_prompts_mcp_server",
"run",
"git-prompts-mcp-server",
"/path/to/repo/", // parent folder of the .git directory
"--excludes", // exclude files and directories from diff results
"**/uv.lock",
"--excludes",
"**/.gitignore",
"--format", // format for diff results
"json" // options: json, text
]
},
"settings": {}
}
}
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.
Git Prompts Server
Project Details
- ceshine/git-prompts-mcp-server
- MIT License
- Last Updated: 4/13/2025
Recomended MCP Servers
A cringe-worthy MCP server that serves ads to developers in Cursor, Claude, and other clients
A MCP (Model Context Protocol) server that provides get, send Gmails without local credential or token setup.
MCP that allows us to load our bruno collection and have AI call it on our behalf
🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from...
A Model Context Protocol server that provides documentation access capabilities. This server enables LLMs to search and retrieve...
Collection of apple-native tools for the model context protocol.
Allow MCP clients like claude-desktop to use rooms to coordinate with other agents





