pub struct McpCallContext {
pub protocol_version: Option<String>,
pub request_meta: Option<Value>,
pub client_capabilities: Option<Value>,
pub input_responses: Option<Value>,
pub request_state: Option<String>,
pub peer: Option<McpPeer>,
}Expand description
MCP-specific metadata for one command invocation.
Fields§
§protocol_version: Option<String>Selected protocol version for this invocation.
request_meta: Option<Value>Complete request _meta object, when the client supplied one.
client_capabilities: Option<Value>Client capabilities copied from request metadata or initialization.
input_responses: Option<Value>Client responses for a retry after an input-required result.
request_state: Option<String>Opaque request state echoed by the client for a retry.
peer: Option<McpPeer>Optional provider-neutral request hook for server-initiated peer requests.
Trait Implementations§
Source§impl Clone for McpCallContext
impl Clone for McpCallContext
Source§impl Debug for McpCallContext
impl Debug for McpCallContext
Auto Trait Implementations§
impl !RefUnwindSafe for McpCallContext
impl !UnwindSafe for McpCallContext
impl Forget for McpCallContext
impl Freeze for McpCallContext
impl Move for McpCallContext
impl Send for McpCallContext
impl Sync for McpCallContext
impl Unpin for McpCallContext
impl UnsafeUnpin for McpCallContext
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