DuplexChannel.deliver

Send a request whose id was already chosen by the caller (the CLIENT path: McpClient pre-allocates the id), and block the current task until the correlated reply arrives. Returns its result, or throws McpException on an error reply / timeout / channel close.

class DuplexChannel
@safe
Json
deliver
(
Json message
,,
Duration timeout = 60.seconds
)