class

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")
Source

Instance methods

body_initialize
Source
body_notify_initialized
Source
body_prompts_get(name : String, args : Hash(String, String))
Source
body_prompts_list
Source
body_roots_list
Source
body_tools_call(name : String, args : Hash(String, String | Number | Bool | JSON::Any))
Source
body_tools_list
Source
mcp_protocol_version
Source
mcp_protocol_version=(mcp_protocol_version : String)
Source
requests
Source