mirror of
https://github.com/morluto/rea.git
synced 2026-11-24 05:08:44 +00:00
* perf(mcp): serve compact output schemas from the build-recorded catalog The compact output profile forced the eager runtime: full server composition plus runtime schema compaction measured at ~700 ms init + ~421 ms first tools/list, vs ~125 ms deferred for the default profile. The catalog recorder now also records bounded compact output advertisements per tool at build time; the deferred server serves them verbatim (new recorded presentation kind, canonical validation unchanged on calls), main admits the compact profile to the deferred path, and catalogs recorded before this field fall back to eager. Measured after: compact init 118 ms + list 7 ms at the same ~672 KB payload. Refs #13275. Verified: DeferredEvidenceMcpServer tests (17), check:fast, build:cached, and a stdio probe comparing default/compact/hot-cold initialize and tools/list timings and bytes. * fix(mcp): align compact deferred listings with the recorded catalog Deferred compact startup used the off-profile catalog digests, so the first tool call rejected the runtime. Select the digest for the configured output profile. Recorded output presentation skipped compaction for every listed schema. Track which tools have a build-recorded advertisement and compact live registrations, including discover_tools. The recorder stored a contract projection. Legacy clients receive that projection after the SDK stamps or wraps a non-object root and REA compacts the listing. Record that listed schema. Co-authored-by: morluto <morluto@users.noreply.github.com> * docs(mcp): describe recorded compact startup Compact stdio startup serves the recorded catalog, including compact output when that catalog has compact schemas. A compact profile whose catalog has none falls back to eager composition. Initial-target, HTTP, family-scoped hot/cold, and source runs without recorded artifacts stay eager. Co-authored-by: morluto <morluto@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: morluto <morluto@users.noreply.github.com>