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§
- Glass
Error - Structured failure that can be carried across transports without parsing text.
- Glass
Request - Canonical operation request shared by supported transports.
- Glass
Response - Canonical operation response shared by supported transports.
- Mutation
Lease Ref - A request-independent mutation lease reference.
- Retry
Guidance - Bounded recovery guidance attached to every canonical failure.
- Task
Compile Payload - Typed payload carried by a
task.compilerequest. - Task
Compile Result - Typed successful result for a
task.compileoperation. - Task
Validation Result - Typed successful result for browser-free Task Protocol validation.
Enums§
- Error
Phase - Phase in which a public operation stopped.
- Protocol
Error - Validation failure for the canonical protocol envelope.
- Retry
Classification - 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.compilerequest without browser access. - compile_
task_ result - Decode and compile a
task.compilerequest into a typed response payload.