Expand description
Compiled host adapters and runtime policy for mcp-twill servers.
RFC 0019 host profiles compile an immutable native tool-surface snapshot into a separately hashed host snapshot. That snapshot drives generated VS Code artifacts and either the closed process-envelope router or the typed in-process bridge. This crate also owns process-level runtime identity and the effect-aware retry policy a supervisor needs when it considers re-issuing a call.
Hot-replacement detection (noticing the server binary was swapped under
a live connection) is planned follow-up work in this crate; nothing here
populates executable_hash yet.
Structs§
- Absent
Context Policy - Host
Adapter Profile - Host
Adapter Profile Builder - Host
Adapter Profile Decl - Host
Adapter Snapshot - Host
Application Rejection - Host
Call Envelope V1 - Host
Call Result V1 - Host
Confirmation Policy - Host
Guidance Projection - Host
InProcess Adapter - Host
Invocation Limits - Host
Process Entrypoint Error - Host
Process Limits - Host
Process Router - Host
Recovery Action - Host
Result Projection - Host
VsCode Version V1 - Runtime
Host - Wraps a server with the identity facts a process-level host can observe.
- Unsupported
Context Policy - VsCode
Engine Range - VsCode
Generated Artifacts - VsCode
Version
Enums§
- Host
Adapter Kind - Host
Application Error Dialect - Host
Call Outcome V1 - Host
Confirmation Authority - Host
Confirmation Trigger - Host
Context Reason - Host
Framework Error Dialect - Host
Guidance Segment - Host
Invocation Context V1 - Host
Invocation Transport - Host
Runtime Facts V1 - Host
Success Dialect - Host
Tool Name Projection - Retry
Decision - The host’s answer to “may this call be re-issued after an ambiguous failure?”.
Functions§
- generate_
vscode_ artifacts - retry_
decision - Effect-aware retry policy, reading both the effect and the idempotency declaration from the plan. Pure and read effects are always retryable. Writes, deletes, process execution, and network calls are retryable only when the command declared itself idempotent in the catalog; composites take the most restrictive answer among their parts.