class

ModelContextProtocol::Client

Inherits Reference < Object

MCP Client implementation

Constants

VERSION = "0.1.0"

Constructors

Instance methods

close

Close the client connection

Source
initialize_connection(client_capabilities = {} of String => JSON::Any) : Nil

Initialize the client-server connection

Source
invoke_tool(name : String, params : Hash(String, JSON::Any)) : Hash(String, JSON::Any)

Invoke a tool

Source
list_tools(cursor : String | Nil = nil) : Tuple(Array(JSON::Any), String | Nil)

List available tools

Source

Nested types