calllint_apply_prepared_install
Applies an approved install plan to write a pinned MCP server into a host config after verifying the approval digest, aborting before any write on mismatch.
Instructions
Apply an install plan you already prepared and explicitly approved, writing the pinned MCP server into a host's config. This is a WRITE — it is the only CallLint tool that changes a file, and it refuses unless you name a supported host AND pass approvalDigest equal to the exact planDigest calllint_prepare_safe_install returned. Before writing it re-runs the full local gateway from scratch and recomputes the plan: if the host config or the pinned target changed since you prepared, the digest differs and the apply aborts with nothing written. A public BLOCK/UNKNOWN/unsupported route, a local BLOCK/UNKNOWN decision, or an exact-target mismatch all refuse before the write. The write itself is delegated to CallLint's shipped apply engine, which backs up the current config, writes atomically under a lock, re-reads to verify, and rolls back on any failure — so a failed apply leaves the original config in place. Outcomes: APPLIED_AND_VERIFIED (written and verified, with a decision receipt returned inline for later verification), ABORTED_ON_MISMATCH, BLOCKED, LOCAL_PREFLIGHT_REQUIRED, or UNSUPPORTED. This is a one-time protected setup: it installs no CallLint components, leaves no persistent CallLint files, and never starts, connects to, authenticates to, or tests the server it installed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Target host to write: claude-code, cursor, or windsurf. Required — an apply never guesses a host. | |
| canonicalName | Yes | The resource's canonical name / slug (the same one you prepared). | |
| approvalDigest | Yes | The exact sha256:<64-hex> planDigest calllint_prepare_safe_install returned and you reviewed. Required; a mismatch against the freshly recomputed plan aborts with nothing written. | |
| hostConfigPath | No | Path to the host's MCP config to write. Optional for claude-code and windsurf (their own config path is used); REQUIRED for cursor, whose config is project-scoped. | |
| expectedVersion | No | Optional exact version to assert; a mismatch aborts with nothing written. | |
| expectedArtifactDigest | No | Optional sha256:<64-hex> artifact digest to assert against the contract; a mismatch aborts. | |
| expectedContractDigest | No | Optional sha256:<64-hex> contract digest to assert + record as plan provenance; a mismatch aborts. |