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

Class Recorder

tests/shared/test_dispatcher.py:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34class Recorder:
35 def __init__(self) -> None:
36 self.requests: list[tuple[str, Mapping[str, Any] | None]] = []
37 self.notifications: list[tuple[str, Mapping[str, Any] | None]] = []
38 self.contexts: list[DispatchContext[TransportContext]] = []
39 self.notified = anyio.Event()
40
41
42def echo_handlers(recorder: Recorder) -> tuple[OnRequest, OnNotify]:

Calls

no outgoing calls