pub enum McpCommand {
ExecuteTool {
request: ToolCallRequest,
timeout: Duration,
tx: Sender<ToolExecutionEvent>,
},
ListPrompts {
tx: Sender<Result<Vec<Prompt>, String>>,
},
GetPrompt {
name: String,
arguments: Option<Map<String, Value>>,
tx: Sender<Result<GetPromptResult, String>>,
},
GetServerStatuses {
tx: Sender<Vec<McpServerStatusEntry>>,
},
AuthenticateServer {
name: String,
tx: Sender<Result<(Vec<McpServerStatusEntry>, Vec<ToolDefinition>), String>>,
},
}Expand description
Commands that can be sent to the MCP manager task
Variants§
ExecuteTool
ListPrompts
GetPrompt
Fields
§
tx: Sender<Result<GetPromptResult, String>>GetServerStatuses
Fields
§
tx: Sender<Vec<McpServerStatusEntry>>AuthenticateServer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for McpCommand
impl !RefUnwindSafe for McpCommand
impl Send for McpCommand
impl Sync for McpCommand
impl Unpin for McpCommand
impl UnsafeUnpin for McpCommand
impl !UnwindSafe for McpCommand
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