Design
The TypeScript server, the on-disk session store, the path every authenticated tool call follows, the MCP protocol on the wire, and the guards and tests that keep workflow definitions valid.
-
Server anatomy
Startup, tool registration, the module map, and the cross-cutting layer every handler passes through.
Server anatomy -
Request lifecycle
Seven stages inside one authenticated tool call — seal verification through trace signing — using
Request lifecyclenext_activityas the worked example. -
Protocol
Call order, error and warning taxonomy, trace tokens, reference delivery, and dispatch on the wire.
Protocol -
Session store
Session storesession.jsonon disk: the planning folder, derivedsession_index, embedded child sessions, HMAC seals, and append-only history. -
Quality system
Guard scripts, Vitest suites, generated-then-guarded docs, and agent smoke runs.
Quality system