what is Git MCP?
Git MCP is a server designed for managing Git operations on local repositories, allowing users to fetch commit messages, manage git tags, and perform various Git-related tasks efficiently.
how to use Git MCP?
To use Git MCP, you can install it via Smithery or manually. After installation, configure the MCP server with the required environment variables and JSON configuration snippet, then utilize the available methods to manage your Git repositories.
key features of Git MCP?
- List all Git repositories in a specified path.
- Fetch the last Git tag from a repository.
- List commit messages between the last tag and HEAD.
- Create new Git tags with optional messages.
- Push existing tags to the remote repository.
- Checkout and pull the main branch from all remotes.
use cases of Git MCP?
- Managing multiple Git repositories in a local environment.
- Automating the process of tagging and pushing changes to remote repositories.
- Simplifying the retrieval of commit history and tags for project documentation.
FAQ from Git MCP?
- How do I install Git MCP?
You can install Git MCP using the command
npx -y @smithery/cli install @kjozsa/git-mcp --client claudeor manually withuvx install git-mcp.
- What environment variables do I need to set?
You need to set
GIT_REPOS_PATHto the directory containing your Git repositories.
- Can I run tests on Git MCP?
Yes! The project includes test scripts to verify the functionality of both the Git commands and the MCP server.