I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

git-prompts-MCP-Server
MCP服务器提供了多个命令来基于GIT存储库的内容生成提示
3 years
Works with Finder
1
Github Watches
0
Github Forks
1
Github Stars
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.
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
Take an adjectivised noun, and create images making it progressively more adjective!
Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease
一个适用于中小型团队的AI聊天机器人,支持DeepSeek,Open AI,Claude和Gemini等车型。 专为中小团队设计的ai聊天应用,支持deepSeek,打开ai,claude,双子座等模型。
Reviews

user_9d3zGpIk
As a dedicated user of git-prompts-mcp-server, I highly recommend it to anyone seeking an efficient solution for managing Git prompts. Created by the talented ceshine, this tool has significantly streamlined my workflow and improved productivity. The seamless integration and ease of use make it a must-have for developers. Check it out on GitHub!