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

Method _run_server

src/mcp/client/_memory.py:56–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 server_done = anyio.Event()
55
56 async def _run_server() -> None:
57 try:
58 await actual_server.run(
59 server_read,
60 server_write,
61 actual_server.create_initialization_options(),
62 raise_exceptions=self._raise_exceptions,
63 )
64 finally:
65 server_done.set()
66
67 async with anyio.create_task_group() as tg:
68 tg.start_soon(_run_server)

Callers

nothing calls this directly

Calls 2

runMethod · 0.45

Tested by

no test coverage detected