Iris Code
v0.2.2Local code-quality rules, findings, preview-first safe fixes and gate results for coding agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
iris_schema
Report database tables, columns and relations read from repository schema code, with unresolved references and conflicts disclosed. Before writing a query, migration or model change, call this to get the real table and column names instead of guessing. Schema structure and usage for one named table are Free. Pass a saved project evidence_id for aggregate usage without rescanning. (Free)
| Parameter | Type | Description |
|---|---|---|
evidence_id | string | Saved project review returned by iris_check. Uses captured schema and usage without scanning. |
format | string | |
include_usage | boolean | Usage and warnings. One named table is Free. Use evidence_id from a project review for all tables. |
table | string | Optional physical table name, model identifier or schema-qualified table id |
iris_check
Report code-health findings for a file, folder, or workspace: every rule that fired, each with its line, severity, and a stable id you can pass to iris_fix_safe. Also reports which files import each checked file, the project health score, and the gate threshold. Use this before editing a file to see what else to re-check, or to answer whether code is ready to commit or push. One file and its direct importers are Free. A directory captures a project review using the current local allowance. Pass its inspection.evidence_id to reopen captured findings without rescanning. (Free file checks; signed…
| Parameter | Type | Description |
|---|---|---|
changed | boolean | Free verification integrity comparison of working-tree changes against HEAD, including deleted tests and weakened configuration. Does not start a score scan. |
evidence_id | string | Saved project review. Omit path to read its captured scope without a new scan or action. |
path | string | Path relative to the MCP root |
scope | string |
iris_explain
Explain a finding: the rule behind it, why it fired here, and what would satisfy it. Use this when you need the cause rather than the label, so a fix addresses the rule instead of silencing it. (Saved explanations included; fresh file explanations require Pro)
| Parameter | Type | Description |
|---|---|---|
evidence_id | string | Saved project review. Omit path to read its captured scope without a new scan or action. |
path | string | Path relative to the MCP root |
scope | string |
iris_gate
Report whether this project's configured quality gate would pass, and which files fail which rule. This is the same decision the pre-push hook and CI make, so use it to answer whether a push or build would be blocked. (Saved gate previews included; fresh enforcement requires paid access to this workspace)
| Parameter | Type | Description |
|---|---|---|
evidence_id | string | Saved project review. Omit path to read its captured scope without a new scan or action. |
path | string | Path relative to the MCP root |
scope | string |
iris_config
Report the rules this project actually enforces, as Iris Code resolves them: thresholds, scoring weights, gate limits, naming policy, and which folder is being analysed and why. Use this before suggesting a change, so your advice matches what the pre-push hook and CI block on rather than a general convention. (Free)
| Parameter | Type | Description |
|---|---|---|
path * | string | Path relative to the MCP root |
scope | string |
iris_fix_safe
Preview, then apply, only the changes Iris Code can prove safe: merge compatible imports, remove unused import bindings or statements, remove isolated debug statements, or remove literal-only unused variables, including proved multiline ranges. console.error and unused functions are never auto-fixed. Previews by default and returns a preview_token that a later apply must echo back; changed source requires a fresh preview. Refuses per finding with a reason: anything needing a name or a judgement stays your work, and a secret is never auto-fixed. One file is Free; folder and workspace scope need…
| Parameter | Type | Description |
|---|---|---|
path * | string | Path relative to the MCP root |
apply | boolean | Apply validated edits; false previews only |
finding_ids | array | Finding IDs returned by iris_check |
preview_token | string | Required with apply: true. Returned by a previous preview call, single-use, valid 10 minutes. Iris only applies an edit set it has already shown you. |
scope | string |
iris_refactor_plan
Report a refactor plan for a source file: proved mechanical fixes first, then located suggestions ordered by risk, with destinations from project conventions. Returns a baseline_id held in this session. Apply fixes, preserve behavior and exports, and verify after each move. One planned file remains Free. Fresh folder/workspace plans require sign-in and use one local project action on Free; paid local access is unmetered. The earned project baseline is saved locally. (Free)
| Parameter | Type | Description |
|---|---|---|
path * | string | Path relative to the MCP root |
scope | string |
iris_verify_refactor
Report verification of a refactor against the session baseline_id or git HEAD. Discovers changed and new workspace files even if omitted from files. Rejects packing, broken imports, new cycles, removed imported exports and new findings, and reports code-line movement, health scores, disabled checks and a correction instruction. Never supply before content. One-file verification remains Free. Verification of an earned multi-file baseline uses no additional action, including after allowance exhaustion; never supply a before-source snapshot. (Free)
| Parameter | Type | Description |
|---|---|---|
baseline_id | string | Session baseline returned by iris_refactor_plan or a failing iris_check; omit for disclosed git HEAD fallback |
files | array | Additional affected source paths. Changed/new files are discovered independently. |
path | string | Path relative to the MCP root |
scope | string |
iris_check_dependency
Report known vulnerabilities for this project's dependencies from OSV: severity, confidence, and the nearest fixed version, per package. Saved reports stay readable without refreshing. A fresh audit needs sign-in and network consent, and uses one local project action on Free. no_cache explicitly refreshes provider data. (Saved reports are Free; fresh audits use the current workspace allowance)
| Parameter | Type | Description |
|---|---|---|
path * | string | Path relative to the MCP root |
allow_network | boolean | Allow fresh registry and OSV lookups when no usable cache exists |
no_cache | boolean | Ignore the local dependency cache and require a fresh scan |
scope | string |
iris_check_package
Report whether one package is safe to add, BEFORE you add or upgrade it as a dependency: whether the version that would install has a known vulnerability, is reported malicious, is yanked, deprecated or a prerelease, or was published so recently it breaks this project's policy - and which version to install instead. Call this before every install command you run and before editing a manifest to add or bump a package. Pass ecosystem (npm, python, cargo, go, rubygems, nuget, maven), name, and optionally version (exact, a range, or a tag). If blocks is true, do not install that version; use sugge…
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | The registry: npm, python (PyPI), cargo (crates.io), go, rubygems, nuget or maven |
name * | string | Package name, e.g. "lodash", "@scope/pkg", "requests", "github.com/gin-gonic/gin", "org.apache.commons:commons-lang3" |
allow_network | boolean | Allow fresh registry and OSV lookups when no usable cache exists |
no_cache | boolean | Ignore the local package cache |
version | string | Optional. An exact version, a range such as ^1.2.0 or >=2,<3, or a tag such as latest. Omit to check what a bare install would pick. |