class MCProtocol::ServerCapabilities

Overview

Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities.

Included Modules

Defined in:

mcprotocol/server_capabilities.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(experimental : JSON::Any | Nil = Nil, logging : JSON::Any | Nil = Nil, prompts : ServerCapabilitiesPrompts | Nil = Nil, resources : ServerCapabilitiesResources | Nil = Nil, tools : ServerCapabilitiesTools | Nil = Nil) #

[View source]

Instance Method Detail

def experimental : JSON::Any | Nil #

Experimental, non-standard capabilities that the server supports.


[View source]
def logging : JSON::Any | Nil #

Present if the server supports sending log messages to the client.


[View source]
def prompts : ServerCapabilitiesPrompts | Nil #

Present if the server offers any prompt templates.


[View source]
def resources : ServerCapabilitiesResources | Nil #

Present if the server offers any resources to read.


[View source]
def tools : ServerCapabilitiesTools | Nil #

Present if the server offers any tools to call.


[View source]