MCP.so
登录

Git Command MCP Server

@ukiuni

基本信息

分类

版本控制

许可证

MIT license

传输方式

stdio

作者

ukiuni

关于 Git Command MCP Server

mcp server for git command wrapper

#mcp-git#git-command#mcp-server

Git Command MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mpc-git": {
      "command": "node",
      "args": [
        "/path_to_mcp-git/mcp-git/dist/index.js"
      ]
    }
  }
}

Git Command MCP Server 工具

工具列表暂未提供

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

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

概览

What is Git Command MCP Server?

It is an MCP server that provides tools for executing various Git commands. It requires a local installation of Git (git or git.exe) and is designed for use with MCP clients like Roo Code or Claude Desktop.

How to use Git Command MCP Server?

Install via npm i mcp-git or clone the repository, then run npm install. Configure your MCP client with the command node and an argument pointing to the absolute path of dist/index.js. Tools are invoked using a git- prefix (e.g., git-status, git-commit).

Key features of Git Command MCP Server

  • Executes Git commands through the Model Context Protocol.
  • Tools follow a consistent git- naming convention.
  • Returns STDOUT, STDERR, and server-side error messages.
  • Requires Git installed locally on the system.
  • Supports popular MCP clients like GitHub Copilot and Cursor.
  • Open source under the MIT License.

Use cases of Git Command MCP Server

  • Automate Git operations via AI assistants (e.g., committing, adding files).
  • Integrate version control commands directly into MCP‑powered workflows.
  • Run Git status, logs, or diffs without leaving the chat interface.
  • Enable AI agents to manage repositories programmatically.

常见问题

1

What Git commands are supported?

The server provides tools for many common Git commands, each named with a `git-` prefix (e.g., `git-add`, `git-commit`, `git-status`). The exact list is not exhaustive in the README but covers standard operations.

2

What are the runtime requirements?

You need Node.js, npm, and a local Git installation (git or git.exe).

3

Where can I report issues or get help?

Visit the GitHub repository at http://github.com/ukiuni/mcp-git to open issues or discuss.

4

How do I connect this server from an MCP client?

Use the JSON configuration: ```json { "mcpServers": { "mpc-git": { "command": "node", "args": ["/path_to_mcp-git/mcp-git/dist/index.js"] } } } ```

5

How is the tool output structured?

Results are returned as text content containing `STDOUT`, `STDERR`, or `ERROR` sections. If the command succeeds with no output, a success message is provided instead.

评论

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