Skip to main content
Test plans run your full regression suite across every environment and configuration in one go. When failures surface, you normally have to navigate the Spur UI to understand what went wrong for each test. With the Spur MCP, your AI agent can do this triage for you — pulling every failure, their reasons, and the detailed artifacts needed to diagnose each one. You can also create, schedule, and update test plans directly from your editor, and mark runs with a review status once you have triaged them.

Available tools

Once you have task_id values from list_test_plan_runs(run_id), use get_test_run to investigate individual failures. Pass include to pick sections in one call: overview, steps, console, network, screenshots.

Common workflows

Create a scheduled test plan

Claude calls list_suites and list_environments to resolve names to ids, shows you the plan summary, and waits for your approval before calling create_test_plan. The schedule is passed as a structured object — no raw cron:
first_run_at is ISO 8601 with a zone; its time of day in UTC becomes the run time. If omitted, the requested start defaults to 30 minutes from now. The next run must be at least 15 minutes away. Day or month intervals greater than one follow calendar dates, rather than an elapsed interval from the requested start. frequency.unit is hours (value 1–23), days (1–6), weeks (1–12), or month (1, 2, 3, 4, or 6). weeks with value 1 needs a days array of UTC weekdays.

Pause or remove a schedule

Pause a schedule:
Claude reads the current schedule with list_test_plans(plan_id), then sends the complete schedule to update_test_plan with is_active: false. Keep its frequency and include days for a one-week schedule. Supply a valid future first_run_at that retains the intended UTC run time and calendar pattern. The next occurrence must be at least 15 minutes away. The tool replaces the schedule. Omitted fields do not automatically carry over. Remove the schedule entirely:
Claude calls update_test_plan(schedule: null).

Update a Test Plan

suites and environments each replace the whole list. Claude first calls list_test_plans(plan_id) to get the current configuration, then shows you what will change and asks for approval before calling update_test_plan with every existing suite plus the new one.

Turn on auto retry

Claude calls update_test_plan with max_retries: 2. max_retries is a whole number from 0 to 3, and 0 turns retries off. It sets the same option as Auto Retry Failed Tests in the app. See Auto retry for how retries work. create_test_plan takes the same field, and list_test_plans(plan_id) shows the current value as Max retries: N.

Trigger a regression run and wait for results

Claude calls run_test_plan with the plan id (discovered via list_test_plans) and then polls list_test_plan_runs(search: { plan_id }) to monitor progress.

Triage all failures from the latest run

Claude calls list_test_plans to find the plan, list_test_plan_runs(search: { plan_id }) to find the most recent run id, then list_test_plan_runs(run_id) — one call that lists every test in the run with failure reasons, warnings counts, review status, latest note, and task_id, failures first.

Deep-dive into a specific failure

Claude takes the task_id from the failed test and calls get_test_run with the sections it needs — for example include: ["overview", "steps", "console", "network"] — then reads the overview to choose the failed result. It requests that result’s visual state with include: ["screenshots"] and its stepRef, such as "Step 6.14".

Mark runs with a review status

Once you have triaged a failure, mark it so your team knows what still needs attention:
Claude calls update_test_runs with the task_ids from list_test_plan_runs(run_id), a set object, and an optional note:
Replace the example task ID with one from your own run. Setting is_public to true makes the result available to anyone with its share link. Available review statuses: Unreviewed, Needs Investigation, Needs Rework, Bug, Closed. Marking a run Needs Rework also marks the underlying test as a draft, matching the behavior in the app.

Stop runs that are still going

Claude calls stop_test_runs(run_id) to stop every run in the batch, or stop_test_runs(task_ids) for specific ones. Runs that have already finished are left as they are.

Full triage loop

For teams doing post-deploy validation, a complete triage looks like this: You can ask the agent to work through every failure in one pass:
Claude iterates over each task_id from list_test_plan_runs(run_id), calls get_test_run per failure, distinguishes test issues from product regressions, and marks each with update_test_runs — test issues as Needs Rework (which drafts the test), real bugs as Bug with a note.

Step-by-step example

1

Discover your Test Plans

Claude calls list_test_plans and returns a list with plan ids, suite counts, environment names, schedule, and the last run time for each.
2

Trigger a run

Claude calls run_test_plan with the plan id. The run is queued and Claude confirms it has started.
3

Check run history

Claude calls list_test_plan_runs(search: { plan_id }) and returns a table of run ids, timestamps, and pass/fail/error counts so you can pick a run to investigate.
4

Get a full overview of a run

Claude calls list_test_plan_runs(run_id: 107272). Failures are listed first with failure reasons, warnings counts, review status, latest note, and task_id.
5

Investigate individual failures

Claude calls get_test_run with the task_id and include: ["overview", "steps"], then reads the overview to choose the failed result. It calls get_test_run again with the same task_id, include: ["screenshots"], and that result’s stepRef, such as "Step 6.14".
6

Mark the failure

Claude calls update_test_runs with the task_id, set: { review_status: "Bug" }, and the note.

Tips

You can pass a run id directly from a Spur URL. In /test-plans/665/runs/107272, the run id is 107272. Drop it straight into your prompt: “Give me the overview for run 107272.”
Run a plan at the start of your day and ask Claude to triage every failure before your team standup. You’ll arrive with a prioritized list of what needs attention, and each run marked with the right review status.
When triage reveals a test issue (not a product bug), ask Claude to fix it in-place: “Update the steps for that test to handle the new modal, then mark the run as Needs Rework.” Claude calls update_test to revise the steps and update_test_runs to set the status, without you leaving your editor.