MCP.so
登录

Git MCP Server

@wricardo

基本信息

分类

版本控制

传输方式

stdio

作者

wricardo

关于 Git MCP Server

MCP server to interact with a git repository

Git MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Git MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is git-mcp?

git-mcp is a Model Context Protocol (MCP) server that interacts with Git repositories. It provides tools for executing Git operations, viewing commit history, tracking file changes, and examining file differences. It is designed for developers and AI assistants that need programmatic access to Git repository data.

How to use git-mcp?

Install the package with go install github.com/wricardo/git-mcp@latest. Then configure your MCP client settings with a WORKDIR environment variable pointing to a local Git repository. Finally, run git-mcp to start the server. The server exposes four tools: git-log, git-changed-files, git-file-diff, and git-file-history.

Key features of git-mcp

  • Execute Git operations through MCP tools
  • View commit history with hash, author, date, message
  • List files changed between commits
  • Show detailed file differences between commits
  • Track commit history for a specific file

Use cases of git-mcp

  • Exploring a Git repository’s commit history
  • Reviewing file changes between recent commits
  • Inspecting detailed diffs of a specific file
  • Tracking changes to a file over time
  • Enabling AI assistants to query Git data

常见问题

1

What are the system requirements for git-mcp?

Go 1.23.0 or later and Git must be installed on your system. You also need access to a Git repository.

2

How do I configure git-mcp?

Set the `WORKDIR` environment variable to the absolute path of your Git repository in your MCP client settings (e.g., `"env": {"WORKDIR": "/path/to/repo"}`).

3

What tools does git-mcp provide?

git-mcp provides four tools: `git-log` (commit history), `git-changed-files` (files changed between HEAD and a given number of commits back), `git-file-diff` (detailed file differences between commits), and `git-file-history` (commit history for a specific file).

4

Can I limit the number of commits displayed?

Yes, the `git-log` and `git-file-history` tools accept an optional `limit` parameter (default 10).

评论

版本控制 分类下的更多 MCP 服务器