Skip to content

Claude Code

@ttsc/graph reduces token usage in Claude Code by approximately 10x

Written by an AI model from the linked sources and checked against them by a second model. How we work

All about: Claude Code versions and changes →
Image: github.com

The @ttsc/graph MCP server is now available. It provides a code agent with a TypeScript project graph, mapping call stacks, dependencies, and file locations. The graph is built by the actual TypeScript compiler, ensuring accurate links tied to specific files and lines.

The agent answers structural questions using the graph rather than traversing files individually. For open-ended questions about how code works, this reduces token consumption by roughly 10x. The MCP surface consists of a single tool, inspect_typescript_graph, which returns names, edges, signatures, and spans, but excludes function bodies.

Installation: npm install -D ttsc @ttsc/graph typescript@rc. The server runs on the TypeScript-Go (v7) runtime, currently in release candidate status. For Claude Code, add a .mcp.json file to the project root with the command npx -y @ttsc/graph.

No comments yet. Be the first.

Join the conversation

Sign in to leave a comment. It appears after moderation.