CLI and MCP
Ranky from a terminal, a CI pipeline and a coding agent. The snippets name shop.example.com: put your site's address in its place.
Command line
ranky check runs Ranky's checks on any site from your machine, with no account. With an API key, ranky scan and ranky issues work with your sites from a terminal or any CI pipeline. A site is named by its address or its ID.
# No account or key: runs Ranky's checks from your machine. npx @useranky/cli check https://shop.example.com
It exits with 1 when the quality gate fails (--fail-on, or else the site's own gate), 2 when a command is used wrongly and 3 when Ranky couldn't do it, so a pipeline stops on a regression.
GitHub Action
A step that scans a preview after it is deployed and fails the job when the quality gate fails. Keep a key with Read, Run scans and Report deploys in the repository's secrets as RANKY_API_KEY. Without url it runs a full scan of the site.
- name: Check the preview with Ranky
uses: useranky/scan-action@v1
with:
api-key: ${{ secrets.RANKY_API_KEY }}
project: shop.example.com
url: ${{ steps.deploy.outputs.preview-url }}
fail-on: criticalMCP server for coding agents
Lets Claude Code, Cursor or another agent read your sites' issues with their fix guidance, see what changed, and compare a preview with production. Make a key for the agent: Read lets it look, and Run scans and Report deploys let it start scans and compare previews. Scans count against the plan's pages like any other.
claude mcp add ranky \ --env RANKY_API_KEY=rk_… \ -- npx -y @useranky/mcp
Its tools
- list_projects
- The sites the key sees, with health and open issues.Needs Read
- get_project_health
- Score, open issues by severity and the latest scan.Needs Read
- list_issues
- Filtered by status, severity, rule or template, most severe first.Needs Read
- get_issue
- What happened, the evidence, why it matters and how to fix it.Needs Read
- get_changes
- Changed titles, canonicals, robots and more since a date or a deploy.Needs Read
- trigger_scan
- A full scan, or a verify scan of some pages, inside the plan's pages.Needs Run scans
- get_scan_report
- New, came back and resolved, and the quality gate.Needs Read
- compare_preview
- Scans a preview's address and reports what it would change.Needs Report deploys