pub trait CommandHandler: Send + Sync {
// Required methods
fn handle(
&self,
params: Option<&Value>,
id: Option<&Value>,
) -> HandlerResult;
fn name(&self) -> &'static str;
}
Expand description
Trait for handling MCP protocol commands