DuplexChannel.request

Originate a server->client request (the SERVER path: sampling / elicitation / roots / ping), allocating a fresh id, and block until the peer replies. Returns its result, or throws McpException on an error reply / timeout / channel close.

class DuplexChannel
@safe
Json
request
(
string method
,
Json params
,
Duration timeout = 60.seconds
)