Use a coding agent
The CLI is built so an agent can run it without a custom integration. The skill is skills/insidia/SKILL.md.
npx skills add Rushi-Balapure/Insidia-Labs-Argusnpx skills needs Node.js 22 or later; on Node 20 it exits with an error before installing anything. Check with node --version.
- Tell the agent which hosts it may test. Start with localhost.
- Paste:
Test this app with Insidia. Only scan localhost, and open the report when you're done.- Expect these steps, in order:
- Install from GitHub with
uv tool install, orpipxif uv is missing. See Install. - Run
insidia initifinsidia.yamlis absent. - Edit targets so they match your app. Leave scope on localhost unless you named another host.
- Run
insidia doctor, theninsidia scan --policy L1 --yes. - Read
.insidia/runs/<run-id>/findings.json. - Run
insidia report --open.
- Install from GitHub with
Rules for the agent:
- Do not add a host you did not name.
- Do not set
authorized: trueon a host you did not name. - Do not paste secret values into the chat. Evidence in the report is already masked.
- Do not send the target’s prompts to a service you did not configure.
The agent should treat exit code 2 as an incomplete run, not a pass, and 130 as a cancelled one. See exit codes.
insidia mcp is a local MCP server over stdio. It accepts newline-delimited JSON-RPC, as current MCP clients send, and the older Content-Length framing, and it negotiates protocol versions 2025-06-18, 2025-03-26, and 2024-11-05. Its tools are init, doctor, scan, findings, and report. scan does not take a URL. It runs only when confirmed is true and only against insidia.yaml.
A scope that is only localhost, 127.0.0.1, or ::1 can run that way. Any other host needs a switch the model cannot set: start the server with insidia mcp --allow-remote, or set INSIDIA_MCP_ALLOW_REMOTE=1 in the environment that launches it. confirmed: true is not that switch.
To automate the same scan, follow Run in CI. That guide covers runner setup, CLI installation, SARIF, and preserving reports after a failure.