MCP Git Commit Generator

MCP Git Commit Generator

git-commit-generator•bytheoklitosbam7

An MCP server that generates Conventional Commit messages from staged Git changes and reports Git status.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Builds a strict prompt for a Conventional Commit message using only staged changes, with optional commit type and scope.
  • •Reports the current branch and staged, unstaged, and untracked files.
  • •Accepts a repository root or a path inside a Git worktree.
  • •Supports stdio, Streamable HTTP, and legacy SSE transports.

BEST FOR

  • •Developers who want assistance drafting Conventional Commit messages from staged changes.
  • •Checking Git status and staged files from an MCP-compatible client.
  • •Running a local MCP server over stdio or a network transport.

ABOUT GIT-COMMIT-GENERATOR

MCP Git Commit Generator is cataloged as an MCP server attributed to theoklitosbam7. An MCP server that generates Conventional Commit messages from staged Git changes and reports Git status. 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.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Git Commit Generator 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.

FREQUENTLY ASKED QUESTIONS

Which Conventional Commit types can be specified?

The optional commit_type can be feat, fix, docs, style, refactor, perf, build, ci, test, chore, or revert.

Does the server create commits or edit files?

No. The README states the tools do not create commits or edit files, so a read-only mount is enough.

How does the server treat repository text?

Repository names, paths, file contents, and diffs are treated as attacker-controlled input, and the server tells the model to use them only as evidence about the change.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 94a6df3d8b9b · 采集于 2026-11-13 08:23:41 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Git Commit Generator

PyPI GitHub Release CI License

Generate Conventional Commit messages from staged Git changes through the Model Context Protocol (MCP).

MCP compatibility

This release uses the official Python MCP SDK v2 and targets the MCP 2026-07-28 specification.

The SDK can serve both protocol eras:

  • Modern clients use the 2026-07-28 server/discover flow.
  • Older clients can still use the legacy initialize handshake.
  • stdio is the default local transport.
  • streamable-http is the recommended network transport. Its default endpoint is /mcp.
  • sse remains available only for legacy integrations.

This server configures Streamable HTTP as stateless JSON because its tools do not need a server-to-client back-channel.

Features

  • Generate a Conventional Commit prompt from staged changes only.
  • Inspect staged, unstaged, and untracked files.
  • Accept a repository root or a path inside a Git worktree.
  • Cap the staged diff preview at 1500 characters.
  • Treat repository text as untrusted model input.
  • Validate commit_type and scope before they enter a model prompt.
  • Run Git without a shell, external diff, pager, or interactive prompts.
  • Apply a 15-second timeout to Git commands.
  • Support stdio, Streamable HTTP, and legacy SSE.
  • Run the published container as a non-root user.
  • Test modern MCP 2026-07-28 and legacy MCP behavior.

Requirements

  • Python 3.14 or later.
  • Git.
  • An MCP-compatible client.
  • Optional: Docker.
  • Optional: Node.js 22.19 or later for MCP Inspector v2.

Install

uvx

uvx mcp-git-commit-generator

PyPI

pip install mcp-git-commit-generator

Docker

Mount only the repository that the server must inspect. A read-only mount is enough because the tools do not create commits or edit files.

docker run -i --rm \
  --read-only \
  --cap-drop=ALL \
  --security-opt=no-new-privileges:true \
  --mount type=bind,src="$PWD",dst="$PWD",readonly \
  ghcr.io/theoklitosbam7/mcp-git-commit-generator:latest

Tools

generate_commit_message

Build a strict prompt for a Conventional Commit message from staged changes.

Parameters:

  • repo_path: optional repository path. A path inside a worktree is accepted.
  • commit_type: optional Conventional Commit type: feat, fix, docs, style, refactor, perf, build, ci, test, chore, or revert.
  • scope: optional 1-50 character scope. It can contain letters, numbers, ., _, /, and -.

check_git_status

Report the current branch plus staged, unstaged, and untracked files.

Parameter:

  • repo_path: optional repository path. A path inside a worktree is accepted.

Client configuration

uvx with stdio

Common MCP client format:

{
  "mcpServers": {
    "mcp-git-commit-generator": {
      "command": "uvx",
      "args": ["mcp-git-commit-generator"]
    }
  }
}

VS Code uses a top-level servers object:

{
  "servers": {
    "mcp-git-commit-generator": {
      "command": "uvx",
      "args": ["mcp-git-commit-generator"]
    }
  }
}

Streamable HTTP

Start the local server:

uv run mcp-git-commit-generator \
  --transport streamable-http \
  --host 127.0.0.1 \
  --port 3001

Connect the client to:

http://127.0.0.1:3001/mcp

The HTTP mode has no application authentication. The default bind address is loopback for this reason. If you need remote access, put the server behind an authenticated TLS reverse proxy and restrict network access.

Legacy SSE

Older clients can still use SSE:

uv run mcp-git-commit-generator \
  --transport sse \
  --host 127.0.0.1 \
  --port 3001

New integrations should use stdio or Streamable HTTP.

Development

Install the locked environment:

uv sync --all-groups

Run the checks:

uv run python -m compileall -q src tests
uv run pytest
uv run pip-audit --local
uv build

MCP Inspector v2

Start the MCP server in one terminal from the repository root:

uv run mcp-git-commit-generator \
  --transport streamable-http \
  --host 127.0.0.1 \
  --port 3001

In another terminal, start Inspector with the local server configured:

cd inspector
npm ci
npm run dev:inspector -- \
  --transport http \
  --server-url http://127.0.0.1:3001/mcp \
  --protocol-era modern

Open the Inspector URL printed in the terminal, normally at http://127.0.0.1:6274. If the local server's connection switch is off, turn it on. Inspector calls the transport http; the Python server calls it streamable-http.

The /mcp URL is a protocol endpoint, not a web interface. Do not open it directly in the browser to use Inspector.

For VS Code debugging, select the project's .venv Python interpreter, install the Inspector dependencies with npm ci in inspector, and run Debug in Inspector (Chrome) or Debug in Inspector (Edge). These configurations start both processes and open Inspector on port 5173.

CI and supply-chain controls

The repository uses these controls:

  • GitHub Actions are pinned to full commit SHAs.
  • Python tests run on Linux, macOS, and Windows.
  • Python dependencies are locked with uv.lock and audited with pip-audit.
  • Inspector dependencies are locked with package-lock.json and checked with npm audit.
  • Pull requests use GitHub dependency review for high-severity dependency changes.
  • Dependabot checks uv, npm, GitHub Actions, and Docker dependencies.
  • Container builds produce provenance and an SBOM.
  • PyPI publishing uses GitHub OIDC trusted publishing and package attestations.

Security model

Repository names, paths, file contents, and diffs are attacker-controlled input. The server serializes repository context as JSON and tells the downstream model to use those values only as evidence about the change. It does not treat instructions hidden inside a staged diff as trusted instructions.

Git is executed as an argument list with shell=False behavior. The server disables external diffs, interactive prompts, and pagers for tool operations. It also applies a command timeout.

For Docker, prefer a narrow read-only repository mount instead of mounting the whole home directory.

Release

  1. Update version in pyproject.toml.
  2. Run all checks and refresh both lockfiles.
  3. Create a matching tag, for example v3.0.0.
  4. Push the tag.

Tag pushes build and publish the Python package and container image. PyPI uses trusted publishing.

License

MIT © 2025-2026 Theoklitos Bampouris

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Git Commit Generator from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/git-commit-generator)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

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

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

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

0
Developer Tools

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

Repository stats unavailable
Developer Tools