We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbe7abf commit cc1f544Copy full SHA for cc1f544
src/mcp/client/stdio/__init__.py
@@ -1,7 +1,7 @@
1
import logging
2
import os
3
import sys
4
-from contextlib import AsyncExitStack, asynccontextmanager
+from contextlib import asynccontextmanager
5
from pathlib import Path
6
from typing import Literal, TextIO
7
@@ -192,6 +192,8 @@ async def stdin_writer():
192
except ProcessLookupError:
193
# Process already exited, which is fine
194
pass
195
+ await read_stream_writer.aclose()
196
+ await write_stream_reader.aclose()
197
198
199
def _get_executable_command(command: str) -> str:
0 commit comments