calllint
v0.2.1Static preflight safety gate for MCP servers — scan configs before you run them.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan_mcp_config_path
Scan an MCP config file on disk and return the full ScanReport (verdict + evidence). Static; never executes the server.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the MCP config file. |
scan_mcp_config_json
Scan MCP config JSON text and return compact decisions (one per server: verdict, fingerprint hash, reason codes). Static; never executes the server.
| Parameter | Type | Description |
|---|---|---|
json * | string | Raw MCP config JSON. |
surface | string | Optional surface label (e.g. .cursor/mcp.json). |
verify_baseline
Compare a fresh scan of MCP config JSON against a recorded baseline and report drift / rug-pull signals. Static; never executes the server.
| Parameter | Type | Description |
|---|---|---|
json * | string | Current MCP config JSON to verify. |
baseline | string | Optional baseline JSON (calllint.baseline.v0). If omitted, a baseline is built from `json` and returned for first-time approval. |
surface | string | Optional surface label. |
explain_finding
Return the full evidence-backed explanation for the servers in an MCP config JSON (why each verdict was reached).
| Parameter | Type | Description |
|---|---|---|
json * | string | MCP config JSON. |
server | string | Optional server name to explain (default: all). |
surface | string | Optional surface label. |
generate_agent_rule
Generate the CallLint agent-safety rule text for a host (e.g. claude, cursor, copilot, agents). Paste into the host's rules file.
| Parameter | Type | Description |
|---|---|---|
host * | string | Target host. One of: claude, agents, cursor, copilot, codex, gemini, windsurf, cline, command. |
generate_ci_gate_snippet
Generate a GitHub Actions workflow (.github/workflows/calllint.yml) that gates a repo on its agent-tool surface. mode=drift fails on approved-state drift; mode=scan-all is report-only.
| Parameter | Type | Description |
|---|---|---|
mode | string | CI gate mode. One of: drift, scan-all. Default: drift. |
calllint_guard_external_tools
CallLint is present in this session as a static, deterministic preflight gate for MCP servers and agent tools (a pure delegator, ADR 0025). It reads an MCP or agent-tool config and returns an evidence-backed verdict — SAFE means no blockers observed, REVIEW means human judgment required, BLOCK means a dangerous surface, UNKNOWN means it cannot verify statically; UNKNOWN is never SAFE. Verdicts come from deterministic rules, never an LLM, and CallLint never executes the server or tool it judges. Its tools: scan_mcp_config_json and scan_mcp_config_path (a verdict for a config), explain_finding…
calllint_search_agent_tools
Search already-published CallLint Trust Pages for MCP servers and agent tools by name, and get each match's existing verdict. Deterministic name match only (exact, then prefix, then substring; alphabetical within a tier) over a committed index — no LLM, no fuzzy or semantic ranking, and no new score. Each result carries the page's shipped verdict verbatim — SAFE (no blockers observed), REVIEW (human judgment required), BLOCK (a dangerous surface), or UNKNOWN (could not verify statically; UNKNOWN is never SAFE) — plus its boundary-safe label, artifact digest, observed-at time, and Trust P…
| Parameter | Type | Description |
|---|---|---|
limit | number | Optional cap on the number of matches returned (default: all matches). |
query | string | Resource name (or fragment) to match, e.g. mcp-registry/io.github.example. Blank returns every indexed page, sorted by name. |
calllint_get_adoption_contract
Fetch the committed CallLint Agent Adoption Contract for a published MCP server / agent tool, by its canonical name (the same canonicalName/slug calllint_search_agent_tools returns). Returns the exact machine contract CallLint already published: the pinned subject (package, version, artifact digest), the public observation (verdict + boundary-safe label), the authority delta, and the recommendedNextAction telling you how to proceed (usually calllint_prepare_safe_install with the exact version/artifact/contract digests to assert). The contract is served verbatim from a committed bundle — no n…
| Parameter | Type | Description |
|---|---|---|
canonicalName * | string | The resource's canonical name / slug, e.g. mcp-registry/io.github.example (as returned by calllint_search_agent_tools). |
version | string | Optional exact version to require; a mismatch returns not-found (never a different version). |
calllint_prepare_safe_install
Locally and statically PREPARE a safe install of a published MCP server, re-deciding its trust verdict on THIS machine before anything is written. Give the canonical name (and ideally the exact version/artifact/contract digests from calllint_get_adoption_contract to assert you got the target you meant). This never executes the server and never writes any config — it synthesizes the exact pinned launch, re-runs the full CallLint gateway locally (resolve → authority manifest → toxic-flow fold → policy decision), and, when you name a host, computes the inert install plan you would later a…
| Parameter | Type | Description |
|---|---|---|
canonicalName * | string | The resource's canonical name / slug (as returned by calllint_search_agent_tools / calllint_get_adoption_contract). |
expectedArtifactDigest | string | Optional sha256:<64-hex> artifact digest to assert against the contract; a mismatch aborts. |
expectedContractDigest | string | Optional sha256:<64-hex> contract digest to assert + record as plan provenance; a mismatch aborts. |
expectedVersion | string | Optional exact version to assert; a mismatch aborts with no plan. |
host | string | Target host for the install plan: claude-code, cursor, or windsurf. Omit to get the local decision only (no plan). |
hostConfigPath | string | Optional path to the host's MCP config to plan against (read-only). Omit to plan against an absent (fresh) config. |
calllint_apply_prepared_install
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 B…
| Parameter | Type | Description |
|---|---|---|
approvalDigest * | string | 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. |
canonicalName * | string | The resource's canonical name / slug (the same one you prepared). |
host * | string | Target host to write: claude-code, cursor, or windsurf. Required — an apply never guesses a host. |
expectedArtifactDigest | string | Optional sha256:<64-hex> artifact digest to assert against the contract; a mismatch aborts. |
expectedContractDigest | string | Optional sha256:<64-hex> contract digest to assert + record as plan provenance; a mismatch aborts. |
expectedVersion | string | Optional exact version to assert; a mismatch aborts with nothing written. |
hostConfigPath | string | 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. |
calllint_verify_tool_install
Verify that an MCP server install is actually in place and unchanged, by reading the host's config and comparing it against the published contract's exact pinned target. Read-only: it writes nothing, runs no scan, applies no policy, decides no verdict, and never starts or connects to the installed server. It reports whether the config exists and parses, whether the expected server entry is present, and whether that entry still pins the exact package@version the contract names (drift is reported, never accepted). Optionally pass the decision receipt from calllint_apply_prepared_install to also…
| Parameter | Type | Description |
|---|---|---|
canonicalName * | string | The resource's canonical name / slug to verify. |
host * | string | Host whose config to read: claude-code, cursor, or windsurf. |
hostConfigPath | string | Path to the host's MCP config to read. Optional for claude-code and windsurf; REQUIRED for cursor, whose config is project-scoped. |
receipt | string | Optional decision-receipt JSON text (the `receipt` calllint_apply_prepared_install returned) to structurally verify alongside the config. |
calllint_enable_continuous_guard
List exactly what CallLint's continuous protection would install, so a person can decide whether to enable it. Continuous protection is persistent: unlike a one-time install it adds CallLint components to the project (a session-start hook, a git hook, or a CI workflow, depending on host) that re-decide the approved agent-tool authority surface, detect drift, and re-check upgrades. Because it is persistent it is always a separate decision, never bundled into an install: this tool writes nothing, enables nothing, and installs nothing even if you pass approvalDigest. It returns every component wi…
| Parameter | Type | Description |
|---|---|---|
approvalDigest | string | Optional sha256:<64-hex> disclosureDigest a person already reviewed. Used only to detect that the component set changed since they saw it; it does not authorize an install, and a matching digest still… |
hosts | array | Optional guard hosts to disclose (git, git-pre-push, github, copilot, claude-code, gemini, vscode). Omit to disclose every supported host; an unrecognized host is rejected rather than guessed. |