class

MCP::Server

Inherits Reference < Object

Lightweight MCP 2024-11-05 Server Implementation

Constructors

new(config : MCPConfig = DefaultMCPConfig.new, logger : LogProvider = DefaultLogProvider.new)
Source

Instance methods

config
Source
config=(config : MCPConfig)
Source
handle_request(request_env, user_id : String)

Handle MCP JSON-RPC requests via Kemal

Source
handle_sse(env, user_id : String)

Handle Server-Sent Events for real-time communication

Source
logger
Source
logger=(logger : LogProvider)
Source