Overview
The TestDriver MCP server exposes TestDriver’s computer-use tools —session_start, find, click, type, assert, check, screenshot, and more — over the Model Context Protocol. Any MCP-capable AI client can use it to drive a live sandbox and write real end-to-end tests.
It runs as a local stdio process:
TD_API_KEY (from console.testdriver.ai/team).
Quick install (recommended)
testdriverai init wires up the MCP server, the agent, and the skills for you, writing each client’s config in the exact format and location it expects:
init detects clients already present in your project and pre-selects them in the picker. Re-running init is safe — it merges the TestDriver entry into existing config without overwriting your other servers.Client support matrix
| Client | Auto-install | MCP config file | Config key |
|---|---|---|---|
| Claude Code | ✅ | .mcp.json | mcpServers |
| Claude Desktop | ✅ | OS-specific (see below) | mcpServers |
| Cursor | ✅ | .cursor/mcp.json | mcpServers |
| VS Code (Copilot) | ✅ | .vscode/mcp.json | servers |
| Windsurf | ✅ | ~/.codeium/windsurf/mcp_config.json | mcpServers |
| Codex | ✅ | ~/.codex/config.toml | [mcp_servers] |
| Zed | ✅ | .zed/settings.json | context_servers |
| Lovable | ⚙️ partial | GitHub AGENTS.md + UI | — |
| Replit | ⚙️ partial | replit.md + UI | — |
| v0 (Vercel) | 📝 manual | web UI only | — |
Each client uses a different top-level key for MCP servers. The most common mistake when configuring by hand is using
mcpServers for VS Code (it wants servers), Codex (TOML [mcp_servers]), or Zed (context_servers).Manual installation
If you’d rather configure by hand, use the snippets below. The stdio command is the same everywhere; only the wrapper key and file location change.- Claude Code
- Claude Desktop
- Cursor
- VS Code
- Windsurf
- Codex
- Zed
Add to
.mcp.json at your project root (or ~/.claude.json for all projects):Web-based clients
Lovable, Replit, and v0 run in the browser, so the MCP server can’t be launched as a local process. Configure them through each product’s UI.Lovable
Lovable
- Connect your GitHub repo and run
npx testdriverai init --client lovable— this writesAGENTS.mdand the skills into the repo so Lovable’s agent picks them up. - In Lovable, open Settings → MCP and add the TestDriver server.
Replit
Replit
- Run
npx testdriverai init --client replitto writereplit.mdwith the TestDriver agent guidance. - In Replit, open Tools → Integrations → MCP and add a custom MCP server.
v0 (Vercel)
v0 (Vercel)
v0 is fully UI-driven and does not read repo files.
- Open v0.app/chat/settings/mcp-connections and add the TestDriver MCP connection.
- Paste the agent guidance into Instructions (the + in the prompt bar).
Verifying the install
After installing, open your client’s chat and ask the agent to write a test:TD_API_KEY is set and restart the client.

