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

Returns true after the client has sent the notifications/initialized handshake message, marking the start of the operation phase.

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.