GitPilot MCP
A lightweight MCP server that enables AI assistants to manage local Git repositories by executing commands like status, add, and commit. It streamlines development workflows by providing repository context and diffs directly to the assistant.
README
GitPilot MCP
Servidor MCP ligero para ejecutar flujos de Git desde asistentes de IA (como Cline, Cursor o clientes compatibles con MCP), usando herramientas simples y prácticas.
GitPilot MCP te permite conectar tu asistente con tu repositorio local para consultar estado, preparar cambios, hacer commits y obtener contexto del proyecto de forma rápida.
Por que este proyecto es util
- Reduce pasos manuales en tareas repetitivas de Git.
- Expone operaciones comunes como herramientas MCP reutilizables.
- Facilita que un asistente entienda el estado actual del repo antes de proponer cambios.
- Es pequeño, claro y facil de extender con nuevas herramientas.
Que incluye
Actualmente expone estas herramientas:
git_status: devuelve la salida degit status.git_add(files): agrega archivos al staging (git add). Si no se envia lista, intenta agregar todo.git_commit(message): crea commit con mensaje.get_context: devuelvegit diff,git diff --stagedy estructura del repo contree.
Stack
- Python 3.12+
- FastMCP
- Git CLI
Requisitos
- Python
>=3.12 - Git instalado y disponible en PATH
- Recomendado: comando
treeinstalado (usado porget_context)
Instalacion
1. Clonar el repositorio
git clone <TU_REPO_URL>
cd git-mcp-server
2. Instalar dependencias
Con uv (recomendado):
uv sync
O con pip:
python -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install fastmcp
Ejecutar el servidor
python main.py
Servidor por defecto:
- Host:
127.0.0.1 - Puerto:
8000 - Endpoint MCP:
http://127.0.0.1:8000/mcp
Configuracion MCP (ejemplo VS Code)
.vscode/mcp.json
{
"servers": {
"my-git-mcp-server": {
"url": "http://127.0.0.1:8000/mcp",
"type": "http"
}
},
"inputs": []
}
Flujo de uso sugerido
- El asistente llama
git_statuspara entender el estado. - Usa
get_contextpara revisar diffs y estructura. - Prepara cambios con
git_add. - Cierra con
git_commit("mensaje").
Ejemplos de prompts utiles
- "Revisa el estado del repo y dime que archivos cambiaron."
- "Agrega todos los archivos y realiza un commit con un mensaje convencional."
- "Muestrame el contexto actual del repo para planear el siguiente cambio."
Limitaciones actuales
- No valida errores en profundidad en cada comando.
- No incluye politicas de seguridad por rama/entorno.
git_addcon*depende del comportamiento de shell/CLI; puede mejorarse para robustez total.
Roadmap recomendado
- Manejo robusto de errores y codigos de salida.
- Herramientas extra:
git_log,git_checkout,git_branch,git_push. - Configuracion por variables de entorno (host, puerto, repo target).
- Tests automaticos para cada herramienta MCP.
Contribuciones
PRs y mejoras son bienvenidas. Si propones una nueva herramienta, idealmente incluye:
- Caso de uso claro
- Ejemplo de prompt
- Validaciones de seguridad
- Pruebas
Licencia
Puedes publicar este repo con licencia MIT para facilitar adopcion. Si aun no definiste licencia, agrega un archivo LICENSE antes de hacerlo publico.
Si prefieres otro naming de marca, alternativas recomendadas:
GitCopilot MCPRepoPilot MCPGitOps MCP Toolkit
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.