Skip to main content
Glama

@lex-tools/codebase-context-dumper

Official
by lex-tools

dump_codebase_context

Recursively extract and organize text files from a directory, respecting .gitignore, skip binaries, and chunk output for easier integration with Large Language Models (LLMs).

Instructions

Recursively reads text files from a specified directory, respecting .gitignore rules and skipping binary files. Concatenates content with file path headers/footers. Supports chunking the output for large codebases.

Input Schema

NameRequiredDescriptionDefault
base_pathYesThe absolute path to the project directory to scan.
chunk_indexNoOptional 1-based index of the chunk to return (default: 1). Requires num_chunks > 1.
num_chunksNoOptional total number of chunks to divide the output into (default: 1).

Input Schema (JSON Schema)

{ "properties": { "base_path": { "description": "The absolute path to the project directory to scan.", "type": "string" }, "chunk_index": { "default": 1, "description": "Optional 1-based index of the chunk to return (default: 1). Requires num_chunks > 1.", "minimum": 1, "type": "integer" }, "num_chunks": { "default": 1, "description": "Optional total number of chunks to divide the output into (default: 1).", "minimum": 1, "type": "integer" } }, "required": [ "base_path" ], "type": "object" }
Install Server

Other Tools from @lex-tools/codebase-context-dumper

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lex-tools/codebase-context-dumper'

If you have feedback or need assistance with the MCP directory API, please join our Discord server