提供Git仓库交互与自动化能力,支持Git操作的自动化处理。

30 次收藏下载次数: 0状态:社区镜像维护者:mcp(Model Context Protocol)仓库类型:镜像最近更新:1 年前
下载命令
点击查看

Git (Reference) MCP Server

Git repository interaction and automation.

https://www.anthropic.com/news/model-context-protocol

MCP Info

AttributeDetails
Docker Imagehttps://hub.docker.com/repository/docker/mcp/git
Authorhttps://github.com/modelcontextprotocol
Repositoryhttps://github.com/modelcontextprotocol/servers

Image Building Info

AttributeDetails
Dockerfilehttps://github.com/modelcontextprotocol/servers/blob/b4ee623039a6c60053ce67269701ad9e95073306/src/git/Dockerfile
Commitb4ee623039a6c60053ce67269701ad9e95073306
Docker Image built byDocker Inc.
Docker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/git --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceMIT License

Available Tools (12)

Tools provided by this ServerShort Description
git_addAdds file contents to the staging area
git_checkoutSwitches branches
git_commitRecords changes to the repository
git_create_branchCreates a new branch from an optional base branch
git_diffShows differences between branches or commits
git_diff_stagedShows changes that are staged for commit
git_diff_unstagedShows changes in the working directory that are not yet staged
git_initInitialize a new Git repository
git_logShows the commit logs
git_resetUnstages all staged changes
git_showShows the contents of a commit
git_statusShows the working tree status

Tools Details

Tool: git_add

Adds file contents to the staging area

ParametersTypeDescription
filesarray
repo_pathstring

Tool: git_checkout

Switches branches

ParametersTypeDescription
branch_namestring
repo_pathstring

Tool: git_commit

Records changes to the repository

ParametersTypeDescription
messagestring
repo_pathstring

Tool: git_create_branch

Creates a new branch from an optional base branch

ParametersTypeDescription
branch_namestring
repo_pathstring
base_branchstring optional

Tool: git_diff

Shows differences between branches or commits

ParametersTypeDescription
repo_pathstring
targetstring

Tool: git_diff_staged

Shows changes that are staged for commit

ParametersTypeDescription
repo_pathstring

Tool: git_diff_unstaged

Shows changes in the working directory that are not yet staged

ParametersTypeDescription
repo_pathstring

Tool: git_init

Initialize a new Git repository

ParametersTypeDescription
repo_pathstring

Tool: git_log

Shows the commit logs

ParametersTypeDescription
repo_pathstring
max_countinteger optional

Tool: git_reset

Unstages all staged changes

ParametersTypeDescription
repo_pathstring

Tool: git_show

Shows the contents of a commit

ParametersTypeDescription
repo_pathstring
revisionstring

Tool: git_status

Shows the working tree status

ParametersTypeDescription
repo_pathstring

Use this MCP Server

json
{
  "mcpServers": {
    "git": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-v",
        "/local-directory:/local-directory",
        "mcp/git"
      ]
    }
  }
}

https://www.docker.com/blog/the-model-context-protocol-simplifying-building-ai-apps-with-anthropic-claude-desktop-and-docker/

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 git 镜像标签

docker pull docker.xuanyuan.run/mcp/git:<标签>

DockerHub 原生拉取命令

docker pull mcp/git:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持99.95% SLA 保障付费会员免广告