fix: Expose the MCP child process PID as an accessible property in StdioClientTransport

This commit is contained in:
Xiaofu Huang 2025-05-06 17:25:38 +08:00
commit 59fb4845d6

View file

@ -184,6 +184,10 @@ export class StdioClientTransport implements Transport {
return this._process?.stderr ?? null;
}
get pid(): number | undefined {
return this._process?.pid;
}
private processReadBuffer() {
while (true) {
try {