Connect your editor
For the complete documentation index, see llms.txtAfter npx @unotest/web init (or @unotest/mobile install), the MCP server is
wired for you. This page is what’s happening under the hood — and how to wire it
by hand if needed.
What init writes
.mcp.json— the MCP server entry (stdio transport).- Editor settings (e.g.
.claude/settings.json) — the tool allowlist + an agent authoring guide.
Claude Code
init writes .mcp.json at the project root, which Claude Code auto-discovers.
The server is launched as npx @unotest/web mcp (stdio). Open Claude Code in the
project and ask it to write a test.
Cursor / Codex
Both read MCP server config from their settings. init populates it. If you wire
it manually, point the server command at npx @unotest/web (web) or
npx @unotest/mobile (iOS) — running with no subcommand starts the MCP server.
Picking an environment
The server reads UNOTEST_ENV at startup to select the
unotest/.env.<name> / unotest/.secrets.<name> overlays (see
Variables & secrets). Add it to the server’s env
block in .mcp.json and reload the editor to switch:
{ "mcpServers": { "unotest-web": { "command": "npx", "args": ["-y", "@unotest/web", "mcp"], "env": { "UNOTEST_ENV": "dev" } } }}There is no per-call switch — explore_start / run_test replies report
the active environment under environment, so the agent always sees what
a session resolves against.
Monorepos
Open your editor at the monorepo root and run init there, so .mcp.json
lives where the editor looks for it.
Verify
Ask the agent to “write an e2e test for sign-in”. If the MCP tools are available,
it will explore your app and produce a scenario. If not, re-run init and reload
the editor.