
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这段话即可:
请先阅读并遵守:https://xuanyuan.cloud/agents.md
未读文档前不要生成 pull 命令或排错方案。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Git repository interaction and automation.
https://www.anthropic.com/news/model-context-protocol
| Attribute | Details |
|---|---|
| Docker Image | https://hub.docker.com/repository/docker/mcp/git |
| Author | https://github.com/modelcontextprotocol |
| Repository | https://github.com/modelcontextprotocol/servers |
| Attribute | Details |
|---|---|
| Dockerfile | https://github.com/modelcontextprotocol/servers/blob/b4ee623039a6c60053ce67269701ad9e95073306/src/git/Dockerfile |
| Commit | b4ee623039a6c60053ce67269701ad9e95073306 |
| Docker Image built by | Docker Inc. |
| Docker Scout Health Score | |
| Verify Signature | COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/git --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub |
| Licence | MIT License |
| Tools provided by this Server | Short Description |
|---|---|
git_add | Adds file contents to the staging area |
git_checkout | Switches branches |
git_commit | Records changes to the repository |
git_create_branch | Creates a new branch from an optional base branch |
git_diff | Shows differences between branches or commits |
git_diff_staged | Shows changes that are staged for commit |
git_diff_unstaged | Shows changes in the working directory that are not yet staged |
git_init | Initialize a new Git repository |
git_log | Shows the commit logs |
git_reset | Unstages all staged changes |
git_show | Shows the contents of a commit |
git_status | Shows the working tree status |
Tool: git_add
Adds file contents to the staging area
| Parameters | Type | Description |
|---|---|---|
files | array | |
repo_path | string |
Tool: git_checkout
Switches branches
| Parameters | Type | Description |
|---|---|---|
branch_name | string | |
repo_path | string |
Tool: git_commit
Records changes to the repository
| Parameters | Type | Description |
|---|---|---|
message | string | |
repo_path | string |
Tool: git_create_branch
Creates a new branch from an optional base branch
| Parameters | Type | Description |
|---|---|---|
branch_name | string | |
repo_path | string | |
base_branch | string optional |
Tool: git_diff
Shows differences between branches or commits
| Parameters | Type | Description |
|---|---|---|
repo_path | string | |
target | string |
Tool: git_diff_staged
Shows changes that are staged for commit
| Parameters | Type | Description |
|---|---|---|
repo_path | string |
Tool: git_diff_unstaged
Shows changes in the working directory that are not yet staged
| Parameters | Type | Description |
|---|---|---|
repo_path | string |
Tool: git_init
Initialize a new Git repository
| Parameters | Type | Description |
|---|---|---|
repo_path | string |
Tool: git_log
Shows the commit logs
| Parameters | Type | Description |
|---|---|---|
repo_path | string | |
max_count | integer optional |
Tool: git_reset
Unstages all staged changes
| Parameters | Type | Description |
|---|---|---|
repo_path | string |
Tool: git_show
Shows the contents of a commit
| Parameters | Type | Description |
|---|---|---|
repo_path | string | |
revision | string |
Tool: git_status
Shows the working tree status
| Parameters | Type | Description |
|---|---|---|
repo_path | string |
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/
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 mcp/git 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: