fjmpaez/mcp-first
If you are the rightful owner of mcp-first and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Git Executor MCP Server and client is a simple example of a Model Context Protocol (MCP) server designed for interacting with a git repository.
The Git Executor MCP Server and client is a Python-based server that facilitates interaction with git repositories using the Model Context Protocol. It is built using the Python SDK available at the Model Context Protocol GitHub repository. This server serves as a reference implementation, inspired by a tutorial from adictosaltrabajo.com. The server is designed to provide a straightforward interface for executing git commands and managing repositories. It includes basic tools and resources to demonstrate the capabilities of MCP in handling version control tasks.
Features
- Simple MCP server for git interaction
- Built using Python SDK for MCP
- Reference implementation based on a tutorial
- Facilitates execution of git commands
- Includes basic tools and resources for demonstration
Usages
local integration stdio
python mcp.run(transport='stdio') # Tools defined via @mcp.tool() decorator
local integration subprocess
python command='uv', args=['run', 'src/git-explorer.py', './src/server/server.py', 'absolute_path_to_git_repo'] # Launch using virtual environment
remote integration sse
python mcp.run(transport='sse', host="0.0.0.0", port=8000) # Specify SSE endpoint
remote integration streamable http
yaml paths: /mcp: post: x-ms-agentic-protocol: mcp-streamable-1.0 # Copilot Studio integration
development framework fastmcp
python from mcp.server import FastMCP app = FastMCP('demo') @app.tool() async def query(): ...
Tools
Git Prompt
A tool for prompting git commands.