class MCProtocol::InitializeResult

Overview

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

Included Modules

Defined in:

mcprotocol/initialize_result.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(capabilities : ServerCapabilities, protocolVersion : String, serverInfo : Implementation, _meta : JSON::Any | Nil = Nil, instructions : String | Nil = Nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def _meta : JSON::Any | Nil #

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


[View source]
def capabilities : ServerCapabilities #

[View source]
def instructions : String | Nil #

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.


[View source]
def protocolVersion : String #

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.


[View source]
def serverInfo : Implementation #

[View source]