pub struct McpProxyBuilder { /* private fields */ }Expand description
MCP Proxy Builder - Convenient proxy configuration
Implementations§
Source§impl McpProxyBuilder
impl McpProxyBuilder
Sourcepub fn add_server(self, name: &str, sse_endpoint: &str) -> Self
pub fn add_server(self, name: &str, sse_endpoint: &str) -> Self
Add MCP server
Sourcepub fn add_server_with_auth(
self,
name: &str,
sse_endpoint: &str,
auth_token: &str,
) -> Self
pub fn add_server_with_auth( self, name: &str, sse_endpoint: &str, auth_token: &str, ) -> Self
Add MCP server with authentication
Sourcepub fn with_proxy_auth(self, auth_token: &str) -> Self
pub fn with_proxy_auth(self, auth_token: &str) -> Self
Set proxy authentication token
Sourcepub fn with_timeout(self, timeout_seconds: u64) -> Self
pub fn with_timeout(self, timeout_seconds: u64) -> Self
Set timeout for external requests
Trait Implementations§
Auto Trait Implementations§
impl Freeze for McpProxyBuilder
impl RefUnwindSafe for McpProxyBuilder
impl Send for McpProxyBuilder
impl Sync for McpProxyBuilder
impl Unpin for McpProxyBuilder
impl UnsafeUnpin for McpProxyBuilder
impl UnwindSafe for McpProxyBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more