SuperAPI AI Directory

pour-cli

pour-cli is a command-line tool based on the pour engine for running WCAG 2.2 accessibility audits on any URL. It loads pages through headless Chrome, runs rules against the live DOM, and outputs rules, severity, WCAG success criteria, CSS paths of failing elements, and remediation suggestions. Issues that cannot be determined are marked as "needs manual review," and the exit code can be used directly as a CI gate. It supports visual simulation, static code checks, multi-page reports, post-login audits, and can be invoked by AI agents through the MCP protocol.

Open website

About this tool

pour-cli is a command-line tool for running WCAG 2.2 accessibility audits on any URL. It is powered by the pour engine, a clean-room WCAG engine written from scratch according to W3C specifications, and the same engine behind pour.dev.

Key capabilities

  • Live page audits: Pages are loaded in headless Chrome, the engine runs against the live DOM, and results are output to stdout, including rules, severity, WCAG success criteria, the exact CSS paths of failing elements, and remediation suggestions. Issues the engine cannot conclusively determine are reported as "needs manual review" rather than guessed. The exit code makes it usable as a CI gate out of the box.
  • Visual simulation: Use --filter to render a page as it would be experienced by users with a specific visual or sensory condition, and save it as a PNG. Color vision filters use the Brettel/Vienot/Mollon and Machado matrices (via DaltonLens), the same simulations provided by the pour extension. Filters and audits are mutually exclusive modes.
  • Static code checks:pour check reads HTML, JSX, TSX, Vue, Svelte, Angular, Liquid, and Nunjucks files and runs the engine's markup rules without a browser, with each finding carrying the file, line, and column. Values from code (such as alt={name}), script-built markup, and content that template tags cannot determine are left undetermined and counted. Color contrast, target size, focus, and motion require a page in a browser, so they are left to pour <url>.
  • Multi-page reports:pour report breadth-first crawls a site from a given address (or audits the homepage of each domain in a list file), shows live progress in the browser, and finally generates a standalone HTML report. Ctrl+C stops it cleanly, and the same command can resume.
  • Post-login site audits: Log in by opening a window through the installed Chrome like a normal browser, while the audit itself continues to use the test build. The session is read only from that window into memory and used for this run, and is not written to disk. Staging sites with HTTP authentication can use --basic user:pass.
  • CI integration: Findings can land on the pull request itself. Comments on changed lines work for any repository; SARIF can be sent to GitHub code scanning;--format markdown can write comments for gh pr comment --body-file to use.
  • MCP service:pour mcp exposes the same audit, sequential focus order, and simulation screenshots as tools to AI agents via the Model Context Protocol over stdio. Any MCP client can use it. Tools include:pour_audit(audit a URL, returning totals, each failing rule, and up to five elements and fixes),pour_focus_order(keyboard focus order, with each stop carrying an accessible name and CSS path, flagging positive tabindex, and tabindex of -1 making native controls unreachable),pour_screenshot(page PNG, either normal or via any visual, sensory, motion, or structural simulation). Each tool accepts a viewport, a scroll toggle, and a settle delay.
  • Agent Skill: a SKILL.md that tells the agent how to handle findings: check source files before rendered pages, record the viewport and scroll state for every number, fix in source and audit again, separate findings that need review from violations, never use aria-hidden or exclude hidden findings, and never call a page compliant just because one run was clean.

Usage

Requires Node 18+ and an installed Chrome (or Chromium, Edge). The CLI drives an existing browser via puppeteer-core and does not download a browser on install. You can use --browser or PUPPETEER_EXECUTABLE_PATH to point to another binary.

Exit codes: 0 clean, 1 has findings (according to --fail-on), 2 error.

A URL without a scheme first tries https, then falls back to http when the TLS handshake fails, the same as browser address bar behavior.

When the target is a .html file, the file is served over a loopback port during the audit so that relative and root-relative resources load as they would in production.--root specifies the site root folder.file:// URLs can still be used, but with that caveat.

pour check 's --bp、--fail-on、--level、--max-nodes and --format apply;--no-css skips reading local stylesheets linked from the page.

In

pour report , an address with a path restricts crawling to that path;--whole-site also follows links on it. An address on a subdomain restricts crawling to that subdomain and itself; a start on the main host covers the whole site and its subdomains, and--same-host narrows it to a single host.--login、--basic and --browser apply as above.

--level quiet limits the log to one total line; the exit code still carries the verdict.

In the MCP server, each tool accepts url or a disk file path. Paths are served over a loopback port, the same as pour index.html , so that relative resources load;root specifies the site root. Template or component paths (.jsx、.vue、.liquid , etc.) are read as source by the static channel, returning the line and column of each finding and explicitly stating that it was not rendered. Paths can only reach within the server's startup directory, andPOUR_MCP_ROOT can point to another location. When started at the filesystem root, the server rejects paths. The server loads only http and https and rejects file://.

In Claude Code, the plugin brings the skill and the MCP server together and runs the server via npx, with nothing else to install.

When to use

  • A developer quickly audits a web page for accessibility issues in the terminal.
  • As a gate in a CI pipeline to block accessibility regressions.
  • Let an AI agent perform audits, check focus order, and take screenshots via MCP.
  • Generate an overall accessibility report for a multi-page site.
  • Audit pages that require login or staging sites with HTTP authentication.

Limitations

  • Requires Node 18+ and an installed Chrome/Chromium/Edge.
  • Audit results depend on page state: responsive pages serve different content at different breakpoints, and the viewport is part of the result;--scroll will change numbers. Comparing two runs is only meaningful at the same width.
  • Static checks cannot determine values coming from code, markup built by scripts, and unknown content in template tags; color contrast, target size, focus, and motion require a browser.
  • The MCP server cannot log in for login pages; pages after login must be audited from the terminal.
  • The MCP server rejects file:// paths.
  • Installation does not overwrite edited copies unless using --force.
  • pour is a UK registered trademark (UK00004432542). The MIT license covers the code, not the name; forks must use their own name.