MCP Git Commit Generator
by LuiccianDev
README.md
<div align="center">
<h1>MCP Git Commit Generator</h1>
<p>
<em>Powerful Git commit message generator using the Model Context Protocol (MCP)</em>
</p>
[](https://www.python.org/downloads/)
[](https://github.com/psf/black)
[](https://pycqa.github.io/isort/)
[](http://mypy-lang.org/)
[](https://github.com/astral-sh/ruff)
[](https://gitpython.readthedocs.io/en/stable/)
[](https://pre-commit.com/)
[](LICENSE)
A Python package implementing the Model Context Protocol (MCP) to generate meaningful Git commit messages by analyzing repository changes.
</div>
---
## π Overview
MCP Git Commit Generator is a Python package that leverages the Model Context Protocol (MCP) to analyze your Git repository and generate conventional, context-aware commit messages. It supports multiple deployment modes and integrates seamlessly with DXT and MCP environments.
---
## π οΈ Tool Reference
For a complete list of available tools and their input schemas, see [TOOLS.md](./TOOLS.md).
---
## π¦ Installation
### Prerequisites
- **Python 3.11+** (with type hints)
- **UV Package Manager** ([Install UV](https://docs.astral.sh/uv/getting-started/installation/)) or use pip
- **Git** (for repository operations)
- **Desktop Extensions (DXT)** ([Install DXT](https://github.com/anthropics/dxt)) for packaging .dxt files for Claude Desktop
### Clone the Repository
```bash
git clone https://github.com/LuiccianDev/mcp_git_commit_generator.git
cd mcp_git_commit_generator
```
### Install in Development Mode
```bash
pip install -e .
```
---
## π Project Structure
```text
mcp_git_commit_generator/
βββ src/
β βββ core/ # Core logic and utilities
β β βββ __init__.py
β βββ tools/ # MCP tool implementations
β β βββ __init__.py
β β βββ commit_analysis.py # Commit message generation logic
β β βββ git_operations.py # Git repository operations
β β βββ register_tools.py # Tool registration for MCP
β βββ __init__.py # Package metadata
β βββ __main__.py # CLI entry point
β βββ server.py # MCP server implementation
βββ tests/ # Unit and integration tests
β βββ test_commit_analysis.py
βββ manifest.json # DXT packaging manifest
βββ TOOLS.md # Tool reference documentation
βββREADME.md # Project documentation
```
---
## π§ͺ Development
### Setup Development Environment
1. Clone the repository and navigate to the project directory.
2. Install development dependencies:
```bash
pip install -e ".[dev]"
```
3. Install pre-commit hooks:
```bash
pre-commit install
```
---
## βοΈ Deployment Modes
MCP Git Commit Generator Server supports three deployment modes to fit different workflows and environments:
### DXT Package Deployment
**Recommended for:** Users in the DXT ecosystem who want seamless configuration management.
1. **Package the project:**
```bash
dxt pack
```
2. **Usage:** Once packaged, the tool integrates directly with DXT-compatible clients with automatic user configuration variable substitution.
3. **Server Configuration:** This project includes [manifest.json](./manifest.json) for building the .dxt package.
For more details, see [DXT Package Documentation](https://github.com/anthropics/dxt).
### Traditional MCP Server
**Recommended for:** Standard MCP server deployments with existing MCP infrastructure.
Add to your MCP configuration file (e.g., Claude Desktop's `mcp_config.json`):
```bash
# Build packages
uv build
# Install packages
pip install dist/your_package*.whl
```
Then configure MCP:
```json
{
"mcpServers": {
"mcp_git_commit": {
"command": "uv",
"args": ["run", "mcp_git_commit"]
}
}
}
```
Or use this configuration (less recommended):
```json
{
"mcp-word": {
"command": "/Users/user/to/repo/.venv/Scripts/python",
"args": [
"/Users/user/to/repo/src/mcp_git_commit_generator/server.py"
]
}
}
```
---
## π€ Contributing
Contributions are welcome! Please read the contribution guidelines before submitting pull requests.
---
## π License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
---
<div align="center">
<p><strong>MCP Git Commit Generator Server</strong></p>
<p>Empowering AI assistants with comprehensive Git commit generation capabilities</p>
<p>
<a href="https://github.com/LuiccianDev/mcp_git_commit_generator">π GitHub</a> β’
<a href="https://modelcontextprotocol.io">π MCP Protocol</a> β’
<a href="https://github.com/LuiccianDev/mcp_git_commit_generator/blob/main/TOOLS.md">π Tool Documentation</a>
</p>
<p><em>Created by LuiccianDev</em></p>
</div>
TDQS
A3.6/5.0
Scored across 15 tools
Disambiguation4/5
Most tools are clearly distinct, but git_optimized_status and git_status_tool overlap in purpose; however, the description helps differentiate them. Diff tools are separated into staged/unstaged and general, which is clear.
Naming Consistency4/5
All tools follow snake_case and most use the git_ prefix, but generate_commit_message lacks the prefix, and git_optimized_status deviates from the verb_noun pattern.
Tool Count5/5
15 tools cover the essential Git commit generation workflow without being excessive. Each tool serves a distinct purpose in the pipeline.
Completeness5/5
The tool set provides full coverage for generating commits: staging, committing, status checks, diffs, branching, and history. No obvious gaps for the intended domain.
Maintenance
ActivityInactive
ResponsivenessNo issues