cli

v0.2.11
@auracheck-ai/cli Checked 4 days ago Published 9 days ago

AuraCheck CLI + MCP server for AI-driven whitebox testcase generation

The command is auracheck. If you had the old @sixseven-ai/cli installed globally, remove it first, otherwise npm stops with EEXIST … bin/sixseven: Your existing sign-in is reused (saved sign-ins for the old domain move over automatically). Your browser opens AuraCheck; sign in the usual way and click Allow the CLI. The CLI saves a personal token to ~/.auracheck/credentials (mode 0600; moved there automatically — and removed from ~/.sixseven/credentials — if that's where an older install left it).

Summary extracted from the README.

@auracheck-ai/cli

One install, two roles:

  • You use auracheck from the terminal to log in and bind a repo to an AuraCheck project.
  • Claude Code (or Cursor / Claude Desktop) uses auracheck mcp behind the scenes to read your source code, author whitebox testcases, run them, and read evidence — all without leaving the repo.

The command is auracheck. If you had the old @sixseven-ai/cli installed globally, remove it first, otherwise npm stops with EEXIST … bin/sixseven:

npm uninstall -g @sixseven-ai/cli
npm i -g @auracheck-ai/cli@latest
auracheck login

Your existing sign-in is reused (saved sign-ins for the old domain move over automatically).

Moved from @sixseven-ai/cli? That package is deprecated in favor of this one. Install @auracheck-ai/cli instead (npm uninstall -g @sixseven-ai/cli && npm i -g @auracheck-ai/cli); the command is now auracheck.

Upgrading from an older install? AuraCheck moved off sixseven-space.sprout.co.id / sixseven.sprout.co.id / sixseven-api.sprout.co.id (BytePlus, switched off 2026-11-09) to https://space.auracheck.ai.id. Updating and running auracheck/auracheck mcp (or sixseven/sixseven mcp) rewrites a saved sign-in pointed at one of those hosts to the new one automatically — same account, same token, nothing to re-enter. A committed .sixseven/config.json with the old baseUrl is corrected in memory for that run with a notice on stderr; update the file by hand to stop seeing it.

What's new in 0.2.4

  • auracheck.delete_testcase / auracheck.delete_feature — new MCP tools, dry-run by default (pass confirm: true to actually delete). See MCP tools exposed.
  • MCP tool names changed from sixseven.* to auracheck.* — restart your MCP client (Claude Code, Cursor, Claude Desktop) after upgrading so it re-reads the new tool list.
  • Credentials moved from ~/.sixseven/credentials to ~/.auracheck/credentials — migrated automatically on first run of this version — verified, then the old file (and ~/.sixseven if left empty) is removed. If ~/.auracheck/credentials already exists it wins; only hosts missing from it are merged in.
  • SIXSEVEN_* env vars renamed to AURACHECK_* (AURACHECK_HOME, AURACHECK_BASE_URL, AURACHECK_PROJECT_ID, AURACHECK_TOKEN, AURACHECK_DEBUG) — the old SIXSEVEN_* names still work as a deprecated fallback.

Quick start

1. Install the CLI

npm i -g @auracheck-ai/cli

2. Sign in with your browser

auracheck login

Your browser opens AuraCheck; sign in the usual way and click Allow the CLI. The CLI saves a personal token to ~/.auracheck/credentials (mode 0600; moved there automatically — and removed from ~/.sixseven/credentials — if that's where an older install left it). It acts as you — same projects, same permissions — doesn't expire, and you can revoke it any time under Profile → Active devices or with auracheck logout. auracheck auth status shows who you are signed in as (it never prints the token).

CI / headless: use a project CI token instead — Integrations → CI/CD Tokens (Project) → Generate token, then auracheck login --token 67ci_… (or auracheck auth --token 67ci_…, or the AURACHECK_TOKEN env var, deprecated alias SIXSEVEN_TOKEN). A project CI token only reaches its own project.

3. Run the wizard from your app's repo

cd /path/to/your/app
auracheck setup

The wizard will ask for:

  • AuraCheck platform URL — https://space.auracheck.ai.id (default; just hit Enter). This is the AuraCheck backend itself, not the URL of the app you want to test.
  • Sign-in — skipped when auracheck login already worked; otherwise it opens the browser sign-in.

It then binds the repo to a project and (optionally) registers the MCP server with Claude Code.

Two URLs, one wizard: the URL of the app you actually want to test (e.g. your staging or production site) is configured later — per testcase or per exploration — from inside AuraCheck, not here.

auracheck setup is a 3-step wizard that:

  1. Logs you in — browser sign-in (or --token for CI), saved to ~/.auracheck/credentials (mode 0600). Skips this step if a valid token is already saved.
  2. Binds the repo — lists your projects, pick one, writes .sixseven/config.json. Skips if a binding already exists (asks before re-binding).
  3. Registers the MCP server — if the claude CLI is on your PATH, runs claude mcp add auracheck -- auracheck mcp for you. Otherwise prints copy-paste JSON for Cursor (.cursor/mcp.json) or Claude Desktop.

That's it. Open Claude Code and ask "list auracheck features" to confirm.

Workspace dev? If you haven't installed globally, the wizard auto-detects and uses the absolute path (node /abs/path/dist/bin.js mcp) so the MCP registration still works.

Commands

Command What
auracheck setup Guided wizard — start here. Login → bind project → register MCP.
auracheck login Sign in through the browser (--token 67ci_… for CI, --no-browser to print the link)
auracheck auth status Who the CLI/MCP is signed in as, base URL, project (never prints the token)
auracheck logout Revoke this sign-in and forget it locally
auracheck init Just the bind step (writes .sixseven/config.json)
auracheck status Show binding + token validity + feature/testcase counts
auracheck doctor Diagnose config, token, backend reachability, project access
auracheck mcp Start MCP server on stdio (spawned by Claude Code; you don't run this directly). Works outside a bound repo too: project tools then take a projectId (see auracheck.list_projects); --project <id> sets a default

Every command above also works as sixseven <command> — same binary, same behavior.

Advanced: manual MCP registration

If you skipped the wizard's MCP step:

# Claude Code
claude mcp add auracheck -- auracheck mcp

# Cursor — add to .cursor/mcp.json
{
  "mcpServers": {
    "auracheck": { "command": "auracheck", "args": ["mcp"] }
  }
}

MCP tools exposed

Whitebox (source code)

Tool Purpose
auracheck.read_code Read a text file inside configured codeRoots
auracheck.list_dir List a directory inside the repo
auracheck.search_code Substring/regex search across codeRoots (≤200 hits)

Features & testcases

Tool Purpose
auracheck.list_features List features of the bound AuraCheck project
auracheck.create_feature Create a feature (group of testcases)
auracheck.list_testcases List testcases (optionally per platform)
auracheck.get_testcase Fetch a testcase by id
auracheck.create_testcase Push a new testcase to a feature — authoringMethod: 'steps' or 'gherkin' (one Scenario's Given/When/Then as plain text); precedence is explicit arg > the project's saved default > 'steps'
auracheck.update_testcase Patch an existing testcase
auracheck.import_feature_file Import a whole Gherkin .feature file — one testcase per Scenario/Examples row, a shared Background becomes a prelation setup case
auracheck.set_project_authoring_method Save this project's authoringMethod default ('steps' | 'gherkin' | null to clear). On a brand-new project with no default set yet, create_testcase/design_test_suite/import_feature_file's responses carry an authoringMethodAskOnce instruction telling the agent to ask the user once, then call this

Runs, execution, and evidence

Tool Purpose
auracheck.list_runs List recent runs for the bound project
auracheck.create_run Create a run for one or more testcases
auracheck.execute_run Trigger execution of a web run (fire-and-forget, 202). Android/iOS runs answer run_from_desktop: a person starts them in the desktop app (see below)
auracheck.get_run Get current run state (status, reportUrl, timestamps)
auracheck.cancel_run Cancel an in-flight run
auracheck.wait_for_run Poll until terminal status (or timeout). Returns summary + final run
auracheck.list_run_testcases List testcases attached to a specific run
auracheck.get_evidence Aggregate per-case attempts + step events + failed-step screenshots
auracheck.get_screenshot Download a run screenshot (or any authenticated blob) to a local file so it can actually be looked at
auracheck.fill_login_locally When your own local browser hits a login wall while exploring, call with a testCaseId referencing {{accounts.<role>.*}} — creates a run scoped to just that case and points the person at the AuraCheck desktop app's "Run on this computer" button to sign in; call again with the returned runId to check whether it finished. The credential is never a tool argument or result.

Schedules (recurring runs)

Tool Purpose
auracheck.list_schedules List the project's recurring run schedules
auracheck.get_schedule Fetch one schedule (cadence, next fire, filters, recipients)
auracheck.create_schedule Create a cron schedule (validated server-side; warns when no configuration gives its runs a base URL)
auracheck.update_schedule Patch a schedule — pause it, retime it, retarget its configuration
auracheck.delete_schedule Delete a schedule (runs it already created are kept)
auracheck.run_schedule_now Fire it now on the clock's own code path; returns outcome + the created runId
auracheck.list_schedule_fires Occurrence history — why a schedule skipped (skipped_overlap, skipped_misfire, skipped_capacity, no_cases)
auracheck.list_schedule_recipients Users eligible for notifyUserIds, resolved the way the server resolves them at send time

Auto-explore (blackbox)

Tool Purpose
auracheck.start_exploration Kick off AuraCheck's BFS crawler on seed URLs (server-side Puppeteer)
auracheck.get_exploration Read the latest exploration snapshot (status + counts)

Bug filing

Tool Purpose
auracheck.file_bug Open an issue report against the bound project (after auto-fix loop confirms a real defect)
auracheck.list_bugs List issue reports for the project
auracheck.get_bug Fetch a single issue report by id

Context

Tool Purpose
auracheck.whoami Echo current user + project context

Deleting

Tool Purpose
auracheck.delete_testcase Delete 1–500 testcases. Dry run unless confirm: true; a case linked to a run is soft-deleted (run history kept), an unlinked one is removed permanently. Requires manageTestCases
auracheck.delete_feature Delete a feature. Dry run unless confirm: true; its testcases linked to a run are soft-deleted and reparented, unlinked ones removed permanently; cascade: true also removes sub-features. Requires manageTestCases

The MCP tool names keep the auracheck.* prefix regardless of which binary name you use. Upgrading from before 0.2.4: these were sixseven.* — restart your MCP client (Claude Code, Cursor, Claude Desktop) after upgrading so it re-reads the new tool list; existing skills/prompts that call them by name need the prefix updated too.

Mobile testing with the desktop app (Android / iOS)

Android and iOS tests run on your own device or emulator, through the AuraCheck desktop app, never on AuraCheck's servers. The MCP writes the cases and creates the runs; a person starts each run from the desktop app.

  1. Install the AuraCheck desktop app (SixSeven Desktop) from the Download page of your AuraCheck workspace and sign in with the same account the CLI uses (auracheck login).
  2. Connect the device: an Android phone with USB debugging on (it must show up in adb devices), or start an Android emulator. For iOS: the macOS desktop app with a simulator or a set-up iPhone.
  3. Point the project's configuration at your app: upload the APK/IPA to the configuration, or turn on "skip install" and set androidAppPackage (iosBundleId) to the app already installed on the device.
  4. Let Claude author the tests: create_testcase (platform android/ios) and create_run work exactly as for web.
  5. Run it from the desktop app: open the run (the runUrl Claude gives you) in the desktop app and click Run on local (iOS: Run on iOS). Results, steps, screenshots and the recording land on the run page as usual.
  6. Results back in Claude: wait_for_run waits while the run is pending and returns the verdict once you have run it; get_evidence and get_run_report work as for web runs.

execute_run on an Android/iOS run does not start anything: it returns { started: false, status: "run_from_desktop", runUrl, message, next }, which is Claude's cue to hand step 5 to you. Scheduled Android/iOS runs are created on time but also wait for someone to start them from the desktop app.

Security & telemetry

  • No telemetry. The CLI makes no outbound calls except to the AuraCheck backend you configured in .sixseven/config.json. There is no analytics, no crash reporter, no usage ping.
  • Source code stays local. The CLI never auto-uploads files. Source content only leaves the machine if the developer (or Claude Code, on the developer's instruction) explicitly bakes it into a testcase payload.
  • File reads are sandboxed. Reads are constrained to configured codeRoots, paths in exclude are refused, and path-traversal attempts (../, absolute paths) are rejected.
  • Stdout in auracheck mcp is strict JSON-RPC. Human-readable logs go to stderr. Set AURACHECK_DEBUG=1 (deprecated alias SIXSEVEN_DEBUG=1) to include stack traces on errors.
  • Credentials. Tokens are saved to ~/.auracheck/credentials with mode 0600 (moved there automatically from ~/.sixseven/credentials on first run if that's where an older install left it — verified, then the old file and its directory, if left empty, are removed; an already-existing ~/.auracheck/credentials wins, with only missing hosts merged in). The directory is created with mode 0700. Tokens are never logged.

Walk-through

See USAGE.md for end-to-end prompt examples that drive Claude Code through generate → run → evidence → auto-fix → file-bug loops.

Config shape

.sixseven/config.json:

{
  "baseUrl": "https://space.auracheck.ai.id",
  "projectId": "uuid-of-project",
  "defaultFeatureId": null,
  "codeRoots": ["src", "apps"],
  "exclude": ["node_modules", "dist", ".git", ".next"],
  "platform": "web"
}