Back to Home
moor-sun icon

git-mcp-server

Verified Safe

by moor-sun

Overview

Provides a FastAPI server to expose local Git repository file system operations and build commands for AI agents or automation systems.

Installation

Run Command
uvicorn main:app --reload --port 8003

Environment Variables

  • GIT_LOCAL_REPO
  • MAVEN_CMD

Security Notes

The server implements strong path traversal prevention for file access and project paths. Crucially, it validates and whitelists extra arguments passed to build commands, mitigating command injection risks when using `subprocess.run` with `shell=False`. No hardcoded secrets or `eval` usage found. CORS is set to allow all origins, which is acceptable for an internal/local automation tool but would be a vulnerability if exposed publicly without authentication.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens250
Stars0
Forks0
Last Update2025-12-14

Tags

FastAPIGitAutomationAI AgentBuild Tool