class
ActionController::MCPServer::Endpoint
- ActionController::MCPServer::Endpoint
- Reference
- Object
Overview
a controller served as its own MCP server, @[AC::MCP(endpoint: true)].
Every tool and prompt is listed, there are no toolboxes to open
Included Modules
- JSON::Serializable
- YAML::Serializable
Extended Modules
- JSON::Schema
Defined in:
action-controller/mcp/description.crConstructors
- .new(path : String, bound : Array(String), toolbox : ActionController::MCPServer::Toolbox)
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Class Method Summary
-
.bound_params(path : String) : Array(String)
the path params in a path template
Instance Method Summary
-
#bound : Array(String)
the path params bound from the endpoint URL, removed from the tool arguments
-
#description : Description
the endpoint as a description with a single toolbox of root items
-
#instructions : String | Nil
the controller doc comment, used as the server instructions
-
#name : String
the toolbox name, used as the server name
-
#path : String
the path template the endpoint is served at, i.e.
-
#toolbox : Toolbox
the endpoint's tools and prompts, all of them root items
Constructor Detail
def self.new(path : String, bound : Array(String), toolbox : ActionController::MCPServer::Toolbox)
#
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
#
Class Method Detail
Instance Method Detail
def bound : Array(String)
#
the path params bound from the endpoint URL, removed from the tool arguments