GitPilot MCP

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.

Category
Visit Server

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 de git 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: devuelve git diff, git diff --staged y estructura del repo con tree.

Stack

Requisitos

  • Python >=3.12
  • Git instalado y disponible en PATH
  • Recomendado: comando tree instalado (usado por get_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

  1. El asistente llama git_status para entender el estado.
  2. Usa get_context para revisar diffs y estructura.
  3. Prepara cambios con git_add.
  4. 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_add con * 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 MCP
  • RepoPilot MCP
  • GitOps MCP Toolkit

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

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.

Official
Featured
Python
graphlit-mcp-server

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.

Official
Featured
TypeScript
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured