pub struct McpToolset { /* private fields */ }Expand description
A toolset that discovers tools from an MCP server.
Implementations§
Source§impl McpToolset
impl McpToolset
Sourcepub fn new(session_manager: Arc<McpSessionManager>) -> Self
pub fn new(session_manager: Arc<McpSessionManager>) -> Self
Create a new MCP toolset connected to the given session manager.
Sourcepub fn with_filter(self, names: Vec<String>) -> Self
pub fn with_filter(self, names: Vec<String>) -> Self
Only expose tools whose names match the filter.
Sourcepub fn session_manager(&self) -> &Arc<McpSessionManager>
pub fn session_manager(&self) -> &Arc<McpSessionManager>
Returns a reference to the underlying session manager.
Trait Implementations§
Source§impl Toolset for McpToolset
impl Toolset for McpToolset
Auto Trait Implementations§
impl Freeze for McpToolset
impl RefUnwindSafe for McpToolset
impl Send for McpToolset
impl Sync for McpToolset
impl Unpin for McpToolset
impl UnwindSafe for McpToolset
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