class ActionController::MCPServer::Toolbox

Overview

a controller exposed as a group of tools and prompts

Included Modules

Extended Modules

Defined in:

action-controller/mcp/description.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

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

[View source]

Instance Method Detail

def controller : String #

[View source]
def description : String | Nil #

[View source]
def icons : Array(JSON::Any) | Nil #

the controller's icons, src as written, see Icons


[View source]
def name : String #

[View source]
def openable? : Bool #

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


[View source]
def prompts : Array(Prompt) #

[View source]
def toolbox_prompts : Array(Prompt) #

the prompts added when the toolbox is opened


[View source]
def toolbox_tools : Array(Tool) #

the tools added when the toolbox is opened


[View source]
def tools : Array(Tool) #

[View source]