Codebase Context Dumper

by lex-tools

Not rated
GitHub

About

Easily provide codebase context to Large Language Models (LLMs).

Details

Author
lex-tools
Categories
Developer Tools, Knowledge Base

Local Installation & Usage (Advanced)

If you prefer to run a local version (e.g., for development):
- Clone the repository:

git clone git@github.com:lex-tools/codebase-context-dumper.git cd codebase-context-dumper
{ "mcpServers": { "codebase-context-dumper": { "command": "/path/to/your/local/codebase-context-dumper/build/index.js" // Adjust path } } }

Contributions are welcome! Please seeCONTRIBUTING.mdfor details on development, debugging, and releasing new versions.

This project is licensed under the Apache License 2.0. See theLICENSEfile for details.

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

MCP server that ingests project docs once and lets Claude search by meaning instead of reading everything — saving tokens on large codebases

Local codebase context compiler for AI coding agents, turning TypeScript/Node workspaces into compact, verifiable context packs.

Local stdio MCP server that lets AI coding agents read and maintain structured architecture, rules, and decisions directly from your repository.

Official Context7 MCP server that brings up-to-date, version-specific library documentation and code examples into AI coding prompts.

Remote, no-auth MCP server providing AI-powered codebase context and answers

An intelligent codebase search engine that transforms local codebases into a natural language queryable knowledge base.

A local MCP server for AI coding agents. AST-aware indexing, semantic search, and automatic compression. Your agent stops re-reading your entire codebase every session.

A knowledge management tool for code repositories using vector embeddings, powered by a local Ollama service.

Provides up-to-date, version-specific documentation and code examples for libraries directly into your prompt.

Context7 Private Docs MCP is a paid hosted remote MCP for private, version-pinned documentation context, source citations, stale-doc checks, and usage receipts for coding agents.

A Model Context Protocol (MCP) server designed to easily dump your codebase context into Large Language Models (LLMs).

Large context windows in LLMs are powerful, but manually selecting and formatting files from a large codebase is tedious. This tool automates the process by:

- Recursively scanning your project directory.
- Including text files from the specified directory tree that are not excluded by.gitignorerules.
- Automatically skipping binary files.
- Concatenating the content with clear file path markers.
- Supporting chunking to handle codebases larger than the LLM's context window.
- Integrating seamlessly with MCP-compatible clients.

The easiest way to use this tool is vianpx, which runs the latest version without needing a local installation.

Configure your MCP client (e.g., Claude Desktop, VS Code extensions) to use the following command:

{ "mcpServers": { "codebase-context-dumper": { "command": "npx", "args": [ "-y", "@lex-tools/codebase-context-dumper" ] } } }

The MCP client will then be able to invoke thedump_codebase_contexttool provided by this server.

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

- Scans the directory provided inbase_path.
- Respects.gitignorefiles at all levels (including nested ones and.gitby default).
- Detects and skips binary files.
- Reads the content of each valid text file.
- Prepends a header (--- START: relative/path/to/file ---) and appends a footer (--- END: relative/path/to/file ---) to each file's content.
- Concatenates all processed file contents into a single string.

- base_path(string, required): The absolute path to the project directory to scan.
- num_chunks(integer, optional, default: 1): The total number of chunks to divide the output into. Must be >= 1.
- chunk_index(integer, optional, default: 1): The 1-based index of the chunk to return. Requiresnum_chunks > 1andchunk_index <= num_chunks.

Output: Returns the concatenated (and potentially chunked) text content.

Local Installation & Usage (Advanced)

If you prefer to run a local version (e.g., for development):
- Clone the repository:

git clone git@github.com:lex-tools/codebase-context-dumper.git cd codebase-context-dumper
{ "mcpServers": { "codebase-context-dumper": { "command": "/path/to/your/local/codebase-context-dumper/build/index.js" // Adjust path } } }

Contributions are welcome! Please seeCONTRIBUTING.mdfor details on development, debugging, and releasing new versions.

This project is licensed under the Apache License 2.0. See theLICENSEfile for details.

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

MCP server that ingests project docs once and lets Claude search by meaning instead of reading everything — saving tokens on large codebases

Local codebase context compiler for AI coding agents, turning TypeScript/Node workspaces into compact, verifiable context packs.

Local stdio MCP server that lets AI coding agents read and maintain structured architecture, rules, and decisions directly from your repository.

Official Context7 MCP server that brings up-to-date, version-specific library documentation and code examples into AI coding prompts.

Remote, no-auth MCP server providing AI-powered codebase context and answers

An intelligent codebase search engine that transforms local codebases into a natural language queryable knowledge base.

A local MCP server for AI coding agents. AST-aware indexing, semantic search, and automatic compression. Your agent stops re-reading your entire codebase every session.

A knowledge management tool for code repositories using vector embeddings, powered by a local Ollama service.

Provides up-to-date, version-specific documentation and code examples for libraries directly into your prompt.

Context7 Private Docs MCP is a paid hosted remote MCP for private, version-pinned documentation context, source citations, stale-doc checks, and usage receipts for coding agents.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.