Expand description
Final MCP common wire types kept separate while the legacy type surface is migrated.
This module owns structural admission and byte-preserving serialization for the PRT-02.A common-type slice. Scheme-specific fetching, rendering, and authorization policies remain outside this wire layer.
Structs§
- Absolute
Uri - A schema-valid RFC 3986 URI with a required ASCII scheme.
- Annotations
- Optional content annotations.
- Cancellation
Notification - Final
notifications/cancelledpayload. - Exact
NonNegative Json Number - A bounded, exact, finite JSON number used by final progress notifications.
- Final
Common Types Schema - Structural schema admission for the final common wire slice.
- Implementation
- Final implementation identity.
- Json
Integer - A JSON integer retained without an implementation-width bound.
- Open
Metadata - Open
_metavalues with typed access to final reserved keys. - RawIcon
- A raw, structurally valid icon source. Rendering admission is deliberately separate.
- RawIcon
Source Uri - A raw icon source URI with a dedicated data-image budget.
- Resource
Link - A final
resource_linkcontent block. - Trace
Context - Bounded trace-context fields preserved from open metadata.
- Untrusted
Cancellation Reason - A peer-provided cancellation reason that deliberately has no raw string accessor, formatter, or serializer.
Enums§
- Annotation
Audience - Annotation audience values.
- Cancellation
Request Id - A peer cancellation request identifier.
- Common
Type Error - A structural rejection at the protocol wire boundary.
- Common
Wire Direction - Direction of a final common-type wire envelope.
- Content
Block - Final common content discriminators.
- Embedded
Resource Contents - Text or blob resource contents embedded in content.
- Icon
Theme - Icon theme values admitted by the final schema.
- Logging
Level - Final MCP logging severities, aligned to RFC 5424 names.
- Opaque
Cursor - An opaque cursor where only absence means the end of a paginated result set.
- Sampling
Content Block - Final sampling-only content blocks.
Constants§
- MAX_
ABSOLUTE_ URI_ BYTES - Maximum encoded bytes admitted for ordinary URI wire fields.
- MAX_
CANCELLATION_ REASON_ BYTES - Historical cancellation-reason size used by earlier bounded profiles.
- MAX_
CONTENT_ ENCODED_ BYTES - Maximum encoded bytes in one common binary content payload.
- MAX_
CURSOR_ BYTES - Maximum UTF-8 bytes in a present pagination cursor.
- MAX_
EXACT_ PROGRESS_ EXPONENT_ ABS - Largest absolute decimal exponent accepted for one exact finite final progress number.
- MAX_
EXACT_ PROGRESS_ NUMBER_ BYTES - Maximum bytes retained for one exact finite final progress number lexeme.
- MAX_
ICON_ DATA_ URI_ DECODED_ BYTES - Maximum decoded bytes represented by a raw icon
data:URI. - MAX_
ICON_ DATA_ URI_ ENCODED_ BYTES - Maximum encoded bytes in a raw icon
data:URI, including its prefix. - MAX_
ICON_ DATA_ URI_ PREFIX_ BYTES - Maximum bytes in a
data:icon media-type and parameter prefix, through the comma. - MAX_
ICON_ SIZE_ BYTES - Maximum UTF-8 bytes in an individual peer icon size string.
- MAX_
ICON_ SIZE_ ENTRIES - Maximum icon size strings retained from one peer icon.
- MAX_
JSON_ INTEGER_ BYTES - Maximum bytes retained for one arbitrary-width JSON integer token.
- MAX_
JSON_ INTEGER_ EXPONENT_ ABS - Largest absolute decimal exponent admitted for one JSON integer token.
- MAX_
METADATA_ ENTRIES - Maximum number of retained open metadata entries.
- MAX_
METADATA_ KEY_ BYTES - Maximum UTF-8 bytes in an individual metadata key.
- MAX_
METADATA_ VALUE_ BYTES - Maximum canonical JSON bytes in an individual metadata value.
- MAX_
TRACE_ FIELD_ BYTES - Maximum UTF-8 bytes in each W3C trace field.