Smart Git MCP Server & CLI
โก Smart Git MCP Server & CLI
Next-generation Model Context Protocol (MCP) server & CLI for Git workflows.
Semantic Conventional Commits, Pre-PR Secret Audits, Conflict Resolution, and Automated Release Notes for Claude Desktop, Cursor, Command Code, and Cline.
๐ Why mcp-smart-git?
AI coding assistants are brilliant at writing code, but they have zero hesitation about:
Accidentally staging API keys,
.envtokens, or database credentials in unified diffs.Writing lazy, chaotic commit messages (
"update stuff","fix").Creating catastrophic merge conflicts during branch merges.
mcp-smart-git gives your AI assistant a senior DevOps partner that analyzes git diffs safely and semantically.
๐ Quick Setup (MCP Stdio)
1. Cursor (.cursor/mcp.json)
{
"mcpServers": {
"smart-git": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/mcp-smart-git/dist/index.js"]
}
}
}2. Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"smart-git": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/mcp-smart-git/dist/index.js"]
}
}
}๐ ๏ธ MCP Tools Exposed
Tool | Parameters | Description |
|
| Parses diffs to generate structured Conventional Commits ( |
|
| Runs static analysis on diff lines for secret leaks (AWS keys, OpenAI tokens, private keys), |
|
| Scans repository for |
|
| Categorizes recent commit history into clean markdown release notes grouped by features, fixes, and chores. |
| - | Returns clean, token-efficient repository branch and tracking metrics. |
๐ป Standalone Terminal CLI Usage
No MCP client required! You can also execute it directly from your terminal:
# Clone & install dependencies
git clone https://github.com/rafim-dev/mcp-smart-git.git
cd mcp-smart-git
npm install
npm run build
# Generate conventional commit from current diff
node dist/index.js commit
# Run pre-PR secret audit & security score
node dist/index.js review
# Synthesize conflict resolution
node dist/index.js conflicts
# Generate release changelog
node dist/index.js changelog(Tip: Run npm link inside the directory to make the mcp-smart-git command globally available anywhere in your shell).
๐งช Testing & Verification
Includes a complete automated test suite (100% passing):
npm test๐ฆ Pro Distribution & Power Bundle
โก Download Compiled Zero-Config Bundle on Gumroad ($5.00+ Pay-What-You-Want)
๐ฎ Download on itch.io ($5.00+ Pay-What-You-Want)
๐ Get the 2-in-1 AI Developer Power Bundle (Includes
mcp-smart-git+schema-bridge-mcpat 20% off)
๐ License
MIT License. Authored by rafim_dev.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rafim-dev/mcp-smart-git'
If you have feedback or need assistance with the MCP directory API, please join our Discord server