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

Method notify

src/mcp/shared/context.py:76–78  ·  view source on GitHub ↗

Send a notification to the peer on the back-channel.

(self, method: str, params: Mapping[str, Any] | None, opts: CallOptions | None = None)

Source from the content-addressed store, hash-verified

74 return await self._dctx.send_raw_request(method, params, opts)
75
76 async def notify(self, method: str, params: Mapping[str, Any] | None, opts: CallOptions | None = None) -> None:
77 """Send a notification to the peer on the back-channel."""
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.

Callers 1

server_on_requestFunction · 0.95

Calls

no outgoing calls

Tested by 1

server_on_requestFunction · 0.76