MCPcopy
hub / github.com/modelcontextprotocol/python-sdk / run_client

Function run_client

tests/client/test_stdio.py:389–393  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387 terminated = install_fake_process(monkeypatch, process, grace_period=None)
388
389 async def run_client() -> float:
390 with anyio.fail_after(stdio.PROCESS_TERMINATION_TIMEOUT + 5): # virtual seconds
391 async with stdio_client(FAKE_PARAMS):
392 # Evaluated just before the context exits: the moment cleanup begins.
393 return trio.current_time()
394
395 cleanup_started = trio.run(run_client, clock=trio.testing.MockClock(autojump_threshold=0))
396

Callers

nothing calls this directly

Calls 1

stdio_clientFunction · 0.90

Tested by

no test coverage detected