Git MCP is a server implementation for managing Git operations on local repositories. Developed by Kristof Jozsa, it provides a set of methods for listing repositories, retrieving tags, creating and pushing tags, and refreshing repositories. The server is designed to be easily integrated into AI-assisted development workflows, offering a streamlined interface for Git operations without direct shell access.
No reviews yet. Be the first to review!
Sign in to join the conversation
Lists all Git repositories in the configured path. Parameters: None. Returns: List of repository names.
Finds the last Git tag in the specified repository. Parameters: `repo_name` (Name of the Git repository). Returns: Dictionary with `version` (tag name) and `date` (tag creation date).
Lists commit messages between the last Git tag and HEAD. Parameters: `repo_name` (Name of the Git repository), `max_count` (optional, Maximum number of commits to return). Returns: List of dictionaries with `hash`, `author`, `date`, and `message`.
Creates a new git tag in the specified repository. Parameters: `repo_name` (Name of the git repository), `tag_name` (Name of the tag to create), `message` (optional, Message for annotated tag). Returns: Dictionary with `status`, `version` (tag name), `date` (tag creation date), and `type` (annotated or lightweight).
Pushes an existing git tag to the default remote repository. Parameters: `repo_name` (Name of the git repository), `tag_name` (Name of the tag to push). Returns: Dictionary with `status`, `remote` (name of the remote), `tag` (name of the tag), and `message` (success message).
Refreshes a repository by checking out the main branch and pulling from all remotes. Parameters: `repo_name` (Name of the git repository). Returns: Dictionary with `status`, `repository`, `branch`, and `pull_results` (results for each remote).