RequestMetaObject class final

Extends MetaObject with additional request-specific fields. All key naming rules from MetaObject apply.

Revisions: 2026-07-28.

Inheritance

Constructors

RequestMetaObject({ClientCapabilities? clientCapabilities, Implementation? clientInfo, LoggingLevel? logLevel, String? protocolVersion, Object? progressToken, Map<String, Object?>? extra})
RequestMetaObject.fromJson(Map<String, Object?> json)
Wraps json as received; nothing is dropped.

Properties

clientCapabilities → ClientCapabilities?
The client's capabilities for this specific request. Required.
no setter
clientInfo → Implementation?
Identifies the client software making the request. Clients SHOULD include this field on every request unless specifically configured not to do so.
no setter
extra → Map<String, Object?>
Keys outside the schema (newer revisions, extensions, applications).
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
logLevel → LoggingLevel?
The desired log level for this request. Optional.
no setter
progressToken → Object?
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.
no setter
protocolVersion → String?
The MCP Protocol Version being used for this request. Required.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schemaKeys → Set<String>
Property names the schema defines for this type.
no setteroverride

Methods

$optional<T>(String key, T? read(Object? value, String path)) → T?
Optional property key, converted by read; null when absent or null.
inherited
$required<T>(String key, T read(Object? value, String path)) → T
Required property key, converted by read.
inherited
check() → List<String>
Reads every property this type defines and returns what could not be read (missing required properties, wrong types), nested types included. Empty = the JSON matches the schema's shape for this type.
override
copyWith({ClientCapabilities? clientCapabilities, Implementation? clientInfo, LoggingLevel? logLevel, String? protocolVersion, Object? progressToken}) → RequestMetaObject
A copy with the given properties replaced; everything else, unknown keys included, is kept.
has(String key) → bool
Whether key is present (a null value counts as present).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
The JSON form of this value.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
Equal when the JSON is equal; key order does not matter.
inherited
operator [](String key) → Object?
The raw JSON value of key.
inherited

Constants

keys → const Set<String>