mcp-git-ingest

mcp-git-ingest

4.0

If you are the rightful owner of mcp-git-ingest and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcpreview.com.

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

MCP Git Ingest is a server designed to facilitate the reading and analysis of GitHub repository structures and important files. It provides tools to fetch directory structures and read specified files, making it easier to understand the technical workings of a repository. The server is built using `fastmcp` for creating an MCP server and `gitpython` for Git operations, requiring Python 3.8 or higher. It features robust error handling and performance optimizations, such as deterministic temporary directory creation and Unicode tree representation. The server can be run as a CLI tool and is configured through `pyproject.toml`.

Features

  • GitHub Directory Structure: Provides a tree-like representation of a repository's directory structure.
  • Read Important Files: Reads and returns the contents of specified files in a repository.
  • Error Handling: Uses try-except blocks and ensures cleanup of temporary directories.
  • Performance Optimizations: Hash-based temporary directory naming and checks for existing repositories.
  • Unicode Tree Representation: Uses Unicode box-drawing characters for visual tree representation.

Tools