pub struct McpHandler { /* private fields */ }Expand description
The embeddable MCP server returned by Toolkit::mcp_handler. Cheap to
clone. Mount it with hyper (hyper::service::Service) or call
McpHandler::handle from any framework.
Implementations§
Source§impl McpHandler
impl McpHandler
Sourcepub fn notify_tools_changed(&self)
pub fn notify_tools_changed(&self)
Send notifications/tools/list_changed on every open GET stream; a
slow stream drops the message rather than block.
Trait Implementations§
Source§impl Clone for McpHandler
impl Clone for McpHandler
Auto Trait Implementations§
impl !RefUnwindSafe for McpHandler
impl !UnwindSafe for McpHandler
impl Freeze for McpHandler
impl Send for McpHandler
impl Sync for McpHandler
impl Unpin for McpHandler
impl UnsafeUnpin for McpHandler
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