MCP::Message::Response
Inherits Reference < Object
Represents a JSON-RPC 2.0 response message.
Constructors
new(id : String, result : JSON::Any | Nil = nil, error : Error | Nil = nil)
SourceClass methods
from_json(json_string : String)
Override the automatic from_json to prevent Crystal from trying to use it
Instance methods
error
Sourceerror=(error : Error | Nil)
Sourceid
Sourceid=(id : String)
Sourcejsonrpc
Sourcejsonrpc=(jsonrpc : String)
Sourceresult
Sourceresult=(result : JSON::Any | Nil)
Sourceto_json
Source