MCP.so
登录

MCP Git Tools

@lileeei

基本信息

分类

版本控制

许可证

MIT license

传输方式

stdio

作者

lileeei

关于 MCP Git Tools

Git tool integration library for the Model Context Protocol (MCP).

MCP Git Tools 配置

暂无标准配置

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

代码仓库

MCP Git Tools 工具

工具列表暂未提供

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

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

概览

What is MCP Git Tools?

MCP Git Tools is a Git tool integration library for the Model Context Protocol (MCP). It provides a set of Git operations that can be called through MCP, enabling AI assistants and MCP clients to interact with Git repositories. It is for developers who want to add Git capabilities to MCP-based applications.

How to use MCP Git Tools?

You can run it as a standalone server using cargo run --bin mcp-git-server, which communicates via standard input/output. Alternatively, integrate it into your own MCP client or server using the provided Rust library, calling specific tools like git_status with parameters such as repo_path.

Key features of MCP Git Tools

  • Get repository status with git_status
  • List branches and current branch with git_branches
  • Retrieve commit history with git_log (optional max_count, branch)
  • Filter commits by time range with git_time_filtered_log
  • Create commits, pull, and push changes to remotes
  • View diffs, stage files, and reset the staging area

Use cases of MCP Git Tools

  • An AI assistant checking the current status of a repository before making changes.
  • Automated generation of commit logs for a release report.
  • A CI/CD pipeline integrating Git branch information into MCP-based workflows.
  • Staging and committing changes via natural language commands through an MCP client.
  • Resetting the staging area or working tree after a failed operation.

常见问题

1

What dependencies are required to use MCP Git Tools?

The README states you need to clone the repository, navigate, and run `cargo build`, implying Rust and Cargo are required.

2

How does MCP Git Tools communicate with clients?

It runs as a standalone MCP server that interacts through standard input/output (stdio).

3

Can I integrate MCP Git Tools into my own MCP server?

Yes, the README provides an example using `register_git_tools` with a `McpServerBuilder` to add all Git tools.

4

What parameters does the `git_commit` tool accept?

It requires `repo_path` and `message`; optionally `all` to automatically stage modified files.

评论

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