MCP server for depth-packed codebase context

A developer has created an MCP server that packs codebase context at 5 depth levels within a token budget. The tool addresses a specific problem: when Claude Code or other AI coding agents ask questions like "how does auth work?", they typically either load 3 files fully (missing the big picture) or get a flat repository map without actual content.
How it works
The server sits between these extremes, packing 40+ files at graded depth levels. The most relevant files are included at full content, while peripheral files are represented as just paths. This approach provides both breadth and depth within token constraints.
Three search modes
- Keyword mode: Free text search
- Semantic mode: Uses embeddings (~$0.0001 per query)
- Graph mode: Follows import relationships
These modes can be composed together for more sophisticated searches.
Technical implementation
The server uses AST parsing via tree-sitter and supports 14 programming languages. It provides several MCP tools:
packindex_workspaceindex_github_repobuild_embeddingsresolvestats
The tool is available on GitHub at https://github.com/victorgjn/agent-skills. The developer notes they haven't published the skill on skills.sh yet but plan to do so soon.
📖 Read the full source: r/ClaudeAI
👀 See Also
How I Feel About AI: A Developer's Honest Take on Reasoning, Doom, and the Open Web
A developer reflects on AI: gut-feeling LLMs with emergent reasoning, the threat of superintelligence, and the toll on the open web and artists.

ArayCode: Desktop CLI Client for OpenClaw with Voice, Multi-Agent Hotkeys, and Markdown UI
ArayCode turns OpenClaw into a desktop CLI app with voice I/O, multi-agent hotkeys, themes, and markdown UI built on Spectre.Console. Supports cloud and local STT/TTS providers.
Zillow-Full: An OpenClaw Skill That Turned Manual Property Research Into an Automated Deal Pipeline
A developer built 'zillow-full' on OpenClaw to pull Zestimates, tax history, price history, and comps per property. With a nightly cron scoring listings against deal criteria, wholesale deals went from 2 to 11 per month.

MCP Context Bloat: Real Costs and a Practical Fix for Claude Code Users
Running 9 MCP servers in Claude Code leads to 38k token cold starts, ~$700/month in tool definition overhead, and degraded model performance. A gateway pattern with BM25 ranking cuts context to 4k.