class ActionController::MCPServer::Endpoint
inherits Reference
#
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
Constructors#
.new(path : String, bound : Array(String), toolbox : ActionController::MCPServer::Toolbox, instructions_path : Nil | String = nil)#
.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)#
Class methods#
Methods#
#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
#instructions_path : String | ::Nil#
the internal route of the controller's instructions method, which builds the
instructions for each session, i.e. /accounts/:account_id/__mcp_instructions__
#path : String#
the path template the endpoint is served at, i.e. /accounts/:account_id/mcp