Documentation
Cumulus audits how easily AI agents can discover, access, understand and buy from a website. It fetches raw HTML, renders the page in headless Chromium, then walks the links the way a task-driven agent would — find pricing, extract plans, locate signup and docs, reach checkout — and produces a score out of 100 with evidence for every check.
The dashboard UI and the programmatic interfaces (REST, MCP) consume the same reports: one engine, one data model.
Quickstart
Start an audit with one POST. The response is an audit id; progress streams over SSE; the finished report lands on the record endpoint.
curl -s -X POST http://localhost:3000/api/v1/audits \
-H 'content-type: application/json' \
-d '{"url":"https://example.com"}'
# → {"id":"a5f3…","status":"running","pct":2,…}
curl -N http://localhost:3000/api/v1/audits/a5f3…/events
# event: progress {"stage":"Reading robots.txt","pct":14,…}
# event: done {"status":"complete","report":{…}}
curl -s http://localhost:3000/api/v1/audits/a5f3… | jq .report.scoreA finished audit is available at /report/<id>. The zip your team ships is GET /api/v1/audits/<id>/fix-kit.
REST API
Base path /api/v1 — legacy aliases without the v1 segment (POST /api/audits) behave identically. When CUMULUS_API_KEY is set, all API and MCP calls require Authorization: Bearer <key>.
| Method & path | Purpose | Notes |
|---|---|---|
POST /audits | Start an audit | Body {"url":"example.com"}. Returns 202 + id. Refused targets (IP literals, private ranges, internal hostnames, credentials, non-standard ports) return 400 with a reason. 429 = origin cooling down (20 s), 503 = capacity (3 concurrent). |
GET /audits | List recent audits | ?limit=15, ?host=example.com |
GET /audits/:id | Audit record | Full report once complete plus history (previous audits of the same host). ?logs=1 includes progress log lines. |
GET /audits/:id/events | SSE progress | event: progress → event: done. Heartbeat every 15 s. |
GET /audits/:id/findings | Findings | Fail / partial checks with evidence + remediation detail. ?detail=1 embeds problem/impact/fix/acceptance/verification. |
GET /audits/:id/fix-kit | Fix kit zip | Per-finding Markdown + README.md (fix order) + report.json. |
DELETE /audits/:id | Cancel | Graceful: finishes the current step, marks the audit cancelled. |
GET /history?host=… | Per-host history | Finished audits with scores — for deltas across runs. |
GET /meta | Registry | All 33 checks, categories, statuses, weights, limits — this page renders from it. |
GET /openapi.json | Machine-readable spec | OpenAPI 3.1. |
MCP (Model Context Protocol)
An MCP server is mounted at POST /mcp using JSON-RPC 2.0 (streamable-HTTP style, stateless). Tools:
| Tool | Input | Returns |
|---|---|---|
start_audit | {url} | Audit id to poll |
get_audit_status | {id} | Stage, percent, readiness |
get_report | {id, terse?:bool} | Score, categories, coverage, per-check evidence, journey, stats |
list_findings | {id, severity?:word} | Failures/partials with evidence; blocked/inconclusive items under openItems |
get_fix_kit | {id} | Zip download URL + contents description |
check_catalogue | {} | The 33 checks + scoring model |
Desktop agents speak stdio; use the bundled bridge (scripts/mcp-stdio.mjs, line-delimited JSON-RPC over stdin/stdout):
{
"mcpServers": {
"cumulus": {
"command": "node",
"args": ["<path>/scripts/mcp-stdio.mjs"],
"env": {
"CUMULUS_MCP_URL": "http://localhost:3000/mcp",
"CUMULUS_API_KEY": "…"
}
}
}
}Status semantics
Seven outcomes. Only three move the score. An untested check is never a failure.
| Status | Credit | Meaning |
|---|---|---|
| Pass | 1.0 | Verified working with evidence. |
| Partial | 0.5 | Works with caveats (thresholds partially met). |
| Fail | 0 | Verified broken. |
| Blocked | — | Couldn't test: robots.txt disallow, challenge page, or a prerequisite failed (e.g. pricing never found). |
| Inconclusive | — | Tested, but the evidence didn't settle it (e.g. 429 rate limit). |
| Error | — | The audit itself hit a network/timeout failure for this check. |
| N/A | — | Genuinely doesn't apply (e.g. no pricing surface on a non-commercial site) — excluded from coverage. |
Scoring model
Coverage is always shown beside scores: a 90 made of one lucky check is not the same as a 90 made of thirty. Categories with nothing evaluated report n/a and don't drag the mean.
The 33 checks
Registered live from GET /api/v1/meta — this page can never drift from the engine.
| ID | Check | Severity | Category | Why it matters |
|---|
Safety model
Every submitted URL is treated as untrusted. Cumulus reads; it never writes.
- SSRF guards: IP literals, private/loopback/link-local/CGNAT and reserved ranges, internal hostnames (localhost, *.local, *.internal…), non-standard ports, URLs with embedded credentials — all refused before any request is made. DNS is resolved once, validated, and the connection is pinned to the validated address, so a rebinding race can't bounce a fetch inward. Every redirect hop is re-validated.
- Browser containment: headless Chromium runs with a default-deny DNS resolver (--host-resolver-rules) plus a per-request route guard that re-checks every URL the page tries to load.
- robots.txt: parsed and honoured for every fetch whose purpose is to simulate agents. Disallowed paths produce Blocked results with the reason — never silent failures.
- Limits: total wall-clock budget (150 s), ≤ 14 crawl pages, response size caps (3 MB raw / 6 MB decoded), per-request timeouts, politeness delays, ≤ 3 concurrent audits, 20 s per-origin cooldown.
- Never writes: no form submissions, no account creation, no payments — checkout "success" is defined as a payment interface loaded, then the auditor stops.
Self-hosting
npm install # also downloads Chromium (playwright) npm start # http://localhost:3000 # configuration (all optional) PORT=3000 HOST=0.0.0.0 # bind address CUMULUS_API_KEY=… # require bearer auth on /api + /mcp CUMULUS_DATA_DIR=data # audit history persistence (JSON lines) CUMULUS_ALLOW_PRIVATE=1 # TEST-ONLY: allow local targets for development
Node ≥ 20. Chromium ships via Playwright. Reports persist under CUMULUS_DATA_DIR/audits.jsonl; the in-memory index keeps recent records hot.