Skip to content

class ActionController::MCPServer::Description
inherits Reference #

the toolboxes available to MCP clients, typically saved as mcp.yml

Included modules

JSON::Serializable YAML::Serializable

Extended modules

JSON::Schema

Constructors#

.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)#

View source

.new(pull : JSON::PullParser)#

View source

.new(toolboxes : Array(ActionController::MCPServer::Toolbox) = [] of Toolbox)#

View source

.new(*, __pull_for_json_serializable pull : JSON::PullParser)#

View source

.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)#

View source

Methods#

#prompt?(name : String) : Tuple(Toolbox, Prompt) | Nil#

returns the prompt and the toolbox it belongs to

View source

#prompts? : Bool#

View source

#root_prompts : Array(Prompt)#

the prompts available without opening a toolbox

View source

#root_tools : Array(Tool)#

the tools available without opening a toolbox

View source

#tool?(name : String) : Tuple(Toolbox, Tool) | Nil#

returns the tool and the toolbox it belongs to

View source

#toolbox?(name : String) : Toolbox | Nil#

View source

#toolboxes : Array(Toolbox)#

View source