MCPC::JsonRpcSession
Inherits Reference < Object
MCP JSON RPC Session, with methods that are used to prepare JSON RPC messages / requests.
Constructors
new(mcp_protocol_version : String = "2024-11-05")
SourceInstance methods
body_initialize
Sourcebody_notify_initialized
Sourcebody_prompts_get(name : String, args : Hash(String, String))
Sourcebody_prompts_list
Sourcebody_roots_list
Sourcebody_tools_call(name : String, args : Hash(String, String | Number | Bool | JSON::Any))
Sourcebody_tools_list
Sourcemcp_protocol_version
Sourcemcp_protocol_version=(mcp_protocol_version : String)
Sourcerequests
Source