MCP::Message::Notification
Inherits Reference < Object
Represents a JSON-RPC 2.0 notification message.
Constructors
new(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
jsonrpc
Sourcejsonrpc=(jsonrpc : String)
Sourcemethod
Sourcemethod=(method : String)
Sourceparams
Sourceparams=(params : Hash(String, JSON::Any) | Nil)
Sourceto_json
Source