calllint

v0.2.1
io.github.calllint/calllint Checked 11 hours ago Published 1 month ago

Static 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.

ParameterTypeDescription
path *stringPath 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.

ParameterTypeDescription
json *stringRaw MCP config JSON.
surfacestringOptional 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.

ParameterTypeDescription
json *stringCurrent MCP config JSON to verify.
baselinestringOptional baseline JSON (calllint.baseline.v0). If omitted, a baseline is built from `json` and returned for first-time approval.
surfacestringOptional surface label.

explain_finding

Return the full evidence-backed explanation for the servers in an MCP config JSON (why each verdict was reached).

ParameterTypeDescription
json *stringMCP config JSON.
serverstringOptional server name to explain (default: all).
surfacestringOptional 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.

ParameterTypeDescription
host *stringTarget 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.

ParameterTypeDescription
modestringCI 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…

ParameterTypeDescription
limitnumberOptional cap on the number of matches returned (default: all matches).
querystringResource 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…

ParameterTypeDescription
canonicalName *stringThe resource's canonical name / slug, e.g. mcp-registry/io.github.example (as returned by calllint_search_agent_tools).
versionstringOptional 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…

ParameterTypeDescription
canonicalName *stringThe resource's canonical name / slug (as returned by calllint_search_agent_tools / calllint_get_adoption_contract).
expectedArtifactDigeststringOptional sha256:<64-hex> artifact digest to assert against the contract; a mismatch aborts.
expectedContractDigeststringOptional sha256:<64-hex> contract digest to assert + record as plan provenance; a mismatch aborts.
expectedVersionstringOptional exact version to assert; a mismatch aborts with no plan.
hoststringTarget host for the install plan: claude-code, cursor, or windsurf. Omit to get the local decision only (no plan).
hostConfigPathstringOptional 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…

ParameterTypeDescription
approvalDigest *stringThe 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 *stringThe resource's canonical name / slug (the same one you prepared).
host *stringTarget host to write: claude-code, cursor, or windsurf. Required — an apply never guesses a host.
expectedArtifactDigeststringOptional sha256:<64-hex> artifact digest to assert against the contract; a mismatch aborts.
expectedContractDigeststringOptional sha256:<64-hex> contract digest to assert + record as plan provenance; a mismatch aborts.
expectedVersionstringOptional exact version to assert; a mismatch aborts with nothing written.
hostConfigPathstringPath 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…

ParameterTypeDescription
canonicalName *stringThe resource's canonical name / slug to verify.
host *stringHost whose config to read: claude-code, cursor, or windsurf.
hostConfigPathstringPath to the host's MCP config to read. Optional for claude-code and windsurf; REQUIRED for cursor, whose config is project-scoped.
receiptstringOptional 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…

ParameterTypeDescription
approvalDigeststringOptional 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…
hostsarrayOptional 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.