# QAJev > QAJev tests websites, mobile apps and games the way a person uses them. You describe what a visitor should be > able to do in plain English; Jev, a small and fast model, tries it in a real Chrome (desktop and phone); > QAJev then judges the result from the page itself and writes a report. It is a CLI (`qajev`) and an MCP server > (`qajev mcp`) for AI coding agents. Open source (MIT), macOS and Linux. This file is for AI agents. If a person told you to "use QAJev" or "check qajev.com", read on. ## 1. Is it already installed? - **MCP:** look in your tool list for tools named `qa_smoke`, `qa_check`, `qa_run_suite`, `qa_play`, `qa_doctor` (server name `qajev`; some clients show them as `mcp__qajev__qa_check`). If you have them, skip to step 4. - **CLI:** run `qajev doctor`. If it prints a setup report, QAJev is installed; it also says what is missing (a key, Chrome). In Claude Code, `claude mcp list` shows whether the `qajev` server is connected. ## 2. Install (once per machine) Needs macOS or Linux (on Windows: WSL) and Google Chrome or Chromium. The installer adds uv (which brings its own Python) when it is missing, then QAJev, and puts it on the PATH: ```bash curl -LsSf https://qajev.com/install.sh | sh # Windows, in PowerShell (installs it in WSL): irm https://qajev.com/install.ps1 | iex # with uv already there: uv tool install git+https://github.com/hanamorilabs/qajev # or: pipx install git+https://github.com/hanamorilabs/qajev (Python 3.12+) ``` Jev needs one API key, kept in `~/.qajev/.env` (ask the person for it; never invent or print keys): ```bash mkdir -p ~/.qajev && echo 'OPENROUTER_API_KEY=sk-or-...' >> ~/.qajev/.env # or TYPESAFE_API_KEY=... (TypeSafe, Jev's home: https://docs.typesafe.ai); with both keys set, OpenRouter is used # or Cloudflare's open Clef models instead of Jev: CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_API_TOKEN, QAJEV_JEV_PROVIDER=cloudflare ``` Then `qajev doctor` checks keys (without showing them), Chrome, a free port and the machine's load. ## 3. Connect the MCP server Claude Code: ```bash claude mcp add -s user qajev -- qajev mcp ``` Codex (`~/.codex/config.toml`): ```toml [mcp_servers.qajev] command = "qajev" args = ["mcp"] ``` Cursor, Claude Desktop and other clients (their MCP JSON settings): ```json { "mcpServers": { "qajev": { "command": "qajev", "args": ["mcp"] } } } ``` If the client cannot find `qajev`, use the full path from `which qajev`. New tools appear after the session restarts or the server reconnects (`/mcp` in Claude Code). Without MCP, run the same things with the `qajev` CLI and `--json`. ## 4. Use it | You want to know | MCP tool | CLI | Cost | |---|---|---|---| | Is anything obviously broken? (errors, broken links, missing titles) | `qa_smoke` | `qajev smoke URL` | free | | Can a visitor do one thing? | `qa_check` | `qajev check URL --goal "..." --expect-text "..."` | about $0.001-0.01 | | Do several things work, in order? | `qa_run_suite` | `qajev run suite.yaml` | a few cents | | Does a project still meet its stored objectives? | `qa_project_run` | `qajev run --project NAME` | a few cents | | Does a mobile app, a game or a native app work? | `qa_play` | `qajev play ios:BUNDLE_ID` / `android:PACKAGE` / `path/to/game` / `path/to/app --suite app.yaml` (a suite's `app:` starts an app with a QAJev bridge) | a few cents | | What did a run find? | `qa_report`, `qa_screenshot` | `qajev report RUN_DIR` (or a cloud run's `r_...` id) | free | | What is running, and can I stop it? | `qa_jobs`, `qa_job`, `qa_stop` | `qajev jobs`, `qajev stop ID` | free | | Which QAJev Cloud runs ran lately, and how did they end? | `qa_cloud_runs` | `qajev cloud-runs --hours 24` | free | | Run again only what failed last time | `qa_rerun` | `qajev rerun JOB --failed` | as the run | | Is the setup right? | `qa_doctor` | `qajev doctor` | free | | Where do runs go? Switch to the cloud or back | `qa_mode` | `qajev mode [local\|cloud\|auto\|dashboard]` | free | How to write a check: 1. Start with a free smoke crawl; fix what it finds first. 2. One intention per check, ending with "Stop when ...". Good: "Find what the Pro plan costs per month. Stop when that price is visible." Bad: "Test the pricing page." 3. Always give expectations (`expect_text`, `absent_text`, `expect_url`, `expect_js`). Jev saying "done" is only a hint; the verdict comes from the checks. With Clef as the decision model (it reads images), `expect_looks` judges plain statements from the final screenshot (a cut-off button, a canvas, an image label), and `vision: true` shows Clef the screen at every decision. Jev reads text only: without Clef both are refused. For a game or a demo, a suite's `expect.load: {ready: , max_ms: 10000}` times the page from its navigation to its first playable frame, on a cold cache (`failed: ` fails it at once). `expect.input: {name, region, do: [hooks], min_changed}` holds when the `do` hooks (such as a `drag:` hook, a real mouse drag) change the region by at least `min_changed` more than the same time with no input. `expect.motion: {name, region, seconds, frames, max_gap_ms?, looks?: [...]}` captures a sequence: the region must keep moving, the main thread's animation frames must come without a gap over `max_gap_ms` (not with `do`: give the gaps their own test), and Clef judges each `looks` statement (such as "no ghost trails") on a sheet of the frames. `expect.sweep: {name, settings: [{name, do: [hooks]}], wait?, banners?: [css]}` chooses each setting in turn: after each one, the page must log no new error and show no banner. Each setting is its own check. 4. Give every value Jev must type, and start from a URL close to the target. 5. Say what each test proves: `about` on every test, and `says` (plain words) on every `js`, `url_regex`, `fetch` or `command` check (`says` with `expect_js` on `qa_check`). Without them the test is NOT DESCRIBED and the gate is INCOMPLETE, never PASS. A planted fault, a test meant to fail, names its check: `expect_fail: ""` (CLI `--expect-fail`). A caught fault keeps `outcome: "fail"` and gets `graded: "pass"` when only that check fails. A passing test or failure on another check gets `graded: "fail"` (gate FAIL). Reports open with this test plan. Lint a suite first with `qa_plan` (CLI `qajev plan FILE`): free, no browser, and it lists the tests that are NOT DESCRIBED, and the tests whose only checks say a text is absent (ABSENT ONLY: a blank page passes them, so add a text or js check that must be there), and the tests whose goal asks Jev to press a key (PRESSES KEYS: Jev cannot, so press it in a `key:` hook). 6. Name the approved test plan the run follows: `plan:` in a suite, or `plan` on any run tool (CLI `--plan FILE`). Its last line is "Approved by the Orchestrator