Type Alias ClientBuilder

Source
pub type ClientBuilder = McpClientBuilder;

Aliased Type§

pub struct ClientBuilder { /* private fields */ }

Implementations

Source§

impl McpClientBuilder

Source

pub fn new() -> Self

Create a new client builder

Source

pub fn with_name<S: Into<String>>(self, name: S) -> Self

Set client name

Source

pub fn with_version<S: Into<String>>(self, version: S) -> Self

Set client version

Source

pub fn with_capabilities(self, capabilities: ClientCapabilities) -> Self

Set client capabilities

Source

pub fn with_timeout(self, timeout: Duration) -> Self

Set request timeout

Source

pub fn with_retry_config(self, retry_config: RetryConfig) -> Self

Set retry configuration

Source

pub fn with_connection_config(self, connection_config: ConnectionConfig) -> Self

Set connection configuration

Source

pub fn build(self) -> McpResult<McpClient>

Build the client

Trait Implementations

Source§

impl Default for McpClientBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more