class

MCProtocol::InitializeResult

Inherits JSON::Serializable < Reference < Object

After receiving an initialize request from the client, the server sends this response.

Constructors

new(capabilities : ServerCapabilities, protocolVersion : String, serverInfo : Implementation, _meta : JSON::Any | Nil = Nil, instructions : String | Nil = Nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

_meta

This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.

Source
capabilities
Source
instructions

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.

Source
protocolVersion

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.

Source
serverInfo
Source