Git Prompts MCP Server
Git 提示 MCP 服务器
该存储库提供了一个模型上下文协议 (MCP) 服务器,该服务器提供了多个命令来根据 Git 存储库的内容生成提示。
(该存储库从MarkItDown MCP 服务器和示例Git MCP 服务器中汲取了大量灵感。)
安装
手动安装
克隆此存储库
安装依赖项:
uv sync --frozen
Related MCP server: GitHub MCP Server
用法
作为 Zed Editor 的 MCP 服务器
将以下内容添加到您的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": {}
}
}命令
服务器响应以下命令:
/git-diff <ancestor_branch_or_commit>:填充 HEAD 与指定祖先分支或提交之间的差异结果。/generate-pr-desc <ancestor_branch_or_commit>:根据 HEAD 与指定祖先分支或提交之间的差异结果生成拉取请求描述。
注意:这与
/git-diff大致相同,但它包含在输出末尾生成拉取请求描述的说明。
/git-cached-diff:填充阶段性变更和 HEAD 的差异结果。
例子:
/generate-pr-desc main/git-diff dev/git-cached-diff
执照
MIT 许可证。详情请参阅许可证。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityAmaintenanceA 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.1289,748MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI assistants like Claude to interact with GitHub repositories, issues, and pull requests.18MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables LLMs to interact with Git repositories, providing tools to read, search, and manipulate Git repositories through commands like status, diff, commit, and branch management.12MIT
- AlicenseCqualityBmaintenanceA Model Context Protocol server that enables LLMs to interact with Git repositories, providing tools to read, search, and manipulate Git repositories through commands like status, diff, commit, and branch operations.224MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
A Model Context Protocol server for Wix AI tools
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ceshine/git-prompts-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server