GitHub

ProtocolAdapter

API reference for ProtocolAdapter.

One MCP revision (see the module docstring).

Attributes

AttributeTypeDescription
protocol_versionV_co
runtimeRuntime
accepts_batchesbool
requires_version_headerbool
is_statelessbool
supports_audiobool

Audio content, tool annotations, the completions capability and progress messages (2025-03-26).

supports_structured_contentbool

structuredContent, outputSchema, resource links, titles and elicitation (2025-06-18).

supports_iconsbool

Icons, Implementation.description / websiteUrl and Annotations.lastModified (2025-11-25).

supports_any_structured_contentbool

structuredContent and outputSchema of any JSON type, not only objects (2026-07-28).

reports_tool_errors_as_resultsbool

A tool's invalid input or execution failure is an isError result, not a JSON-RPC error (2025-11-25).

resource_not_found_codeint

The error code of an unknown resource URI.

Functions

__init__

__init__(protocol_version, runtime, accepts_batches, requires_version_header) -> None
ParameterTypeDescription
protocol_versionV_co
runtimeRuntime
accepts_batchesbool
requires_version_headerbool