This MCP server implementation provides Git tools for the Model Context Protocol. It integrates with the MCP Core, Server, and Macros libraries to enable Git-related operations. The server is built using Rust and leverages asynchronous programming with Tokio. It's designed for use cases requiring version control integration within AI-assisted applications, such as managing code repositories or tracking changes in collaborative environments.
No reviews yet. Be the first to review!
Sign in to join the conversation
Get the status of a repository. Parameters: repo_path (string)
List all branches. Parameters: repo_path (string)
Get commit history with flexible filtering options. Parameters: repo_path (string), max_count (optional int), branch (optional string), since (optional string), until (optional string), author (optional string)
Create a new commit. Parameters: repo_path (string), message (string), all (optional boolean)
Pull changes from remote. Parameters: repo_path (string), remote (optional string), branch (optional string)
Push changes to remote. Parameters: repo_path (string), remote (optional string), branch (optional string), force (optional boolean)
View file differences. Parameters: repo_path (string), path (optional string), staged (optional boolean), commit (optional string)
Add file contents to the staging area. Parameters: repo_path (string), path (string), update (optional boolean), all (optional boolean)
Reset the staging area or working tree to a specified state. Parameters: repo_path (string), path (string), hard (optional boolean), target (optional string)
List all worktrees in a repository. Parameters: repo_path (string)
Create a new worktree. Parameters: repo_path (string), path (string), branch (optional string), commit_ref (optional string), checkout (optional boolean)
Remove a worktree. Parameters: repo_path (string), path (string), force (optional boolean)
Prune working tree files in $GIT_DIR/worktrees. Parameters: repo_path (string), verbose (optional boolean), dry_run (optional boolean)