Set up Wopee.io with your coding agent
Setting up Wopee.io testing for a repository takes one command, run from the repository root:
npx -y @wopee-io/init@latest
Ask your coding agent to set up Wopee.io testing for the repository and it can run the command itself: the command asks no questions and needs no key. It prints a link and three pairing words. You approve in Commander, and the command connects the Wopee.io MCP server to your project with a new API key that neither you nor the agent has to copy. The API key never passes through the chat.
For a guided setup, paste the line below instead. The agent then checks the connection with a read-only call and offers to run one test. It shows its plan first and asks before it changes anything.
Paste this into your coding agent
Set me up for Wopee.io: follow https://wopee.io/agent-setup/prompt.md word for word (read it with curl if your fetch tool only summarizes), show me the plan first, and ask before changing anything.
The instructions are plain Markdown on our own domain. Read them before you paste: wopee.io/agent-setup/prompt.md.
The command configures Claude Code, Cursor, GitHub Copilot in VS Code, OpenAI Codex and OpenCode. For other MCP clients the instructions add one universal entry instead.
Before you start
- Node.js 20.18.1 or newer. The command and the server run with
npx. The agent checks the version and never installs Node.js for you. -
A Wopee.io project with your app's URL. No account yet? Sign up with your app's URL, and Commander creates the project and starts the first analysis for you:
https://cmd.wopee.io/signup?url=<your-app-url>The app must be reachable from the internet, because the tests run on Wopee.io's cloud runners.
localhostdoes not work: expose it with a tunnel or use a deployed URL. -
Project admin rights. Only project admins can approve the pairing, because it creates a project API key. See Find your API key and project UUID.
- An MCP client. On Wopee.io Cloud, the command gives Claude Code the hosted remote server and the other agents the local (stdio) server. For another client that takes only remote MCP servers, add the remote server yourself.
What the agent does
- Checks for an existing setup. If the
wopeetools already work, it skips to the check in step 6. Running the line again is safe. - Detects your setup and shows a plan. It works out the client, the operating system and the repository, then lists what will change and waits for your yes.
- Checks Node.js.
node --versiononly reads. New to Wopee.io? It gives you the sign-up link first, because the pairing needs a project you administer. - Runs
npx -y @wopee-io/init@latest. The command returns within seconds with a link and three words, for examplebrave-otter-42. The agent shows you both and waits for you. - You approve in Commander. Check that the words match, pick the project and click Approve, then tell the agent you approved. It runs
npx -y @wopee-io/init@latest --resume, which receives a new, named API key, encrypted to the command, and writes the files. Then you restart or reload the agent. Claude Code also signs in once: run/mcp, choosewopeeand Authenticate, then in Commander pick the same project, Read only or Read and write, and click Allow. - Checks the connection. It calls
wopee_setup_checkand, where the check gives no counts,wopee_fetch_test_inventory. Both only read. It reports your project with its analyses and test cases. A new project with zero tests counts as a success. - Offers one test run. Runs use Wopee.io's cloud runners and your plan, so it starts one only after you say yes. See Your first test from your coding agent.
- Reports. A short summary: what changed, where the key lives, the check result and how to undo the setup.
What it changes
The command writes WOPEE_API_KEY and WOPEE_PROJECT_UUID to .env (or to .env.local when the repository has one), adds that file to .gitignore, and adds one MCP server entry named wopee with no key in it:
- Claude Code on Wopee.io Cloud gets the hosted server,
https://mcp.wopee.io/mcp. It needs no key: Claude Code signs in through your browser after the restart. - The other agents, and every agent on a dedicated or self-hosted instance, get the local
wopee-mcp, which reads the key from the env file itself.
The env file is written in both cases, because the test SDKs and CI read the key from it.
| Client | File it writes |
|---|---|
| Claude Code | .mcp.json in the repository (the hosted server on Wopee.io Cloud) |
| Cursor | .cursor/mcp.json |
| GitHub Copilot in VS Code | .vscode/mcp.json |
| OpenCode | opencode.json |
| OpenAI Codex | ~/.codex/config.toml (Codex reads project config only in trusted projects) |
| Other MCP clients | One entry in the client's MCP config file, added by the agent; you type the values into .env |
It keeps other servers and comments in these files, never overwrites a different wopee entry without asking, and refuses to write the key into an env file that git tracks. In Commander, the key is listed as wopee-init · <agent> · <machine> · <date>.
It never:
- asks for the API key in the chat, reads your
.envfile or writes the key into a committed file; - uses
sudo, pipes a download into a shell (curl | bash), installs with--yes, edits your shell profile or turns off TLS checks; - starts an analysis or a test run without your yes;
- contacts hosts other than wopee.io, docs.wopee.io, cmd.wopee.io, api.wopee.io, mcp.wopee.io and the npm registry.
Your API key stays out of the chat
- Nobody copies the key. It travels from the api to the waiting command, encrypted to a one-time key the command made, and the command writes it straight to the git-ignored env file. No line the command prints contains it. Chat history is stored, so a key in the chat is a key in a transcript.
- Pasted it anyway? Generate a new key in Commander and delete the pasted one under Existing keys. See Rotate a key.
- The key acts as you. It works for one project, with the rights of the user who created it, and runs count toward that user's plan. Treat it like a password.
- The config holds no key, so you can commit
.mcp.json,.vscode/mcp.json,.cursor/mcp.jsonoropencode.json. Each teammate runs the command and gets their own key. - What leaves your machine: only the arguments of the tool calls your agent makes. The server does not read your repository.
Set it up by hand
Rather do it yourself? Run the same command in your terminal, from the repository:
npx -y @wopee-io/init@latest
It opens the approval page in your browser and asks which agents to configure. Your Wopee.io instance has no pairing yet, or you prefer to paste a key? npx -y @wopee-io/init@latest --manual asks for the project UUID and a key (where to find them) in a hidden prompt and writes the same files. All options: @wopee-io/init on npm.
Or add the server for your client yourself, with the values in your environment:
Claude Code
On Wopee.io Cloud, add the hosted server, then run /mcp, choose wopee and Authenticate. No key is needed for MCP:
claude mcp add --transport http wopee https://mcp.wopee.io/mcp
Or the local server, with the values in your environment:
claude mcp add --scope project wopee -e 'WOPEE_API_KEY=${WOPEE_API_KEY}' -e 'WOPEE_PROJECT_UUID=${WOPEE_PROJECT_UUID}' -- npx -y wopee-mcp
Keep the single quotes, so .mcp.json stores the references, not the values. Details: Claude Code.
Cursor
{
"mcpServers": {
"wopee": {
"command": "npx",
"args": ["-y", "wopee-mcp"],
"envFile": "${workspaceFolder}/.env"
}
}
}
Then switch the server on in Customize › MCPs; project servers start disabled. Details: Cursor.
GitHub Copilot in VS Code
{
"servers": {
"wopee": {
"type": "stdio",
"command": "npx",
"args": ["-y", "wopee-mcp"],
"envFile": "${workspaceFolder}/.env"
}
}
}
Click Start above the entry. Details, Copilot CLI and the cloud agent: GitHub Copilot.
OpenAI Codex
[mcp_servers.wopee]
command = "npx"
args = ["-y", "wopee-mcp"]
env_vars = ["WOPEE_API_KEY", "WOPEE_PROJECT_UUID"]
Details: OpenAI Codex.
Other clients
Use the universal configuration, or the guide for OpenCode, Antigravity and Gemini CLI, JetBrains, Devin Desktop, Visual Studio or other MCP clients.
Then restart the agent and ask:
How many tests do I have in Wopee.io, and which ones have never run?
Undo
- Claude Code:
claude mcp remove wopee --scope project(or--scope user). If it signed in to the hosted server, also disconnect it under More › Settings › MCP Connections. - OpenAI Codex: delete the
[mcp_servers.wopee]table from~/.codex/config.toml. - Other clients: delete the
wopeeentry from the config file. - Remove the
WOPEE_*lines from.env. - Then delete the key in Commander under More › Settings › API Keys › Existing keys.
Next
- Your first test from your coding agent: from the first question to a verdict, with sample outputs
- Troubleshooting: every error message and its fix
- Wopee.io MCP server: all 15 tools, prompts and how runs work