Connect an AI agent over MCP
Connect Claude, ChatGPT, Cursor, VS Code or Claude Code to Testmode’s MCP server at api.testmode.ai/mcp, by signing in or with an API key. The tools it offers, what an agent can and can’t do, and how to disconnect it.
Testmode’s MCP server lets AI agents use Testmode: list your projects and tests, write and change test cases, start runs and exploratory testing sessions, and read the results. An AI coding agent can then run the tests for the change it just made and tell you what failed. Every plan includes it, Free too.
The server is at https://api.testmode.ai/mcp. It is listed in the official MCP registry as digital.amber/testmode (“Testmode AI”). Connect it in one of two ways:
| Sign in as you | A project API key |
|---|---|
| The agent acts as you, in every project you belong to, with your role there | The agent works in one project, as the key’s creator, with less than they may do |
| Approve the app once in your browser | Paste the key into the app’s configuration |
| Reads, runs, and writes tests as Ask does; can set up an organization and project | Reads and runs only |
| Disconnect it under Settings > Account | Revoke the key under Settings > Project > API & CI |
| For apps that take a URL: claude.ai, ChatGPT, Claude Code | For any MCP client, and for unattended agents |
Claude, ChatGPT and other apps that take a URL
Section titled “Claude, ChatGPT and other apps that take a URL”-
In the app, add a custom connector (or MCP server) with the URL
https://api.testmode.ai/mcp. -
The app opens Testmode’s sign-in page. Sign in, or create an account.
-
Testmode asks Connect the app to Testmode? It shows the address approving sends you to, and what the app will be able to do. Click Connect, or Deny.
The app’s website, as it registered itself, is shown as plain text marked “not verified”: apps name themselves, so connect only if you started this from that app just now and recognise the address.
If you have no organization yet, Testmode first offers to set one up for the app, with a project and, optionally, your site’s URL. You can skip that, and ask the app to set it up instead.
Claude Code
Section titled “Claude Code”claude mcp add --transport http testmode https://api.testmode.ai/mcpClaude Code signs in through your browser the first time. To use a key instead:
claude mcp add --transport http testmode https://api.testmode.ai/mcp \ --header "Authorization: Bearer $TESTMODE_API_KEY"Cursor, VS Code and other JSON configs
Section titled “Cursor, VS Code and other JSON configs”{ "mcpServers": { "testmode": { "url": "https://api.testmode.ai/mcp", "headers": { "Authorization": "Bearer tmk_…" } } }}Leave out headers to sign in through the browser instead, where the client supports it. Settings > Project > API & CI, with An AI agent (MCP) picked, shows these snippets.
Every connection has these:
| Tool | Does |
|---|---|
list_projects |
The projects the agent can use, with your role in each |
get_project |
A project’s environments and test plans |
list_test_cases |
Test cases, filtered by tag or name |
start_run |
Starts a run of a plan, test case ids or tags |
get_run |
A run’s status and each test’s result and summary |
list_runs |
Recent runs |
start_exploratory_session |
Starts an exploratory testing session of one area, 10 to 60 minutes, with 1 to 8 browsers (not on Free) |
get_exploratory_session |
A session’s status, its minutes so far, and every bug it reported with its outcome |
An app connected by signing in also has these:
| Tool | Does |
|---|---|
create_organization, create_project, add_environment |
Set Testmode up for someone new: an organization (on Free, with you as its owner), a project, and the URL of the site to test |
get_test_case, create_test_case, update_test_case, disable_test_case |
Read a test case’s steps; write, change or switch one off |
create_test_plan, add_test_case_to_plan |
Create plans and add test cases to them |
list_variables, create_variable |
Variables, by name, never their values |
list_credentials |
The project’s logins, never their passwords |
Signed in, tools take an optional project (name or id) when you have several projects. Runs and sessions take minutes, so agents start one and poll get_run or get_exploratory_session until it is finished. Testmode tells the agent to show you a change before it writes one, and to start runs only when you asked for them.
The address given to add_environment must be on the internet: Testmode’s browsers run in the cloud and can’t open localhost or a private address.
What an agent can and can’t do
Section titled “What an agent can and can’t do”- It can read projects, environments, test plans, test cases and runs, and start runs and sessions where you are an Editor or above. Signed in, it can also write tests, plans and variables there, as Ask does.
- It can’t delete anything, change settings, schedules or logins, read passwords or variable values, or create API keys.
- Its runs use credits like any other, and show your name and “(MCP)”, or the key’s name, as who started them. On Free they count toward Free’s limits.
- Its rate limit is 60 requests a minute: per key, or per member for an app that signed in.
- Test summaries and session bugs may quote your site’s text. Agents should treat them as data, not instructions; Testmode tells them so.
Disconnect an app
Section titled “Disconnect an app”Open Settings > Account, find the app under Connected apps and click Disconnect. It loses access at once, and connecting it again asks for your approval. See Your profile.
Common questions
Section titled “Common questions”Is the MCP server on the Free plan?
Section titled “Is the MCP server on the Free plan?”Yes. Every plan includes it, Free too. On Free, runs an agent starts count toward Free’s limits, and it can’t start exploratory testing sessions.
Can someone without a Testmode account connect an AI app?
Section titled “Can someone without a Testmode account connect an AI app?”Yes. The sign-in page the app opens also lets you sign up. With no organization yet, Testmode offers to set one up, with a project, before the app is connected, or the app can do that setup itself once connected.