MCP server for depth-packed codebase context

✍️ OpenClawRadar📅 Published: April 14, 2026🔗 Source
MCP server for depth-packed codebase context
Ad

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.

Ad

Technical implementation

The server uses AST parsing via tree-sitter and supports 14 programming languages. It provides several MCP tools:

  • pack
  • index_workspace
  • index_github_repo
  • build_embeddings
  • resolve
  • stats

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

Ad

👀 See Also