mcp-git-ingest

mcp-git-ingest

224

MCP Git Ingest is a Model Context Protocol (MCP) server that allows users to explore and analyze GitHub repositories programmatically. It includes tools for obtaining repository structures and reading critical files, focusing on robust error handling and efficient implementation.

MCP Git Ingest

  • Description: This project is a Model Context Protocol (MCP) server developed to assist users in reading the structure of GitHub repositories and analyzing important files.
  • Features:
    • github_directory_structure: Provides a tree-like representation of a repository's directory structure.
    • github_read_important_files: Reads and outputs the contents of specified files within a repository.
  • Usage: The server can be operated via the mcp-client-cli tool to understand the technical workings of a GitHub repository. It retrieves directory structures and reads essential files for analysis.
  • Technical Aspects:
    • Uses fastmcp and gitpython for operations.
    • Requires Python 3.8 and above.
    • Implements error handling and performance optimizations such as using hash-based temporary directories.