Skip to content

Commit 59fb484

Browse files
committed
fix: Expose the MCP child process PID as an accessible property in StdioClientTransport
1 parent 621ccea commit 59fb484

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/client/stdio.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ export class StdioClientTransport implements Transport {
184184
return this._process?.stderr ?? null;
185185
}
186186

187+
get pid(): number | undefined {
188+
return this._process?.pid;
189+
}
190+
187191
private processReadBuffer() {
188192
while (true) {
189193
try {

0 commit comments

Comments
 (0)