From ee9bf58abc2e0e6450b3dcdae95b51d222412ebe Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Wed, 14 Oct 2026 13:58:12 +0800 Subject: [PATCH] fix(mcp): materialize catalog identity at the JSON boundary Keep lazy cached catalog calculation internal; publish catalog counts and digests as plain data. This repairs binary_session and doctor output after inert JSON validation. Validation: production stdio MCP doctor and invalid-probe controls pass; build, static and docs checks pass. --- src/serverIdentity.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/serverIdentity.ts b/src/serverIdentity.ts index 55a4f1a3b..444a877ed 100644 --- a/src/serverIdentity.ts +++ b/src/serverIdentity.ts @@ -74,7 +74,10 @@ export const createServerIdentity = (input: { name: PRODUCT_IDENTITY.skillName, expected_version: PRODUCT_IDENTITY.skillVersion, }, - catalog: CATALOG_IDENTITY, + catalog: { + counts: CATALOG_IDENTITY.counts, + digests: CATALOG_IDENTITY.digests, + }, protocol_features: { progress: true, cancellation: true,