ActionMCP::Protocol
Constants
LATEST_VERSION = "2025-11-25"
PROTOCOL_VERSIONS = ["2025-11-25", "2025-06-18", "2025-03-26", "2024-11-05"]
SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema"
TYPE_WORDS = {"String" => "a string", "String?" => "a string", "Int32" => "an integer", "Int32?" => "an integer", "Int64" => "an integer", "Int64?" => "an integer", "Float64" => "a number", "Float64?" => "a number", "Bool" => "a boolean", "Bool?" => "a boolean", "Array(String)" => "an array", "Array(String)?" => "an array"}
Class methods
Dispatch-level JSON-RPC error (carries "data").
Transport-guard error (no "data" member — oracle: accept_missing, content_type_wrong, parse_error, batch_rejected, get_405).
POST body → RpcResponse. server is the mounted ActionMCP::Server
subclass; key is the authenticated ApiKey (nil in open mode).
Notification bodies (no "id") are accepted with 202 before dispatch.
initialize_result(server : ActionMCP::Server.class, id : JSON::Any | Nil, params : JSON::Any | Nil) : String
Sourcenot_acceptable
Sourcetools_call(server : ActionMCP::Server.class, id : JSON::Any | Nil, params : JSON::Any | Nil, key : ApiKey | Nil) : RpcResponse
Sourceunsupported_media_type
Source