pub struct RequestMetaObject {
pub client_capabilities: ClientCapabilities,
pub client_info: Option<Implementation>,
pub log_level: Option<LoggingLevel>,
pub protocol_version: String,
pub progress_token: Option<ProgressToken>,
pub extra: Map<String, Value>,
}Expand description
Extends MetaObject with additional request-specific fields. All key naming rules from MetaObject apply.
Fields§
§client_capabilities: ClientCapabilitiesThe client’s capabilities for this specific request. Required.
Capabilities are declared per-request rather than once at initialization; an empty object means the client supports no optional capabilities. Servers MUST NOT infer capabilities from prior requests.
client_info: Option<Implementation>Identifies the client software making the request. Clients SHOULD include this field on every request unless specifically configured not to do so.
The Implementation schema requires name and version; other
fields are optional.
The value is self-reported by the client and is not verified by the protocol. It is intended for display, logging, and debugging. Servers SHOULD NOT use it to change their behavior, and SHOULD NOT rely on it for security decisions.
log_level: Option<LoggingLevel>Deprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
The desired log level for this request. Optional.
If absent, the server MUST NOT send any LoggingMessageNotificationnotifications/message
notifications for this request. The client opts in to log messages by
explicitly setting a level. Replaces the former logging/setLevel RPC.
protocol_version: StringThe MCP Protocol Version being used for this request. Required.
For the HTTP transport, this value MUST match the MCP-Protocol-Version
header; otherwise the server MUST return a 400 Bad Request. If the
server does not support the requested version, it MUST return an
UnsupportedProtocolVersionError.
progress_token: Option<ProgressToken>If specified, the caller is requesting out-of-band progress notifications for this request (as represented by ProgressNotificationnotifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
extra: Map<String, Value>Additional properties not described by the schema.
Implementations§
Source§impl RequestMetaObject
impl RequestMetaObject
Sourcepub fn new(
client_capabilities: ClientCapabilities,
protocol_version: String,
) -> RequestMetaObject
pub fn new( client_capabilities: ClientCapabilities, protocol_version: String, ) -> RequestMetaObject
Creates a value from its required fields; optional fields are None.
Trait Implementations§
Source§impl Clone for RequestMetaObject
impl Clone for RequestMetaObject
Source§fn clone(&self) -> RequestMetaObject
fn clone(&self) -> RequestMetaObject
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more