mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user