Attention: Here be dragons (unstable version)

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Redot.

MCPProtocol

Inherits: JSONRPC < Object

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


Method Descriptions

bool is_initialized() const 🔗

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