Gitingest MCP Server

ingest_git

Clone and analyze Git repositories or local directories. Extract file summaries, tree structures, or content based on specified patterns, branch, and file size limits.

Instructions

This function analyzes a source (URL or local path), clones the corresponding repository (if applicable), and processes its files according to the specified query parameters. It can return a summary, a tree-like structure of the files, or the content of the files.

Input Schema

NameRequiredDescriptionDefault
branchNoThe branch to clone and ingest.main
exclude_patternsNoPattern or set of patterns specifying which files to exclude, e.q. '*.md, src/'
include_patternsNoPattern or set of patterns specifying which files to include, e.q. '*.md, src/'
max_file_sizeNoMaximum allowed file size for file ingestion.Files larger than this size are ignored, by default 10*1024*1024 (10 MB).
sourceYesThe source to analyze, which can be a URL (for a Git repository) or a local directory path.

Input Schema (JSON Schema)

{ "properties": { "branch": { "default": "main", "description": "The branch to clone and ingest.", "title": "Branch", "type": "string" }, "exclude_patterns": { "default": "", "description": "Pattern or set of patterns specifying which files to exclude, e.q. '*.md, src/'", "title": "Exclude Patterns", "type": "string" }, "include_patterns": { "default": "", "description": "Pattern or set of patterns specifying which files to include, e.q. '*.md, src/'", "title": "Include Patterns", "type": "string" }, "max_file_size": { "default": 10485760, "description": "Maximum allowed file size for file ingestion.Files larger than this size are ignored, by default 10*1024*1024 (10 MB).", "title": "Max File Size", "type": "integer" }, "source": { "description": "The source to analyze, which can be a URL (for a Git repository) or a local directory path.", "title": "Source", "type": "string" } }, "required": [ "source" ], "title": "ingest_gitArguments", "type": "object" }

You must be authenticated.

Other Tools from Gitingest MCP Server

Related Tools

ID: w4486fnhds