ActionController::MCPServer::Description
Inherits YAML::Serializable < JSON::Serializable < Reference < Object
the toolboxes available to MCP clients, typically saved as mcp.yml
Constructors
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Sourcenew(pull : JSON::PullParser)
Sourcenew(toolboxes : Array(ActionController::MCPServer::Toolbox) = [] of Toolbox, endpoints : Array(ActionController::MCPServer::Endpoint) = [] of Endpoint)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
Sourcenew(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
SourceInstance methods
composition_id=(composition_id : String | Nil)
Detects descriptions generated for a different application composition.
endpoint?(path : String) : Endpoint | Nil
the endpoint served at the path template, i.e. /accounts/:account_id/mcp
prompt?(name : String) : Tuple(Toolbox, Prompt) | Nil
returns the prompt and the toolbox it belongs to
prompts?
Sourceresource?(uri : String) : Tuple(Tool, Hash(String, String)) | Nil
the resource tool whose template matches the URI, and the template variables
resource_tools
the tools that are readable as resource templates, the most specific templates first
tool?(name : String) : Tuple(Toolbox, Tool) | Nil
returns the tool and the toolbox it belongs to
toolbox?(name : String) : Toolbox | Nil
Sourcetoolboxes
Source