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

Function send

tests/shared/test_dispatcher.py:316–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314 await tg.start(client.run, c_req, c_notify)
315
316 async def send() -> None:
317 with pytest.raises(MCPError) as exc:
318 await client.send_raw_request("ping", None)
319 assert exc.value.error.code == CONNECTION_CLOSED
320 client.close()
321
322 tg.start_soon(send)
323 await anyio.wait_all_tasks_blocked()

Callers 8

_send_auth_errorMethod · 0.50
wrappedFunction · 0.50
__call__Method · 0.50
chunked_appFunction · 0.50
waiting_appFunction · 0.50
lingering_appFunction · 0.50
filter_methodsFunction · 0.50
first_post_then_404Function · 0.50

Calls 2

send_raw_requestMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected