Expand description
Frozen, runtime-neutral extension negotiation and request admission.
This module owns no handler, transport, authorization, or client/server runtime state. It does bind a developer’s explicit local opt-in and both peers’ current settings to bounded, modern-only request admission.
Structs§
- Client
Extension Discovery - Public client discovery input; no client runtime is stored here.
- Effective
Extension Settings - Normalized typed settings produced by a descriptor’s compatibility resolver.
- Extension
Descriptor - One immutable extension descriptor.
- Extension
Descriptor Registry - Acyclic protocol-only descriptor registry.
- Extension
Discovery - Public discovery input for one enabled local extension.
- Extension
Id - A validated extension identifier, preserving its exact wire spelling.
- Extension
Local Enablement - Local feature and runtime opt-in state for the registered descriptors.
- Extension
Method Descriptor - A registered method and its frozen era/fallback declarations.
- Extension
Negotiation Resolver - Stable, total settings compatibility resolver metadata.
- Extension
Notification Descriptor - A registered notification name and direction.
- Extension
Registry Receipt - Immutable receipt returned by
ExtensionDescriptorRegistry::freeze. - Extension
Routing Header Descriptor - A routing-header name owned by an extension descriptor.
- Extension
Settings - One extension’s generic JSON-object settings.
- Extension
Settings Schema - Stable schema and typed-codec identity, not an executable runtime codec.
- McpApps
Activation Receipt - Opaque current-exchange receipt authorizing one MCP Apps Host/View bridge.
- McpApps
Client Settings - Strict, ordered MCP Apps client capability settings.
- McpApps
Negotiation Resolver - Typed MCP Apps compatibility resolver that delegates every non-Apps descriptor to its supplied fallback.
- Negotiated
Extension - An enabled extension after the current-message bilateral negotiation.
- Negotiated
Extension Set - Frozen per-request extension state derived from both peers’ current settings.
- Rejecting
Extension Negotiation Resolver - Fallback used when no optional extension resolver is selected.
- Server
Extension Discovery - Public server discovery input; no server runtime is stored here.
- Stdio
Correlation Descriptor - A stdio notification-correlation metadata key owned by an extension.
Enums§
- Extension
Direction - Direction of a registered RPC name.
- Extension
Dispatch Error - Direction-sensitive extension dispatch failure.
- Extension
Fallback Policy - Declares the fallback expected by a descriptor’s resolver.
- Extension
Http EraDisposition - Frozen HTTP-era classification for client-to-server extension methods.
- Extension
Inactive Reason - A non-activating extension outcome retained for diagnostics.
- Extension
Negotiation Error - Error returned while deriving a per-request bilateral extension set.
- Extension
Peer - The peer side that omitted an otherwise locally enabled extension.
- Extension
Registry Error - Stable registry-validation diagnostics.
- Extension
Settings Resolution - The activation outcome selected by a typed settings compatibility resolver.
Constants§
- MAX_
EXTENSION_ DESCRIPTORS - Maximum descriptors retained by one registry.
- MAX_
EXTENSION_ ID_ BYTES - Maximum bytes in an extension identifier.
- MAX_
EXTENSION_ MEMBER_ NAME_ BYTES - Maximum UTF-8 bytes in an extension-owned method or notification name.
- MAX_
EXTENSION_ REGISTRY_ CANONICAL_ BYTES - Maximum bytes in one canonical descriptor-registry digest subject.
- MAX_
EXTENSION_ ROUTING_ HEADERS - Maximum extension-owned routing headers registered by one descriptor.
- MAX_
EXTENSION_ ROUTING_ HEADER_ BYTES - Maximum UTF-8 bytes in an extension-owned routing header name.
- MAX_
EXTENSION_ SETTINGS_ ENTRIES - Maximum extension settings entries preserved at the generic boundary.
- MAX_
EXTENSION_ SETTINGS_ KEY_ BYTES - Maximum UTF-8 bytes in one extension settings key.
- MAX_
EXTENSION_ SETTINGS_ NESTING - Maximum nesting depth admitted in a generic extension settings value.
- MAX_
EXTENSION_ SETTINGS_ VALUE_ BYTES - Maximum canonical JSON bytes in one extension settings value.
- MAX_
MCP_ APPS_ MIME_ TYPES - Maximum MIME types retained in one MCP Apps client advertisement.
- MAX_
MCP_ APPS_ MIME_ TYPE_ BYTES - Maximum UTF-8 bytes in one MCP Apps MIME type.
- MAX_
STDIO_ CORRELATION_ METHODS - Maximum notification method names owned by one stdio correlation descriptor.
- MCP_
APPS_ ACTIVATION_ PREDICATE_ ID - Stable MCP Apps activation predicate identity.
- MCP_
APPS_ CLIENT_ SETTINGS_ SCHEMA_ ID - Stable MCP Apps client settings schema identity.
- MCP_
APPS_ DOWNLOAD_ FILE_ METHOD - MCP Apps View-to-Host request method name.
- MCP_
APPS_ HOST_ CONTEXT_ CHANGED_ NOTIFICATION - MCP Apps notification method name.
- MCP_
APPS_ HTML_ MIME_ TYPE - MCP Apps HTML resource MIME type required for activation.
- MCP_
APPS_ INITIALIZED_ NOTIFICATION - MCP Apps notification method name.
- MCP_
APPS_ INITIALIZE_ METHOD - MCP Apps View-to-Host request method name.
- MCP_
APPS_ MESSAGE_ METHOD - MCP Apps View-to-Host request method name.
- MCP_
APPS_ NEGOTIATION_ RESOLVER_ ID - Stable MCP Apps bilateral compatibility resolver identity.
- MCP_
APPS_ NEGOTIATION_ RESOLVER_ VERSION - Stable resolver-version component of the frozen MCP Apps descriptor.
- MCP_
APPS_ OPEN_ LINK_ METHOD - MCP Apps View-to-Host request method names.
- MCP_
APPS_ PROTOCOL_ VERSION - Pinned MCP Apps Host/View protocol version represented by this vocabulary.
- MCP_
APPS_ REQUEST_ DISPLAY_ MODE_ METHOD - MCP Apps View-to-Host request method name.
- MCP_
APPS_ REQUEST_ TEARDOWN_ NOTIFICATION - MCP Apps notification method name.
- MCP_
APPS_ RESOURCE_ TEARDOWN_ METHOD - MCP Apps Host-to-View request method name.
- MCP_
APPS_ SANDBOX_ PROXY_ READY_ NOTIFICATION - MCP Apps notification method names.
- MCP_
APPS_ SANDBOX_ RESOURCE_ READY_ NOTIFICATION - MCP Apps notification method name.
- MCP_
APPS_ SERVER_ SETTINGS_ SCHEMA_ ID - Stable MCP Apps server empty-marker schema identity.
- MCP_
APPS_ SIZE_ CHANGED_ NOTIFICATION - MCP Apps notification method name.
- MCP_
APPS_ TOOL_ CANCELLED_ NOTIFICATION - MCP Apps notification method name.
- MCP_
APPS_ TOOL_ INPUT_ NOTIFICATION - MCP Apps notification method name.
- MCP_
APPS_ TOOL_ INPUT_ PARTIAL_ NOTIFICATION - MCP Apps notification method name.
- MCP_
APPS_ TOOL_ RESULT_ NOTIFICATION - MCP Apps notification method name.
- MCP_
APPS_ UPDATE_ MODEL_ CONTEXT_ METHOD - MCP Apps View-to-Host request method name.
- OFFICIAL_
MCP_ APPS_ EXTENSION_ ID - Official MCP Apps extension identifier.
Traits§
- Extension
Settings Compatibility Resolver - A typed compatibility resolver selected by a frozen descriptor ID/version.
Functions§
- official_
mcp_ apps_ descriptor - Returns the descriptor for MCP Apps capability negotiation.
- official_
mcp_ apps_ empty_ server_ settings - Returns the exact empty MCP Apps server settings marker.
- official_
mcp_ apps_ extension_ id - Returns the validated identifier for the official MCP Apps extension.
- official_
mcp_ apps_ negotiation_ resolver - Returns the standalone typed resolver used by the official MCP Apps descriptor.
- register_
official_ mcp_ apps_ extension - Registers the MCP Apps capability descriptor.
- resolve_
official_ mcp_ apps_ settings - Resolves a bilateral MCP Apps capability without comparing asymmetric peer objects.
- validate_
official_ mcp_ apps_ descriptor - Validates the complete, method-free MCP Apps capability descriptor.
- validate_
official_ mcp_ apps_ server_ settings - Validates the sole server settings marker admitted by official MCP Apps.