MCP ExplorerExplorer

Local Git Mcp Server

@okdshinon 10 months ago
1 MIT
FreeCommunity
AI Systems
A Python-based server for managing local Git repositories using MCP.

Overview

What is Local Git Mcp Server

local-git-mcp-server is a Python-based Git repository management server that utilizes the MCP (Message-based Communication Protocol) framework for efficient communication and management of local Git repositories.

Use cases

Use cases include managing multiple local Git repositories for projects, facilitating collaborative development among team members, and providing a controlled environment for learning Git operations.

How to use

To use local-git-mcp-server, run the server with the command: python git_server.py [--repositories-dir ./repositories], where you can specify the directory for storing repositories.

Key features

Key features include the ability to create and manage local Git repositories, validate repository names, and perform various Git operations such as creating repositories, adding files, committing changes, pulling, pushing, and generating diffs.

Where to use

local-git-mcp-server can be used in software development environments where local Git repository management is needed, such as in educational institutions, small teams, or individual projects.

Content

Local Git MCP Server

Overview

A Python-based Git repository management server using the MCP (Message-based Communication Protocol) server framework.

Features

  • Create, manage, and interact with local Git repositories
  • Validate repository names
  • Perform Git operations:
    • Repository creation
    • Adding files
    • Committing changes
    • Pulling and pushing
    • Diff generation

Dependencies

  • GitPython
  • Pydantic
  • MCP Server
  • Black (code formatting)
  • isort (import sorting)

Usage

Run the server with:

python git_server.py [--repositories-dir ./repositories]

Development

  • Code is automatically formatted using Black and isort
  • GitHub Actions workflow for code formatting

License

[ADD LICENSE INFORMATION IF APPLICABLE]

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers