We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22e2b3a commit 2774496Copy full SHA for 2774496
1 file changed
tests/client/test_stdio_cm.py
@@ -0,0 +1,18 @@
1
+import pytest
2
+
3
+from mcp import StdioServerParameters
4
+from mcp.client.stdio import stdio_client
5
6
+MCP_SERVER = {
7
+ "command": "uvx",
8
+ "args": ["mcp-server-fetch"],
9
+}
10
11
12
+@pytest.mark.anyio
13
+async def test_context_manager_exiting():
14
+ async with stdio_client(StdioServerParameters(**MCP_SERVER)) as (
15
+ read_stream,
16
+ write_stream,
17
+ ):
18
+ pass
0 commit comments