What does Mcp Git Commit Generator do?
It analyzes staged git diffs and produces a conventional commit message (e.g., `feat`, `fix`, `docs`) with optional auto-detection of type and scope.

@theoklitosBam7
基本信息
Generate conventional commit messages from your staged git changes using Model Context Protocol (MCP)
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-git-commit-generator": {
"command": "uvx",
"args": [
"mcp-git-commit-generator"
]
}
}
}Prepare a structured analysis and instruction block for generating a Conventional Commit message from staged git changes only. Behavior: - Validates the repository path and operates on the provided repo or CWD. - Collects staged diff, porcelain status, and a name-status summary. - Incorporates optional user preferences for commit_type and scope. - Returns a single formatted string that includes context plus strict output instructions for an LLM to produce a Conventional Commit. Args: repo_path: Optional path to the target git repository. If not provided, uses the current working directory. commit_type: Optional commit type (feat, fix, docs, style, refactor, perf, build, ci, test, chore, revert) scope: Optional scope of the change Returns: A formatted prompt containing git change context and clear output rules for generating a Conventional Commit message
Check the current git repository status. Args: repo_path: Optional path to the target git repository. If not provided, uses the current working directory. Returns: Current git status including staged, unstaged, and untracked files
Mcp Git Commit Generator is an MCP server that automatically generates conventional commit messages from your staged git changes. It supports both stdio and SSE transport options and integrates with MCP-compatible clients like VS Code, Claude Desktop, Cursor, and Windsurf.
Install via uvx mcp-git-commit-generator (recommended), pip install mcp-git-commit-generator, or Docker. Configure the server in your MCP client using the provided JSON snippets. Stage your changes (git add <files>), then use the generate_commit_message tool to create a commit message or check_git_status to inspect the repository state.
It analyzes staged git diffs and produces a conventional commit message (e.g., `feat`, `fix`, `docs`) with optional auto-detection of type and scope.
For Docker usage: Docker. For PyPI/uvx usage: Python ≥ 3.13.5 and uv (recommended) or pip. Git is required in all cases.
It supports stdio (default) and SSE transport. For SSE, pass `--transport sse` when running the server; it listens on `0.0.0.0:3001` by default.
It reads locally staged changes from the Git repository on your filesystem. No external data storage is used.
Yes, you can use the Docker image from GitHub Container Registry. Mount your home directory so the container can access Git repositories.
A Model Context Protocol (MCP) server that helps read GitHub repository structure and important files.
Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project
MCP server for Atlassian tools (Confluence, Jira)
a mcp server to manage github project's functionality
Interact seamlessly with GitLab repositories to manage merge requests and issues. Fetch details, add comments, and streamline your code review process with ease.
评论