From 7a64bd9b67e21cb821a04a12b4110e4e67bcd09c Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 4 Nov 2026 12:29:43 +0100 Subject: [PATCH] :bug: Give the MCP plugin test the version check it calls The connection metadata test runs plugin.ts with its imports replaced by stand-ins. They lacked extractMinorVersion and isCompatibleVersion, which plugin.ts calls on connect, so the test of an integrated plugin that stays idle until connected failed. The stand-ins now pass the real version check functions through. --- mcp/packages/plugin/src/ConnectionMetadata.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mcp/packages/plugin/src/ConnectionMetadata.test.ts b/mcp/packages/plugin/src/ConnectionMetadata.test.ts index 4eb072a38d..19f6f28b7b 100644 --- a/mcp/packages/plugin/src/ConnectionMetadata.test.ts +++ b/mcp/packages/plugin/src/ConnectionMetadata.test.ts @@ -7,6 +7,7 @@ import ts from "typescript"; import { shouldReconnectAfterClose } from "./ReconnectPolicy.ts"; import { SessionId } from "./SessionId.ts"; import { SessionIdDisplay } from "./SessionIdDisplay.ts"; +import { extractMinorVersion, isCompatibleVersion } from "./VersionCompatibility.ts"; /** Compiles the actual plugin entry point for a simulated browser boundary. */ function compile(name: string) { @@ -163,6 +164,8 @@ test("answers heartbeat requests once initialized, without forwarding them to th */ const pluginModules = { ExecuteCodeTaskHandler: class {}, + extractMinorVersion, + isCompatibleVersion, LocalStorageRollbackStore: class {}, RollbackLog: class { listen() {}