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

Method send_ping

src/mcp/client/session.py:522–524  ·  view source on GitHub ↗

Send a ping request.

(self, *, meta: RequestParamsMeta | None = None)

Source from the content-addressed store, hash-verified

520 return None
521
522 async def send_ping(self, *, meta: RequestParamsMeta | None = None) -> types.EmptyResult:
523 """Send a ping request."""
524 return await self.send_request(types.PingRequest(params=types.RequestParams(_meta=meta)), types.EmptyResult)
525
526 @deprecated(
527 "Client-to-server progress is deprecated as of 2026-07-28; progress is server-to-client only.",

Calls 1

send_requestMethod · 0.95