Skip to content

Commit ca0c67b

Browse files
committed
fix: JSONRPCDispatcher no-builder __init__ overload accepts all kwargs
The first overload (no transport_builder) was missing peer_cancel_mode and raise_handler_exceptions, so callers couldn't pass them without also supplying a builder. Pure typing fix; the impl already handled them.
1 parent 9d121cf commit ca0c67b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/mcp/shared/jsonrpc_dispatcher.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ def __init__(
192192
self: JSONRPCDispatcher[TransportContext],
193193
read_stream: ReadStream[SessionMessage | Exception],
194194
write_stream: WriteStream[SessionMessage],
195+
*,
196+
peer_cancel_mode: PeerCancelMode = "interrupt",
197+
raise_handler_exceptions: bool = False,
195198
) -> None: ...
196199
@overload
197200
def __init__(

0 commit comments

Comments
 (0)