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

Method progress

src/mcp/shared/dispatcher.py:174–179  ·  view source on GitHub ↗

Report progress for the inbound 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

172 ...
173
174 async def progress(self, progress: float, total: float | None = None, message: str | None = None) -> None:
175 """Report progress for the inbound request, if the peer supplied a progress token.
176
177 A no-op when no token was supplied.
178 """
179 ...
180
181
182OnRequest = Callable[[DispatchContext[TransportContext], str, Mapping[str, Any] | None], Awaitable[dict[str, Any]]]

Callers 1

report_progressMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected