Guide

How to run end-to-end tests from Claude through an MCP server

An AI assistant can do more than talk about your tests: connected to Assertline, it can find a recorded test, run it and tell you which step failed and why. The connection is Assertline's MCP server, which works with Claude, ChatGPT, Cursor, VS Code and any other client that speaks the Model Context Protocol. This guide shows how to connect it and what to ask.

What the MCP server lets an assistant do

The Model Context Protocol, MCP, is how an assistant uses tools that someone else provides. Assertline's server is at https://app.assertline.com/api/mcp and offers a fixed set of tools: an assistant can find tests, run them and read results.

It cannot edit or delete a test, invite people or pay, whichever way it is connected. A test is still recorded by a person, in the browser.

Step 1: connect the assistant

Claude

  1. Open Assertline in Claude's connector directory and choose Add.
  2. Your browser opens Assertline. Sign in, choose the organization and allow.

Nothing is copied or pasted, and no key is created.

ChatGPT, Cursor, VS Code and other clients

Add a connector or an MCP server with the address https://app.assertline.com/api/mcp and choose to sign in. The API and MCP guide has the exact steps for each, with one-click links for Cursor and VS Code and the command for Claude Code.

Step 2: ask it to run a test

Ask in your own words. A typical exchange:

  • You: "Run the checkout test on staging."
  • The assistant finds the test, starts it and answers at once with the id of the run and a link. It does not sit and wait.
  • You, a few minutes later: "How did it go?"
  • The assistant: "Failed at step 5, Place order: the server answered 422, postcode required. Steps 1 to 4 passed."

Starting a run only starts it, on purpose: a run can take minutes, and an assistant that keeps asking is slower and costs more than one that reports and waits for your question.

The tools the assistant gets

ToolWhat it does
whoamiWho the assistant is connected as
list_projectsList projects
list_testsList the recorded tests of a project
get_testOne recorded test with its steps
run_testRun a test
list_runsList runs of a test or a project
get_runThe status of a run
get_run_resultsThe step results of a run
get_run_networkThe network log of a run
run_batchRun every test with a tag
list_batchesList batches
get_batchA batch and its runs
list_environmentsList environments
list_devicesList device profiles
get_plan_and_usageThe plan, its limits and this month's usage

Each tool is described in the API and MCP guide. The same operations exist as a plain API for scripts.

What the assistant cannot do, and how to remove it

  • It cannot create, change or delete a test.
  • It cannot invite people, change settings or pay.
  • It acts for you, in the organization you chose, with these tools only.
  • You remove it at any time in the dashboard under Settings, Connected apps. It also stops when you leave the organization.

A run that goes to our cloud can use paid minutes; get_plan_and_usage shows what is left. Runs on your own computer are free.

For a pipeline or a script: connect with a key

Where nobody is there to sign in, the same server takes a key instead: the header Authorization: Bearer <key> with a CI key or an organization key. The API and MCP guide shows the configuration.

Questions

Which AI assistants can run Assertline tests?

Claude, where Assertline is in the connector directory, and Claude Code, ChatGPT, Cursor, VS Code and any other client that speaks the Model Context Protocol.

Can the assistant change or delete my tests?

No. It can find tests, run them and read results. It cannot edit or delete anything, invite people or pay.

Can the assistant create a test?

Not through the MCP server. A test is recorded by a person in the browser. Separately, Assertline can create a test from a description on its "Create with AI" page.

Why does the assistant not wait for the run to finish?

Starting a run answers at once with its id. You ask later how it went, and one answer then carries the verdict and the steps that failed.

Connect an assistant to your tests

Record a test first: the assistant can only run what exists. The recorder and the Free plan cost nothing.