Git MCP:本地 Git 仓库管理工具

Git MCP:本地 Git 仓库管理工具

用于管理本地 Git 仓库的 MCP 服务器。

快速入门

安装

通过 Smithery 自动安装:

npx -y @smithery/cli install @kjozsa/git-mcp --client claude

手动安装:

uvx install git-mcp

配置

添加以下配置到 JSON 文件中: { "mcpServers": { "git-mcp": { "command": "uvx", "args": ["git-mcp"], "env": { "GIT_REPOS_PATH": "/path/to/your/git/repositories" } } } }

使用方法

  • 列出仓库:调用 list_repositories 方法。
  • 获取最新标签:调用 get_last_git_tag 方法。
  • 创建标签:调用 create_git_tag 方法。
  • 推送标签:调用 push_git_tag 方法。 更多功能请参考 README 文档。