class
MCProtocol::InitializeResult
- MCProtocol::InitializeResult
- Reference
- Object
Overview
After receiving an initialize request from the client, the server sends this response.
Included Modules
- JSON::Serializable
Defined in:
mcprotocol/initialize_result.crConstructors
- .new(capabilities : ServerCapabilities, protocolVersion : String, serverInfo : Implementation, _meta : JSON::Any | Nil = Nil, instructions : String | Nil = Nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#_meta : JSON::Any | Nil
This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
- #capabilities : ServerCapabilities
-
#instructions : String | Nil
Instructions describing how to use the server and its features.
-
#protocolVersion : String
The version of the Model Context Protocol that the server wants to use.
- #serverInfo : Implementation
Constructor Detail
Instance Method Detail
This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
Instructions describing how to use the server and its features.
This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt.
The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect.