MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / call

Function call

tests/client/test_session.py:928–930  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

926 async with anyio.create_task_group() as tg:
927
928 async def call() -> None:
929 with pytest.raises(ValidationError):
930 await session.send_request(types.ListToolsRequest(), types.EmptyResult)
931
932 tg.start_soon(call)
933 request = await from_client.receive()

Callers 2

_on_requestMethod · 0.50
_on_notifyMethod · 0.50

Calls 1

send_requestMethod · 0.45

Tested by

no test coverage detected