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

Method report_progress

src/mcp/shared/context.py:80–85  ·  view source on GitHub ↗

Report progress for this request, if the peer supplied a progress token. A no-op when no token was supplied.

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

Source from the content-addressed store, hash-verified

78 await self._dctx.notify(method, params, opts)
79
80 async def report_progress(self, progress: float, total: float | None = None, message: str | None = None) -> None:
81 """Report progress for this request, if the peer supplied a progress token.
82
83 A no-op when no token was supplied.
84 """
85 await self._dctx.progress(progress, total, message)

Callers 8

server_on_requestFunction · 0.95
crunchFunction · 0.45
millFunction · 0.45
call_toolFunction · 0.45
long_running_taskFunction · 0.45
echoFunction · 0.45
test_tool_with_progressFunction · 0.45

Calls 1

progressMethod · 0.45

Tested by 6

server_on_requestFunction · 0.76
crunchFunction · 0.36
millFunction · 0.36
call_toolFunction · 0.36
test_tool_with_progressFunction · 0.36