Skip to content

class ActionController::MCPServer::Toolbox
inherits Reference #

a controller exposed as a group of tools and prompts

Included modules

JSON::Serializable YAML::Serializable

Extended modules

JSON::Schema

Constructors#

.new(name : String, controller : String, description : Nil | String, tools : Array(ActionController::MCPServer::Tool) = [] of Tool, prompts : Array(ActionController::MCPServer::Prompt) = [] of Prompt)#

View source

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

View source

.new(pull : JSON::PullParser)#

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#

#controller : String#

View source

#description : String | ::Nil#

View source

#name : String#

View source

#openable? : Bool#

true if there is anything to add when the toolbox is opened

View source

#prompts : Array(Prompt)#

View source

#toolbox_prompts : Array(Prompt)#

the prompts added when the toolbox is opened

View source

#toolbox_tools : Array(Tool)#

the tools added when the toolbox is opened

View source

#tools : Array(Tool)#

View source