MCP.so
登录

MCP Git Ingest

@adhikasp

基本信息

分类

版本控制

许可证

MIT

传输方式

stdio

作者

adhikasp

关于 MCP Git Ingest

A Model Context Protocol (MCP) server that helps read GitHub repository structure and important files.

MCP Git Ingest 配置

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

{
  "mcpServers": {
    "mcp-git-ingest": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/adhikasp/mcp-git-ingest",
        "mcp-git-ingest"
      ]
    }
  }
}

MCP Git Ingest 工具

工具列表暂未提供

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

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is MCP Git Ingest?

MCP Git Ingest is a Model Context Protocol (MCP) server that reads GitHub repository structure and important files. It provides two tools: github_directory_structure for a tree-like directory view and github_read_important_files for reading specified file contents. It is inspired by gitingest.com and is intended for developers who need to programmatically explore repositories via an MCP client.

How to use MCP Git Ingest?

Configure the server in your MCP client’s mcpServers block using uvx with the GitHub URL. Then invoke the tools via an MCP client (e.g., mcp-client-cli). The server exposes github_directory_structure(repo_url) and github_read_important_files(repo_url, file_paths).

Key features of MCP Git Ingest

  • Provides github_directory_structure and github_read_important_files tools.
  • Uses fastmcp for MCP server creation.
  • Uses gitpython for Git repository operations.
  • Creates deterministic temporary directories based on repo URL hash.
  • Cleans up temporary files after each operation.
  • Generates Unicode tree representation of directory structure.

Use cases of MCP Git Ingest

  • Quickly visualize the directory layout of any public GitHub repository.
  • Read key files (README, config, source code) from a repository for analysis.
  • Integrate repository exploration into AI‑assisted coding workflows.
  • Automate code review preparation by fetching project structure and important files.

常见问题

1

What tools does MCP Git Ingest provide?

It provides two tools: `github_directory_structure` to return a tree‑like directory layout, and `github_read_important_files` to return the contents of specified files in a repository.

2

What are the dependencies and runtime requirements?

It requires Python 3.8+, `fastmcp`, and `gitpython`. The server is run via `uvx` from the git repository.

3

How does MCP Git Ingest handle temporary repository data?

It clones each repository into a deterministic temporary directory named by hashing the repository URL. After processing, it removes the temporary directory using a `finally` block to avoid file accumulation.

4

Where does my data live?

All repository data is cloned into temporary directories on the local machine and is deleted after each tool call. No data is sent to external services beyond the initial GitHub clone.

5

What transport does MCP Git Ingest use?

The README does not specify a transport; it is assumed to use the standard MCP transport (stdio) as is typical for `fastmcp`‑based servers.

评论

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