class
ActionController::MCPServer::Description
- ActionController::MCPServer::Description
- Reference
- Object
Overview
the toolboxes available to MCP clients, typically saved as mcp.yml
Included Modules
- JSON::Serializable
- YAML::Serializable
Extended Modules
- JSON::Schema
Defined in:
action-controller/mcp/description.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(toolboxes : Array(ActionController::MCPServer::Toolbox) = [] of Toolbox, endpoints : Array(ActionController::MCPServer::Endpoint) = [] of Endpoint)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Instance Method Summary
-
#endpoint?(path : String) : Endpoint | Nil
the endpoint served at the path template, i.e.
-
#endpoints : Array(Endpoint)
controllers served as their own MCP server, see
ActionController::MCP -
#prompt?(name : String) : Tuple(Toolbox, Prompt) | Nil
returns the prompt and the toolbox it belongs to
- #prompts? : Bool
-
#root_prompts : Array(Prompt)
the prompts available without opening a toolbox
-
#root_tools : Array(Tool)
the tools available without opening a toolbox
-
#tool?(name : String) : Tuple(Toolbox, Tool) | Nil
returns the tool and the toolbox it belongs to
- #toolbox?(name : String) : Toolbox | Nil
- #toolboxes : Array(Toolbox)
Constructor Detail
def self.new(toolboxes : Array(ActionController::MCPServer::Toolbox) = [] of Toolbox, endpoints : Array(ActionController::MCPServer::Endpoint) = [] of Endpoint)
#
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
#
Instance Method Detail
the endpoint served at the path template, i.e. /accounts/:account_id/mcp
controllers served as their own MCP server, see ActionController::MCP
returns the prompt and the toolbox it belongs to
returns the tool and the toolbox it belongs to