Developer builds TypeScript compiler graph MCP tool, cuts Claude Code token use tenfold

A developer has released @ttsc/graph, an open-source Model Context Protocol tool that gives AI coding agents a pre-built index of a TypeScript codebase derived directly from the TypeScript compiler. Instead of returning raw source code, the tool provides function names, call edges, type signatures, and exact file-line coordinates, allowing agents to answer structural questions without crawling through files. Benchmarks show the tool achieves roughly 10 times fewer tokens on open-ended codebase questions compared to a grep-based baseline, with answer quality remaining comparable. Existing tools such as codegraph, codebase-memory-mcp, and serena were evaluated but found inconsistent across repositories of varying sizes. The project is publicly available on GitHub, with full benchmark methodology and per-repo results published on the project's documentation site.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in