Git 提示 MCP 服务器
该存储库提供了一个模型上下文协议 (MCP) 服务器,该服务器提供了多个命令来根据 Git 存储库的内容生成提示。
(该存储库从MarkItDown MCP 服务器和示例Git MCP 服务器中汲取了大量灵感。)
安装
手动安装
克隆此存储库
安装依赖项:
uv sync --frozen
用法
作为 Zed Editor 的 MCP 服务器
将以下内容添加到您的settings.json :
命令
服务器响应以下命令:
/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 许可证。详情请参阅许可证。
local-only server
The server can only run on the client's local machine because it depends on local resources.
一个基于 Git 存储库内容生成提示的模型上下文协议服务器,包括从差异生成 PR 描述的命令。
Related MCP Servers
- AsecurityAlicenseAqualityA 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 -1371,192MIT 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 -2,311139Apache 2.0
- AsecurityAlicenseAqualityA flexible Model Context Protocol server that makes documentation or codebases searchable by AI assistants, allowing users to chat with code or docs by simply pointing to a git repository or folder.Last updated -11761MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that provides specialized prompt suggestions for backend development, frontend development, and general tasks to help LLMs generate better content.Last updated -631