Back to Home
GHjiejie icon

git-mcp-server

by GHjiejie

Overview

This server provides a Model Context Protocol (MCP) interface for executing Git operations and generating AI-powered weekly reports using a local Ollama instance.

Installation

Run Command
npm start

Security Notes

The server uses `child_process.exec` to execute Git commands. Several handlers, such as `handleGitAdd`, `handleGitBranch`, and `handleGitRemote`, directly concatenate user-provided arguments (`files`, `branchName`, `name`, `url`) into shell commands without sufficient sanitization. This presents a critical shell injection vulnerability, allowing an attacker to execute arbitrary commands on the host system by crafting malicious input arguments. While `git_commit` attempts basic escaping for the message, it's not comprehensive enough for all shell contexts, and other commands lack even this basic protection. The `directory` argument is also directly used as `cwd`, which could be exploited in conjunction with injection to target specific paths.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassMedium
Avg Tokens2500
Stars0
Forks0
Last Update2025-11-30

Tags

GitAIMCP ServerDeveloper ToolReport Generation