namespace ModelContextProtocol.Protocol.Transport;
///
/// Represents a transport mechanism for MCP communication (from the server).
///
public interface IServerTransport
{
///
/// Asynchronously accepts a transport session initiated by an MCP client and returns an interface for the duplex JSON-RPC message stream.
///
/// Used to signal the cancellation of the asynchronous operation.
/// Returns an interface for the duplex JSON-RPC message stream.
Task AcceptAsync(CancellationToken cancellationToken = default);
}