MCP::Message::Request
Inherits Reference < Object
Represents a JSON-RPC 2.0 request message.
Constructors
new(id : String, method : String, params : Hash(String, JSON::Any) | Nil = nil)
SourceClass methods
from_json(json_string : String)
Override the automatic from_json to prevent Crystal from trying to use it
Instance methods
id
Sourceid=(id : String)
Sourcejsonrpc
Sourcejsonrpc=(jsonrpc : String)
Sourcemethod
Sourcemethod=(method : String)
Sourceparams
Sourceparams=(params : Hash(String, JSON::Any) | Nil)
Sourceto_json
Source