
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A Model Context Protocol server that offers commands and tools to generate prompts and diffs based on a Git repository's content.
Git Prompts MCP Server is cataloged as an MCP server attributed to ceshine. A Model Context Protocol server that offers commands and tools to generate prompts and diffs based on a Git repository's content. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Git Prompts MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes, GIT_EXCLUDES accepts a comma-separated list of file patterns to exclude from diff results.
Diff results can be output as json (the default) or text.
README.md · edbd72fb2faa · 采集于 2026-11-13 10:46:58 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
This repository provides a Model Context Protocol (MCP) server that offers several commands to generate prompts based on the Git repository's content.
Prerequisites: Python 3.12+ and uv
Add the following to your settings.json:
"context_servers": {
"git_prompt_mcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/ceshine/git-prompts-mcp-server.git",
"git-prompts-mcp-server",
"/path/to/repo/", // parent folder of the .git directory
"--excludes", // Exclude files and directories from diff results (the server uses pathlib.PurePath behind the scenes)
"**/uv.lock",
"--format", // format for diff results
"json" // options: json, text
],
"env": {}
}
}
To enable the commands and tools provided by this server in your Gemini CLI:
gemini extension install https://github.com/ceshine/git-prompts-mcp-server.git --auto-update
This command will install the git-prompts-mcp-server as a Gemini CLI extension, making its prompts and tools available for use./git-diff, /generate-pr-desc) and tools (e.g., git_diff, git_cached_diff) will be automatically available to your Gemini CLI sessions when run within a Git repository.Important Caveat: This extension relies on the current working directory being part of a Git repository (i.e., containing a .git subfolder). If the Gemini CLI is not run from the root of a Git project, the extension's commands and tools may not function as expected.
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 and commit history between HEAD and the specified ancestor branch or commit./git-cached-diff: Populate the diff results for the staged changes and HEAD./git-commit-messages <ancestor_branch_or_commit>: Get commit messages between the ancestor and HEAD./generate-commit-message [num_commits]: Generate commit message based on the diff between the files in the staging area (the index) and the HEAD. Additionally, it points out any potential issues in the changes at the end of the output. num_commits defaults to 5. Set to 0 to exclude commit history.Examples:
/generate-pr-desc main/git-diff dev/git-cached-diff/git-commit-messages main/generate-commit-message or /generate-commit-message 3The server also provides the following tools for MCP-compatible clients:
git-diff: Get a diff between the HEAD and the ancestor branch or commit.git-cached-diff: Get a diff between the files in the staging area (the index) and the HEAD.git-unstaged-diff: Get a diff between the working tree and the staging area (equivalent to git diff).git-commit-messages: Get commit messages between the ancestor and HEAD.The server can be configured with the following environment variables, which can be set in the env section of the Zed settings.json:
GIT_REPOSITORY: The path to the Git repository. This is automatically passed by Zed.GIT_EXCLUDES: A comma-separated list of file patterns to exclude from the diff results (e.g., "*/uv.lock,*.log").GIT_OUTPUT_FORMAT: The output format for the diff results. Can be json (default) or text.uv sync --frozengit-unstaged-diff MCP tool to expose working tree changes (equivalent to git diff), along with a corresponding tool-git-unstaged-diff CLI command.git-prompts-mcp-cli installed script entry point in pyproject.toml, making the CLI directly invokable after installation without going through uv run python -m.fnmatch to pathlib.PurePath for more robust and idiomatic path matching, including a workaround for root-level file matching in older Python versions.$1 placeholders in prompts to handle template-based workflows (e.g., OpenCode), with defaults provided for these cases.Annotated[..., Field(...)], so FastMCP correctly applies defaults when the client does not provide values for optional arguments.prompt-generate-commit-message to generate commit messages via the /generate-commit-message prompt, with optional --num-commits.GIT_METHOD_COLLETION to GIT_METHOD_COLLECTION, and added logging plus validation to reject negative num_commits./generate-commit-message to generate commit messages based on staged changes and recent commit history. It also highlights potential issues in the changes.gemini-extension.json to support direct installation as a Gemini CLI extension..pre-commit-config.yaml for development.git-diff, generate-pr-desc, and git-cached-diff. This allows for a more integrated experience with MCP-compatible clients./git-commit-messages to get commit messages between a specified ancestor and HEAD.MIT License. See LICENSE for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Git Prompts MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/git-prompts-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.