Skip to main content

create_context_with_progress

Function create_context_with_progress 

Source
pub fn create_context_with_progress<F>(
    cx: Cx,
    request_id: u64,
    progress_marker: Option<ProgressMarker>,
    state: Option<SessionState>,
    send_fn: F,
) -> McpContext
where F: Fn(JsonRpcRequest) + Send + Sync + 'static,
Expand description

Helper to create an McpContext with optional progress reporting and session state.