Back to Home
surajfale icon

git-mcp-server

Verified Safe

by surajfale

Overview

Automates conventional Git commits, changelog updates, and optional pushes, primarily for AI assistants to generate commit messages based on code changes.

Installation

Run Command
git-commit-mcp

Environment 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

Stats

Interest Score33
Security Score7
Cost ClassMedium
Avg Tokens1500
Stars2
Forks0
Last Update2025-11-23

Tags

GitConventional CommitsAIMCPChangelogAutomation