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

Method notify

tests/shared/test_peer.py:188–189  ·  view source on GitHub ↗
(self, method: str, params: Mapping[str, Any] | None, opts: Any = None)

Source from the content-addressed store, hash-verified

186 raise NotImplementedError
187
188 async def notify(self, method: str, params: Mapping[str, Any] | None, opts: Any = None) -> None:
189 sent.append((method, params))
190
191 await ClientPeer(_Out()).notify("n", {"x": 1})
192 assert sent == [("n", {"x": 1})]

Calls

no outgoing calls

Tested by

no test coverage detected