OlympHill
mcp-git-ingest logo

mcp-git-ingest此工具让 AI 辅助人员能够探索任何公开的 GitHub 存储库。它创建了一个清晰的目录结构图表,并在您的命令时读取特定的文件。所有克隆和临时文件清理都自动进行。

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

MCP Git Ingest 是一个 Model Context Protocol 服务器,旨在帮助读取 GitHub 仓库结构和重要文件。它提供了两个主要工具:`github_directory_structure` 和 `github_read_important_files`。前者返回一个仓库目录结构树形表示,而后者读取并返回仓库中指定文件的内容。该工具使用 `fastmcp` 创建 MCP 服务器并使用 `gitpython` 进行 Git 仓库操作。它具有确定性临时目录创建、Unicode 树表示和灵活文件读取功能的特性。MCP Git Ingest 可以作为 `mcp-git-ingest`CLI工具运行,并通过 `pyproject.toml` 进行配置。它旨在提供一个健壮和灵活的方式来编程性地探索和读取 GitHub 仓库。

主要功能

  • github_directory_structure:返回一个仓库的目录结构树形表示
  • github_read_important_files:读取并返回仓库中指定文件的内容
  • 自动克隆和临时文件清理
  • 错误处理机制(克隆和读取文件)
  • 确定性临时目录创建
  • Unicode 树表示

价格

模型
Free
评分
暂无评价

使用场景

探索 GitHub 存储库

使用 MCP Git Ingest 来获取公开 GitHub 存储库的目录结构并分析其内容。

读取特定文件

使用 MCP Git Ingest 来读取 GitHub 仓库中的特定文件,如 README.md 或 main.py。

优点 & 缺点

优点

  • 用作编程性地探索和读取 GitHub 仓库的强壮和灵活工具
  • 高效的克隆和清除机制
  • 错误处理机制(克隆和读取文件)
  • 独特的功能,例如确定性临时目录创建和 Unicode 树表示

缺点

  • 需要 Python 3.8+
  • 依赖于 fastmcp 提供的 MCP 服务器功能

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

What dependencies must be installed to run the MCP server?

The tool depends on `fastmcp` for the Model Context Protocol server and `gitpython` for Git operations, both of which must be available in the Python environment.

Asked by Malik Rasheed · Jul 22, 2025

Can I use mcp-git-ingest to read only specific files from a repo?

Yes, the `github_read_important_files` tool lets you specify file paths, and it will return the contents of those files while handling any read errors gracefully.

Asked by Carmela Esposito · Jul 14, 2025

How does the tool handle temporary files after cloning a repository?

After cloning, mcp-git-ingest creates a deterministic temporary directory for the repository and automatically cleans it up when the operation completes, ensuring no residual files remain.

Asked by Zeynep Aydin · Jun 21, 2025

What versions of Python does mcp-git-ingest support?

mcp-git-ingest requires Python 3.8 or newer to run. Older Python versions will not be compatible with its dependencies.

Asked by Nils Johansson · Jun 21, 2025

提问

服务配缩器 的替代品