git-mcp-server
Verified Safeby surajfale
Overview
Automates conventional Git commits, changelog updates, and optional pushes, primarily for AI assistants to generate commit messages based on code changes.
Installation
git-commit-mcpEnvironment Variables
- OPENAI_API_KEY
- ENABLE_AI
- AI_MODEL
- FORCE_SSH_ONLY
- LOG_LEVEL
- AI_PROVIDER
- AI_TEMPERATURE
- AI_MAX_TOKENS
- AI_TIMEOUT_SECONDS
- AI_BASE_URL
- DEFAULT_REPO_PATH
- MAX_BULLET_POINTS
- MAX_SUMMARY_LINES
- CHANGELOG_FILE
- WORKSPACE_DIR
- GIT_SSH_KEY_PATH
- GIT_USERNAME
- GIT_TOKEN
Security Notes
The server's Git operations disable SSH host key checking (`StrictHostKeyChecking=no`, `UserKnownHostsFile=/dev/null`), which makes it vulnerable to Man-in-the-Middle (MITM) attacks if the remote Git server is compromised or spoofed. Sensitive credentials like `OPENAI_API_KEY` and Git authentication details are loaded from environment variables, which is a good practice, but still requires secure management by the user. The `RepositoryManager` creates temporary workspaces for cloning remote repositories and performs file system operations (`shutil.rmtree`) within its designated `workspace_dir`.
Similar Servers
wcgw
An MCP server that empowers AI chat applications to execute shell commands, edit code, and manage project context on a local machine for development tasks.
tinystruct-mcp
This server provides a JSON-RPC interface for Git, GitHub API, and file system operations, intended for integration into DevOps, automation, and AI-driven workflows.
mcp-server-for-Github
Automates comprehensive GitHub workflows for AI agents, including repository management, issue tracking, pull request operations, code search, and file management, enabling AI-powered development.
athena-protocol
This server acts as an AI tech lead, providing expert validation, impact analysis, and strategic guidance to AI coding agents before code changes are made.