mcp.protocol.capabilities

Undocumented in source.

Members

Enums

ClientCapability
enum ClientCapability

A single client capability flag a server checks before issuing the corresponding server->client request. Used by ClientCapabilities.supports and RequestContext.clientSupports so capability gating is type-checked rather than keyed on a magic string that silently fails on a typo.

Structs

ClientCapabilities
struct ClientCapabilities

Capabilities a client advertises during initialization.

Icon
struct Icon

An icon for display in user interfaces. Used by Implementation, Tool (and other definitions) per the MCP spec's icon shape: a required src and optional mimeType, sizes, and theme ("light"|"dark").

Implementation
struct Implementation

Identifies an MCP implementation (client or server).

ListChangedCapability
struct ListChangedCapability

A capability that carries an optional listChanged flag.

ResourcesCapability
struct ResourcesCapability

Resources capability: supports subscribe and listChanged.

ServerCapabilities
struct ServerCapabilities

Capabilities a server advertises during initialization.

TaskRequests
struct TaskRequests

Builder for the nested tasks.requests capability object (spec 2025-11-25).

TasksCapability
struct TasksCapability

Tasks capability (2025-11-25): support for task-augmented requests.

Variables

tasksExtensionKey
enum string tasksExtensionKey;

The draft Extension Negotiation identifier under which task support is declared. In the draft schema, ServerCapabilities/ClientCapabilities have NO top-level tasks field; task support is carried in the extensions map keyed by this identifier. (2025-11-25 keeps tasks as a first-class capability instead.)