fix: document SDK version for private _process field access

Add a comment noting that (transport as any)._process relies on a private
implementation detail of StdioClientTransport from @modelcontextprotocol/sdk@1.25.2.
Future SDK upgrades should verify this field still exists.
This commit is contained in:
Alex Alecu
2026-02-25 13:17:07 +02:00
parent ee6325d559
commit 5d22ab6368
+3
View File
@@ -450,6 +450,9 @@ export namespace MCP {
})
// kilocode_change start — wrap start/close for process tracking and force-kill safety net
// NOTE: _process is a private field of StdioClientTransport from @modelcontextprotocol/sdk.
// Verified against @modelcontextprotocol/sdk@1.25.2. If the SDK is upgraded, verify this
// field still exists (see node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js).
const originalStart = transport.start.bind(transport)
transport.start = async () => {
try {