Git Mcp
@kjozsa
关于 Git Mcp
MCP server for managing Git operations on local repositories. Fetching commit messages, git tags, creating new tags.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"git-mcp-kjozsa": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@kjozsa/git-mcp",
"--client",
"claude"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Git MCP?
Git MCP is an MCP server that manages common Git operations on local repositories. It exposes a set of tools for listing repositories, inspecting tags and commits, creating and pushing tags, and syncing the main branch.
How to use Git MCP?
Install via Smithery (npx -y @smithery/cli install @kjozsa/git-mcp --client claude) or manually with uvx install git-mcp. Configure the GIT_REPOS_PATH environment variable pointing to a directory containing Git repositories, then add the server to your MCP client configuration.
Key features of Git MCP
- List all Git repositories in a configured directory.
- Retrieve the latest Git tag from a repository.
- List commits since the last tag (with optional limit).
- Create annotated or lightweight Git tags.
- Push an existing tag to the default remote.
- Checkout and pull from all remotes (main/master branch).
Use cases of Git MCP
- Automate version tagging and release preparation across multiple repos.
- Quickly inspect recent commits and tags for changelog generation.
- Sync the main branch of multiple repositories in one call.
- Integrate Git operations into AI‑assisted development workflows.
FAQ from Git MCP
What dependencies does Git MCP require?
The server runs on Python and is installed via uvx (from the uv package manager). A local Git installation is also required for the underlying operations.
Where are my Git repositories stored?
Repositories must be placed under the directory specified by the GIT_REPOS_PATH environment variable. Only repositories inside that path are accessible.
What Git operations can Git MCP perform?
It can list repositories, get the last tag, list commits since that tag, create a tag (lightweight or annotated), push a tag to the default remote, and checkout/pull the main or master branch.
How do I troubleshoot common issues?
If a repository is not found, verify that GIT_REPOS_PATH is set correctly and the repository exists. If no tags are returned, the repository simply has no tags yet.
版本控制 分类下的更多 MCP 服务器
🚀 GitLab MR MCP
kopfrechnerInteract seamlessly with GitLab repositories to manage merge requests and issues. Fetch details, add comments, and streamline your code review process with ease.
Atlassian Bitbucket MCP Server
aashariNode.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MCP interface.
MCP Git Ingest
adhikaspA Model Context Protocol (MCP) server that helps read GitHub repository structure and important files.
Atlassian Data Center MCP
b1ffMCP servers for the Atlassian products (Bitbucket, Confluence, JIRA) of the Data Center version
AIO-MCP Server
athapong🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from https://github.com/nguyenvanduocit/all-in-one-model-context-protocol
评论