pub struct RegisterEventInterestParams {
pub event_type: String,
}Expand description
Event type to register consumer interest for, used by runtime gating logic.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§event_type: StringThe event type the consumer wants the runtime to treat as ‘observed’ for behavior-switching gating. Some runtime code paths inspect whether any consumer is interested in a specific event type and choose a different implementation accordingly (e.g. mcp.oauth_required: when interest is registered the runtime delegates the full interactive OAuth flow to the consumer; when no interest is registered the runtime installs a browserless fallback that silently reuses cached tokens). SDK clients that long-poll events do NOT automatically appear as listeners to these gating checks — they must explicitly call registerInterest for each event type they want the runtime to count as having a consumer. Multiple registrations for the same event type from the same or different consumers are tracked independently and must each be released. See: mcp.oauth_required, sampling.requested, auto_mode_switch.requested, user_input.requested, elicitation.requested, command.queued, exit_plan_mode.requested.
Trait Implementations§
Source§impl Clone for RegisterEventInterestParams
impl Clone for RegisterEventInterestParams
Source§fn clone(&self) -> RegisterEventInterestParams
fn clone(&self) -> RegisterEventInterestParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more