Specter-Tree

•

Optimizes AI coding agent token usage by providing structural code context for TypeScript projects.

Specter-Tree is an open-source Model Context Protocol (MCP) server designed for TypeScript codebases, dramatically reducing token consumption for AI coding agents like Claude Code, Cursor, and Codex CLI. Instead of costly full-file reads, it enables agents to perform indexed symbol lookups, trace callers, inspect class hierarchies, and resolve exact file-and-line targets. This leads to a 54–67% reduction in navigation token usage by providing agents with a pre-resolved map of every function, class, interface, and call site, allowing for targeted code reads and more efficient debugging.

Características Principales

01Locate exact symbol definitions (functions, classes, interfaces) by name.
02Reduce AI agent token usage by 54–67% for code navigation tasks.
03Provide structural summaries of files, replacing full-file reads with compact overviews.
04Support `tsconfig` path aliases for accurate symbol resolution.
050 GitHub stars
06Trace call graphs and inspect class hierarchies with single queries.

Casos de Uso

01Teams integrating AI assistance into their developer workflows requiring structural code context.
02Web engineers debugging TypeScript projects with AI coding agents (Claude Code, Cursor, Codex CLI).
03Navigating large TypeScript codebases where traditional grep-based searches are inefficient.