The project cache shared by the investigation tools.
Server start time, tool count, response sizes and protocol.
Package dist/ directories to watch; missing ones are skipped.
State of the scan workers; default the server's scan host.
ReadonlyannotationsBehavior hints for clients (MCP 2025-03-26); hints, not guarantees.
ReadonlydescriptionHuman-readable description of what the tool does.
ReadonlynameUnique tool name.
ReadonlytitleDisplay name for clients (MCP 2025-06-18).
Execute the tool with given arguments.
Tool arguments validated against inputSchema
Tool execution result
MCP tool that reports on the running server itself: memory, uptime, the negotiated protocol era and revision, the ts-morph projects held in the shared cache, response sizes, and whether the build on disk changed after the server started.
Remarks
A session keeps the code it started with; after a rebuild it serves stale tools until the client reconnects.
build.rebuiltSinceStartmakes that visible from inside the session. The check compares the newest.jsmtime per packagedist/at start and at call time; it walks the directories on every call (a few hundred files, milliseconds).Example