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

Method send_ping

src/mcp/server/session.py:349–354  ·  view source on GitHub ↗

Send a ping request.

(self)

Source from the content-addressed store, hash-verified

347 )
348
349 async def send_ping(self) -> types.EmptyResult:
350 """Send a ping request."""
351 return await self.send_request(
352 types.PingRequest(),
353 types.EmptyResult,
354 )
355
356 async def report_progress(self, progress: float, total: float | None = None, message: str | None = None) -> None:
357 """Report progress for the inbound request this session is scoped to.

Callers

nothing calls this directly

Calls 1

send_requestMethod · 0.95

Tested by

no test coverage detected