Skip to main content

Module protocol

Module protocol 

Source
Expand description

Transport-neutral versioned request and response envelopes. Transport-neutral Glass request and response envelopes.

MCP keeps its JSON-RPC framing, but daemon clients and embedded callers use these envelopes for the operation payload. The envelope is intentionally small: transport-specific framing, streaming, and authentication remain outside this contract.

Structs§

GlassError
Structured failure that can be carried across transports without parsing text.
GlassRequest
Canonical operation request shared by supported transports.
GlassResponse
Canonical operation response shared by supported transports.
MutationLeaseRef
A request-independent mutation lease reference.
RetryGuidance
Bounded recovery guidance attached to every canonical failure.
TaskCompilePayload
Typed payload carried by a task.compile request.
TaskCompileResult
Typed successful result for a task.compile operation.
TaskValidationResult
Typed successful result for browser-free Task Protocol validation.

Enums§

ErrorPhase
Phase in which a public operation stopped.
ProtocolError
Validation failure for the canonical protocol envelope.
RetryClassification
Stable retry classification for agent recovery.

Constants§

GLASS_PROTOCOL_VERSION
Version of the canonical Glass operation envelope.
TASK_COMPILE_OPERATION
Canonical transport operation for browser-free Task Protocol compilation.

Functions§

compile_task_request
Decode and compile a task.compile request without browser access.
compile_task_result
Decode and compile a task.compile request into a typed response payload.