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

Function _wrapped

src/mcp/shared/jsonrpc_dispatcher.py:172–176  ·  view source on GitHub ↗
(progress: float, total: float | None, message: str | None)

Source from the content-addressed store, hash-verified

170 """Wrap a user progress callback so an exception can't cancel the dispatcher's task group."""
171
172 async def _wrapped(progress: float, total: float | None, message: str | None) -> None:
173 try:
174 await fn(progress, total, message)
175 except Exception:
176 logger.exception("progress callback raised")
177
178 return _wrapped
179

Callers

nothing calls this directly

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected