refactor(mcp): remove any casts in close path

This commit is contained in:
Dax Raad
2026-03-03 19:35:36 -05:00
parent 159164ae8e
commit c8546dae4d
+2 -2
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,