mcp-server-git
About This Server
A Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.
Server Information
The webpage is a directory listing for the `/src/git` directory within the `modelcontextprotocol/servers` GitHub repository. The repository is for Model Context Protocol Servers. The directory appears to contain code related to a git MCP (Model Context Protocol) server. The page provides access to files and subdirectories within `/src/git`, a summary of the repository's purpose, instructions for installation, configuration, and development.
ā Key Points:
- The `modelcontextprotocol/servers` repository hosts code for Model Context Protocol Servers.
- The `/src/git` directory specifically relates to a git MCP server.
- The git MCP server facilitates interaction and automation of Git repositories using Large Language Models.
- The git MCP server is in early development, with functionality subject to change.
- Installation methods include using uv, PIP, and Docker.
- The page provides instructions for configuring the server for use with Claude Desktop and Zed.
- Debugging can be done using the MCP inspector.
- The `src/git` directory contains the source code for a git-based Model Context Protocol (MCP) server.
- The git MCP server is intended to allow LLMs to interact with and manipulate Git repositories.
- The server is under active development.
- The page focuses on setting up and running the server, either through direct installation or containerization.
- Installation instructions are provided for various environments, including uv, Docker, and Zed.
- Available tools include:
- `git_status`: Shows the working tree status
- Input: `repo_path` (string): Path to Git repository
- Returns: Current status of working directory as text output
- `gitdiffunstaged`: Shows changes in working directory not yet staged
- Input: `repo_path` (string): Path to Git repository
- Returns: Diff output of unstaged changes
- `gitdiffstaged`: Shows changes that are staged for commit
- Input: `repo_path` (string): Path to Git repository
- Returns: Diff output of staged changes
- `git_diff`: Shows differences between branches or commits
- Inputs:
- `repo_path` (string): Path to Git repository
- `target` (string): Target branch or commit to compare with
- Returns: Diff output comparing current state with target
- `git_commit`: Records changes to the repository
- Inputs:
- `repo_path` (string): Path to Git repository
- `message` (string): Commit message
- Returns: Confirmation with new commit hash
- `git_add`: Adds file contents to the staging area
- Inputs:
- `repo_path` (string): Path to Git repository
- `files` (string[]): Array of file paths to stage
- Returns: Confirmation of staged files
- `git_reset`: Unstages all staged changes
- Input: `repo_path` (string): Path to Git repository
- Returns: Confirmation of reset operation
- `git_log`: Shows the commit logs
- Inputs:
- `repo_path` (string): Path to Git repository
- `max_count` (number, optional): Maximum number of commits to show (default: 10)
- Returns: Array of commit entries with hash, author, date, and message
- `gitcreatebranch`: Creates a new branch
- Inputs:
- `repo_path` (string): Path to Git repository
- `branch_name` (string): Name of the new branch
- `start_point` (string, optional): Starting point for the new branch
- Returns: Confirmation of branch creation
- `git_checkout`: Switches branches
- Inputs:
- `repo_path` (string): Path to Git repository
- `branch_name` (string): Name of branch to checkout
- Returns: Confirmation of branch switch
- `git_show`: Shows the contents of a commit
- Inputs:
- `repo_path` (string): Path to Git repository
- `revision` (string): The revision (commit hash, branch name, tag) to show
- Returns: Contents of the specified commit
- `git_init`: Initializes a Git repository
- Inputs:
- `repo_path` (string): Path to directory to initialize git repo
- Returns: Confirmation of repository initialization
- The project uses the MIT License.
š Main Findings:
š Details:
šÆ Conclusion:
The webpage serves as a guide and file directory for the `src/git` component of the `modelcontextprotocol/servers` project, providing essential information for developers interested in utilizing or contributing to the git MCP server, particularly in conjunction with LLMs and tools like Claude and Zed. The project is in its early stages.
Server Features
git_status
Shows the working tree status
git_diff_unstaged
Shows changes in working directory not yet staged
git_diff_staged
Shows changes that are staged for commit
git_diff
Shows differences between branches or commits
git_commit
Records changes to the repository
git_add
Adds file contents to the staging area
git_reset
Unstages all staged changes
git_log
Shows the commit logs
git_create_branch
Creates a new branch
git_checkout
Switches branches
git_show
Shows the contents of a commit
git_init
Initializes a Git repository
Provider Information
Modelcontextprotocol
cloud Provider