Class reference
MCPProtocol
Inherits JSONRPC
MCP JSON-RPC protocol handler: capability negotiation, tool listing, and dispatch.
Description
Implements the Model Context Protocol request layer on top of the JSONRPC class. Handles the initialize handshake with version negotiation, the notifications/initialized lifecycle event, ping, tools/list, and tools/call. Tool execution is delegated to the internal MCPTools class. The operation phase is gated until the initialized notification is received, per spec.
Methods
bool is_initialized() const
bool is_initialized() constReturns true after the client has sent the notifications/initialized handshake message, marking the start of the operation phase.