perf(mcp)!: default to compact input schema advertisements (#5975)
Use compact MCP input advertisements by default while preserving explicit full, canonical validation, output contracts and complete Evidence. Require an explicit selected catalog for runtime identity and honor both profiles in CLI status. Real ripgrep/Zellij SDK tasks, independent ELF oracle, actual client trials, profile parity workflows and CI are recorded in experiments/analysis-efficiency/mcp-input-catalog.md. SDK token estimates improve; actual Codex token savings and general latency/memory gains are not established. Refs #5861 BREAKING CHANGE: MCP input advertisements default to compact. Set REA_MCP_INPUT_SCHEMA_PROFILE=full for complete advertised guidance and nested constraints.
This commit is contained in:
1 parent
01ee6551b4
commit
aa51e43439
45 files changed
+3887
-331
No files matched your search
@@ -26,7 +26,10 @@ import {
|
||||
presentAdvertisedInputSchema,
|
||||
type CompactInputSchemaPresentation,
|
||||
} from "../contracts/compactInputSchema.js";
|
||||
import { CATALOG_IDENTITY, createCatalogIdentity } from "../catalogIdentity.js";
|
||||
import {
|
||||
FULL_CATALOG_IDENTITY,
|
||||
createCatalogIdentity,
|
||||
} from "../catalogIdentity.js";
|
||||
import { transformAdvertisedInputJsonSchema } from "../contracts/toolSchemaMetadata.js";
|
||||
import type { EvidenceWriter } from "../application/investigation/InvestigationRecordPort.js";
|
||||
import {
|
||||
@@ -165,7 +168,7 @@ export class EvidenceMcpServer extends RequestTrackingMcpServer {
|
||||
: { budgetBytes: compactPresentation.budgetBytes };
|
||||
this.catalogIdentity =
|
||||
this.compactPresentation === undefined && !this.omitOutputSchemas
|
||||
? CATALOG_IDENTITY
|
||||
? FULL_CATALOG_IDENTITY
|
||||
: createCatalogIdentity(
|
||||
this.compactPresentation,
|
||||
this.omitOutputSchemas ? "off" : "full",
|
||||
|
||||
Reference in new issue
Block a user