Prerequisites
- An MCP-compatible AI client (Claude, Claude Code, VS Code, Cursor, ChatGPT, and others)
- A TestDriver account. Create one for free. You get 60 device minutes, no credit card required.
Add the server
Most clients accept the URL directly. Pick yours below.- Claude
- Claude Code
- VS Code
- Cursor
- ChatGPT
- Other clients
- Open Settings ā Connectors ā Add custom connector.
- Paste
https://mcp.testdriver.ai/mcp. - Click Connect and sign in with TestDriver when the browser opens.
Clients disagree on the top-level key. VS Code uses
servers, most others use mcpServers, Zed uses context_servers, and Codex uses TOML [mcp_servers]. If the tools do not show up, check the key before anything else.Sign in
The server speaks OAuth 2.1 and advertises its authorization server via RFC 9728 protected-resource metadata:Verify it works
Ask your client to drive a browser:What you get
The hosted server exposes the full live tool set:
Every action also returns the SDK code for that step, so the agent can write a runnable Vitest test as it goes.
Local server for CI and automation
For headless automation, or when you would rather use an API key than a browser login, run the server as a local stdio process:TD_API_KEY from the environment. Generate a key at console.testdriver.ai/settings.
Troubleshooting
The tools do not appear in my client
The tools do not appear in my client
Confirm the URL is exactly
https://mcp.testdriver.ai/mcp, check that you used the correct top-level config key for your client, and restart the client. Most clients read their MCP config only at startup.The browser login never completes
The browser login never completes
Your client must support OAuth 2.1 with Dynamic Client Registration. Older clients, and clients that only support stdio servers, cannot connect to the hosted URL. Use the local server with
TD_API_KEY instead.I ran out of device minutes
I ran out of device minutes
Sandbox time is billed per minute. Check your usage and plan at console.testdriver.ai.
The sandbox expired mid-session
The sandbox expired mid-session
Sessions time out after a period of inactivity. Ask the agent to call
session_extend before it expires, or session_start to get a fresh sandbox.Next steps
Generating tests
Prompting patterns that get the best tests out of the agent.
Setting up your workspace
Add the SDK to a project so generated tests run locally and in CI.
Walkthrough
Provision apps, locate elements, perform actions, and make assertions.
CI/CD
Run your tests on every pull request.

