From 888deba891916b21e0f96f6217ba0b8eb1a73994 Mon Sep 17 00:00:00 2001 From: claude code agent 227 Date: Mon, 29 Jun 2026 14:07:02 +0300 Subject: [PATCH] docs(#193): drop uploadImage from MCP-transport method list in contract-guard comment (F3) uploadImage is internal to client.ts (called by insertImage/replaceImage); the MCP transport (index.ts) does not call it directly. Remove it from the comment's list of transport-called methods. Co-Authored-By: Claude Opus 4.8 (1M context) --- packages/mcp/test/unit/client-host-contract.test.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mcp/test/unit/client-host-contract.test.mjs b/packages/mcp/test/unit/client-host-contract.test.mjs index ad0abab7..424bfbb7 100644 --- a/packages/mcp/test/unit/client-host-contract.test.mjs +++ b/packages/mcp/test/unit/client-host-contract.test.mjs @@ -28,8 +28,8 @@ import { DocmostClient } from "../../build/index.js"; // in the server's DocmostClientLike interface (the in-app per-user tool adapter // only — it is a SUBSET of the DocmostClient surface — covers only what the in-app adapter // consumes; the standalone MCP transport (packages/mcp/src/index.ts) calls additional -// client methods (insertImage/replaceImage/deleteComment/updateComment/insertFootnote/ -// uploadImage) that this guard does NOT track — the MCP transport's own typecheck covers those). Full type-derivation +// client methods (insertImage/replaceImage/deleteComment/updateComment/insertFootnote) +// that this guard does NOT track — the MCP transport's own typecheck covers those). Full type-derivation // of DocmostClientLike from this class is deferred (see the staged plan in // docmost-client.loader.ts): the package emits no declarations and the real // (inferred, concrete) return types conflict with the host's loose