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

Method send_progress_notification

src/mcp/client/client.py:321–334  ·  view source on GitHub ↗

Send a progress notification to the server.

(
        self,
        progress_token: str | int,
        progress: float,
        total: float | None = None,
        message: str | None = None,
    )

Source from the content-addressed store, hash-verified

319 category=MCPDeprecationWarning,
320 )
321 async def send_progress_notification(
322 self,
323 progress_token: str | int,
324 progress: float,
325 total: float | None = None,
326 message: str | None = None,
327 ) -> None:
328 """Send a progress notification to the server."""
329 await self.session.send_progress_notification( # pyright: ignore[reportDeprecated]
330 progress_token=progress_token,
331 progress=progress,
332 total=total,
333 message=message,
334 )
335
336 @deprecated("The logging capability is deprecated as of 2026-07-28 (SEP-2577).", category=MCPDeprecationWarning)
337 async def set_logging_level(self, level: LoggingLevel, *, meta: RequestParamsMeta | None = None) -> EmptyResult:

Calls

no outgoing calls