InitializeResult extension type
After receiving an initialize request from the client, the server sends this response.
Constructors
- InitializeResult({required ProtocolVersion protocolVersion, required ServerCapabilities serverCapabilities, required Implementation serverInfo, String? instructions})
-
factory
-
InitializeResult.fromMap(Map<
String, Object?> _value)
Properties
- capabilities → ServerCapabilities
-
no setter
- instructions → String?
-
Instructions describing how to use the server and its features.
no setter
- isInputRequired → bool
-
Whether the server asked for more input before it can answer, which makes
this an InputRequiredResult.
no setterinherited
- meta → Meta?
-
The
_metaproperty/parameter is reserved by MCP to allow clients and servers to attach additional metadata to their interactions.no setterinherited - protocolVersion ↔ ProtocolVersion?
-
The version of the Model Context Protocol that the server wants to use.
getter/setter pair
- resultType → String
-
The type of this result, which determines how to parse it.
no setterinherited
- serverInfo → Implementation
-
no setter