pub struct ClientCapabilities {
pub elicitation: Option<ClientCapabilitiesElicitation>,
pub experimental: Option<BTreeMap<String, Map<String, Value>>>,
pub extensions: Option<BTreeMap<String, Map<String, Value>>>,
pub roots: Option<ClientCapabilitiesRoots>,
pub sampling: Option<ClientCapabilitiesSampling>,
}Expand description
Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
Fields§
§elicitation: Option<ClientCapabilitiesElicitation>Present if the client supports elicitation from the server.
experimental: Option<BTreeMap<String, Map<String, Value>>>Experimental, non-standard capabilities that the client supports.
extensions: Option<BTreeMap<String, Map<String, Value>>>Optional MCP extensions that the client supports. Keys are extension identifiers (e.g., “io.modelcontextprotocol/oauth-client-credentials”), and values are per-extension settings objects. An empty object indicates support with no settings.
Keys MUST follow the MetaObject_meta``, with a
mandatory prefix.
roots: Option<ClientCapabilitiesRoots>Deprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
Present if the client supports listing roots.
sampling: Option<ClientCapabilitiesSampling>Deprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
Present if the client supports sampling from an LLM.
Trait Implementations§
Source§impl Clone for ClientCapabilities
impl Clone for ClientCapabilities
Source§fn clone(&self) -> ClientCapabilities
fn clone(&self) -> ClientCapabilities
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more