refactor(mcp): remove any casts in close path

pull/15927/head
Dax Raad 2026-03-03 19:35:36 -05:00
parent 159164ae8e
commit c8546dae4d
1 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ export namespace MCP {
}
function transportPID(client: MCPClient) {
const pid = (client.transport as any)?.pid
const pid = (client.transport as { pid?: number } | undefined)?.pid
if (typeof pid === "number") return pid
return undefined
}
@ -495,7 +495,7 @@ export namespace MCP {
status: "connected",
}
} catch (error) {
await closeClient(client, key, (transport as any)?.pid)
await closeClient(client, key, (transport as { pid?: number } | undefined)?.pid)
log.error("local mcp startup failed", {
key,
command: mcp.command,