Skip to main content

Module common_types

Module common_types 

Source
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§

AbsoluteUri
A schema-valid RFC 3986 URI with a required ASCII scheme.
Annotations
Optional content annotations.
CancellationNotification
Final notifications/cancelled payload.
ExactNonNegativeJsonNumber
A bounded, exact, finite JSON number used by final progress notifications.
FinalCommonTypesSchema
Structural schema admission for the final common wire slice.
Implementation
Final implementation identity.
JsonInteger
A JSON integer retained without an implementation-width bound.
OpenMetadata
Open _meta values with typed access to final reserved keys.
RawIcon
A raw, structurally valid icon source. Rendering admission is deliberately separate.
RawIconSourceUri
A raw icon source URI with a dedicated data-image budget.
ResourceLink
A final resource_link content block.
TraceContext
Bounded trace-context fields preserved from open metadata.
UntrustedCancellationReason
A peer-provided cancellation reason that deliberately has no raw string accessor, formatter, or serializer.

Enums§

AnnotationAudience
Annotation audience values.
CancellationRequestId
A peer cancellation request identifier.
CommonTypeError
A structural rejection at the protocol wire boundary.
CommonWireDirection
Direction of a final common-type wire envelope.
ContentBlock
Final common content discriminators.
EmbeddedResourceContents
Text or blob resource contents embedded in content.
IconTheme
Icon theme values admitted by the final schema.
LoggingLevel
Final MCP logging severities, aligned to RFC 5424 names.
OpaqueCursor
An opaque cursor where only absence means the end of a paginated result set.
SamplingContentBlock
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.