pub struct McpContext {
pub session_id: Option<String>,
pub notification_sender: Option<UnboundedSender<McpNotification>>,
pub protocol_version: Option<String>,
pub client_info: Option<Value>,
}
Expand description
Context provided to MCP handler methods
Fields§
§session_id: Option<String>
Session ID for this client connection
notification_sender: Option<UnboundedSender<McpNotification>>
Sender for notifications (if supported)
protocol_version: Option<String>
Protocol version negotiated with client
client_info: Option<Value>
Client information from initialization
Trait Implementations§
Source§impl Clone for McpContext
impl Clone for McpContext
Source§fn clone(&self) -> McpContext
fn clone(&self) -> McpContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for McpContext
impl RefUnwindSafe for McpContext
impl Send for McpContext
impl Sync for McpContext
impl Unpin for McpContext
impl UnwindSafe for McpContext
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