pub struct MultiServerMcpClient { /* private fields */ }Expand description
Client that connects to one or more MCP servers and aggregates their tools.
Implementations§
Source§impl MultiServerMcpClient
impl MultiServerMcpClient
Sourcepub fn new(servers: HashMap<String, McpConnection>) -> Self
pub fn new(servers: HashMap<String, McpConnection>) -> Self
Create a new client with the given server map.
Sourcepub fn with_prefix(self, prefix: bool) -> Self
pub fn with_prefix(self, prefix: bool) -> Self
When true (the default), discovered tool names are prefixed with the
server name (e.g. "myserver_tool_name").
Sourcepub async fn connect(&self) -> Result<(), SynapticError>
pub async fn connect(&self) -> Result<(), SynapticError>
Connect to all servers and discover available tools.
Auto Trait Implementations§
impl Freeze for MultiServerMcpClient
impl !RefUnwindSafe for MultiServerMcpClient
impl Send for MultiServerMcpClient
impl Sync for MultiServerMcpClient
impl Unpin for MultiServerMcpClient
impl UnsafeUnpin for MultiServerMcpClient
impl !UnwindSafe for MultiServerMcpClient
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