fix: Expose the MCP child process PID as an accessible property in StdioClientTransport
This commit is contained in:
parent
621ccea997
commit
59fb4845d6
1 changed files with 4 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue