pub trait McpToolsProvider {
// Required methods
fn get_available_tools(&self) -> Vec<Tool>;
fn call_tool_impl(
&self,
request: CallToolRequestParam,
) -> impl Future<Output = Result<CallToolResult, Error>> + Send;
}
Expand description
Helper trait for servers with tools
Required Methods§
fn get_available_tools(&self) -> Vec<Tool>
fn call_tool_impl( &self, request: CallToolRequestParam, ) -> impl Future<Output = Result<CallToolResult, Error>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.