We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 568cbd1 commit 265d724Copy full SHA for 265d724
1 file changed
src/mcp/client/stdio.py
@@ -159,4 +159,7 @@ async def stdin_writer():
159
):
160
tg.start_soon(stdout_reader)
161
tg.start_soon(stdin_writer)
162
- yield read_stream, write_stream
+ try:
163
+ yield read_stream, write_stream
164
+ finally:
165
+ process.terminate()
0 commit comments