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

Function run_server

tests/shared/test_jsonrpc_dispatcher.py:1059–1061  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1057 outer = anyio.CancelScope()
1058
1059 async def run_server() -> None:
1060 with outer:
1061 await server.run(on_request, on_notify)
1062
1063 received: list[SessionMessage] = []
1064 try:

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected