Skip to content

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.

Terminal window
npx skills add Rushi-Balapure/Insidia-Labs-Argus

npx skills needs Node.js 22 or later; on Node 20 it exits with an error before installing anything. Check with node --version.

  1. Tell the agent which hosts it may test. Start with localhost.
  2. Paste:
Test this app with Insidia. Only scan localhost, and open the report when you're done.
  1. Expect these steps, in order:
    • Install from GitHub with uv tool install, or pipx if uv is missing. See Install.
    • Run insidia init if insidia.yaml is absent.
    • Edit targets so they match your app. Leave scope on localhost unless you named another host.
    • Run insidia doctor, then insidia scan --policy L1 --yes.
    • Read .insidia/runs/<run-id>/findings.json.
    • Run insidia report --open.

Rules for the agent:

  • Do not add a host you did not name.
  • Do not set authorized: true on 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.