Use OttoTester from a coding agent
A coding agent is an AI assistant that works in your editor or terminal, such as Claude Code or Cursor. OttoTester gives these agents a set of tools over MCP, the standard way a coding agent calls outside tools. With them, the agent can find your apps, start a run, wait for it, and explain the failures, without you opening OttoTester.
What you need
Section titled “What you need”- The address. Your OttoTester address followed by
/mcp. On a self-hosted install that is usuallyhttp://localhost:8090/mcp. Settings → Account → Coding agents shows yours, with a copy button and each agent’s setup below already filled in.
That’s all. The first time the agent connects, it opens your browser at OttoTester. Sign in as usual, then approve the agent on the screen that follows. You pick which workspaces it may use: all of yours, or only some.
The agent can do exactly what you can, and nothing more, in the workspaces you picked. It can never open Global Admin, even if you are a Global Admin.
Add OttoTester to Claude Code
Section titled “Add OttoTester to Claude Code”Run this once, with your address:
claude mcp add --transport http ottotester http://localhost:8090/mcpThen start Claude Code and type /mcp. Your browser opens OttoTester to sign in. After you allow it, Claude Code shows OttoTester as connected.
You can also connect from the command line with claude mcp login ottotester. Add --no-browser if Claude Code can’t open a browser for you. It then prints the address to open instead. Open it in a browser on the same computer, because Claude Code waits for OttoTester’s reply there.
Shared with your team in .mcp.json? If you add OttoTester with --scope project, Claude Code saves it in the project’s .mcp.json and won’t connect until you allow it. Start claude in that folder once and allow it when asked, then connect. To skip that step, add it just for yourself with --scope local instead.
In the Claude app’s Code tab
Section titled “In the Claude app’s Code tab”The Code tab in the Claude desktop app opens only https sign-in pages. At an http address, such as a local install at http://localhost:8090, it can’t sign you in, and OttoTester stays at “needs authentication”. Use a personal access token instead:
-
Make a token in Settings → Account → Personal access tokens (see API tokens).
-
Add OttoTester with the token, with your address. If you added OttoTester before, run
claude mcp remove ottotesterfirst.Terminal window claude mcp add --transport http --scope user ottotester http://localhost:8090/mcp --header "Authorization: Bearer <your token>"No
claudecommand? Quit the Claude app, open~/.claude.json, and add a"headers"line to OttoTester’s entry:"ottotester": {"type": "http","url": "http://localhost:8090/mcp","headers": { "Authorization": "Bearer <your token>" }} -
Start a new session in the Code tab. OttoTester’s tools show there.
Add OttoTester to Codex
Section titled “Add OttoTester to Codex”Run this once, with your address:
codex mcp add ottotester --url http://localhost:8090/mcpCodex opens your browser right away so you can sign in. If it doesn’t, run codex mcp login ottotester. Codex saves OttoTester in ~/.codex/config.toml, which Codex in your editor and the ChatGPT desktop app read too.
Add OttoTester to Cursor
Section titled “Add OttoTester to Cursor”On the Coding agents page, Add to Cursor opens Cursor, which asks before adding OttoTester. Or add this to ~/.cursor/mcp.json (create the file if it isn’t there), with your address:
{ "mcpServers": { "ottotester": { "url": "http://localhost:8090/mcp" } }}Cursor opens your browser to sign in the first time it uses OttoTester.
Add OttoTester to Gemini CLI
Section titled “Add OttoTester to Gemini CLI”Run this once, with your address:
gemini mcp add --transport http ottotester http://localhost:8090/mcpThen start Gemini CLI. It opens your browser so you can sign in. If it doesn’t, type /mcp auth ottotester.
Gemini CLI saves OttoTester for the folder you run the command in, in .gemini/settings.json. To use it in every folder, add --scope user to the command.
Add OttoTester to OpenCode
Section titled “Add OttoTester to OpenCode”Run this once, with your address:
opencode mcp add ottotester --url http://localhost:8090/mcpThen run opencode mcp auth ottotester. Your browser opens OttoTester so you can sign in.
Add OttoTester to VS Code
Section titled “Add OttoTester to VS Code”On the Coding agents page, Add to VS Code opens VS Code, which asks before adding OttoTester. Or, in VS Code, run MCP: Open User Configuration and add this, with your address:
{ "servers": { "ottotester": { "type": "http", "url": "http://localhost:8090/mcp" } }}VS Code opens your browser to sign in the first time it uses OttoTester.
Add OttoTester to Claude Desktop
Section titled “Add OttoTester to Claude Desktop”On its own, Claude Desktop can’t connect to an OttoTester on your own computer, such as http://localhost:8090:
- Customize → Connectors connects from Anthropic’s servers, not from your computer. It only reaches an OttoTester that is on the internet at an https address.
- The app’s own sign-in opens only https pages, so signing in to an http address fails with “must be https”.
Use mcp-remote instead. The Claude tab on the Coding agents page shows these steps with your address filled in. mcp-remote is a small, free program that the Claude app starts on your computer, and it connects to OttoTester for the app. It isn’t part of OttoTester: it comes from the wider MCP community, and it needs Node.js 18 or later.
-
In the Claude app, open Settings → Developer and select Edit Config. This opens the app’s settings file,
claude_desktop_config.json. -
Add OttoTester, with your address:
{"mcpServers": {"ottotester": {"command": "npx","args": ["-y", "mcp-remote", "http://localhost:8090/mcp"]}}}If the file already has an
"mcpServers"section, add the"ottotester"entry inside it. -
Quit the Claude app completely, then open it again.
The first time, mcp-remote opens your browser at OttoTester. Sign in and approve it, as for any other agent. OttoTester’s tools then show in the Claude app.
With a token instead. To skip the browser, make a personal access token (see Agents that can’t open a browser) and have mcp-remote send it:
{ "mcpServers": { "ottotester": { "command": "npx", "args": ["-y", "mcp-remote", "http://localhost:8090/mcp", "--header", "Authorization:${OTTOTESTER_AUTH}"], "env": { "OTTOTESTER_AUTH": "Bearer <your token>" } } }}Replace <your token> with the token. Keep Authorization:${OTTOTESTER_AUTH} exactly as it is, with no space. On Windows the Claude app breaks up any setting in "args" that has a space in it, so the space goes in "env" instead.
At a plain http address other than localhost? For example http://192.168.1.20:8090 on your office network. mcp-remote connects to it only with --allow-http, and it can’t sign in through your browser there, so use the token version and add "--allow-http" right after your address in "args". Do this only on a network you trust, because plain http isn’t encrypted. The Claude tab on the Coding agents page shows this version when you open OttoTester at such an address.
Is your OttoTester on the internet? If people reach it at an https address with no port number, add it on Customize → Connectors → Add custom connector instead, with your address followed by /mcp. Sign in when the app asks.
Node from Homebrew on a Mac
Section titled “Node from Homebrew on a Mac”The Claude app doesn’t read your Terminal’s settings. If Node.js came from Homebrew, the app may not find npx, and OttoTester never shows up. Give the app the full path instead:
-
In Terminal, run
brew --prefix node@22, orbrew --prefix nodeif you installed plainnode. It prints a folder, such as/opt/homebrew/opt/node@22. -
In OttoTester’s entry, set
"command"to that folder followed by/bin/npx, and add a"PATH"that starts with that folder followed by/bin:{"mcpServers": {"ottotester": {"command": "/opt/homebrew/opt/node@22/bin/npx","args": ["-y", "mcp-remote", "http://localhost:8090/mcp"],"env": {"PATH": "/opt/homebrew/opt/node@22/bin:/usr/bin:/bin"}}}}npxneeds"PATH"to find Node.js itself. With the token version, add the"PATH"line beside"OTTOTESTER_AUTH"in"env". -
Quit the Claude app completely, then open it again.
Agents that can’t open a browser
Section titled “Agents that can’t open a browser”Some agents, and anything running unattended, can’t sign in through a browser. Give them a personal access token instead. Make one in Settings → Account → Personal access tokens (see API tokens), with its own name, such as “Claude Code on the build server”, so you can revoke just that one later. Then add it as a header:
claude mcp add --transport http ottotester http://localhost:8090/mcp --header "Authorization: Bearer <your token>"In Cursor, add "headers": { "Authorization": "Bearer <your token>" } next to "url". Other coding agents that support MCP over HTTP take the same two things: the address, and an Authorization: Bearer <token> header.
Ask for something
Section titled “Ask for something”Once it is connected, ask the agent in plain words. For example:
Find the Shop app’s staging variant in OttoTester, run its saved tests, and when the run is done, tell me which tests failed and why.
The agent lists your workspaces, apps and variants to find staging, picks a run setup, and starts the run. A run carries on in the background, so the agent checks back until it has ended, then reads each test’s result and failure reason.
What the agent can do
Section titled “What the agent can do”- Find workspaces, apps and variants, add an app or a variant, and rescan a variant’s site. A rescan carries on in the background, and the agent checks back to see what it found.
- List run setups, start a run, and test another address for one run only, such as a preview build.
- Check a run, read its log, and read its results: each test’s result, failures grouped by kind, what changed since the last run, and the tests’ quality scores and the run’s cost in AI credits.
- Add references (pasted text, or a link to a web page), and see how far OttoTester has got reading them. Change what a reference counts as (requirements, defects or reference) and which kinds of tests it suggests, or delete it. A delete can’t be undone, so the agent is told to check with you first.
- Review what OttoTester found when it read a reference, as the Review what OttoTester found step does: see each requirement, defect or topic it found with the passage it came from, keep or clear each one, and confirm. The agent also sees how many suggestions a reference’s test kinds left out, which explains a read that gave few or no tests. A zip of existing tests has nothing to review, as on the Proposed tab.
- Read the app’s issue tracker settings and its issues, find out why a list of issues comes back empty, check and count a changed filter, save it, and import issues.
- List, add and edit proposed tests, and have OttoTester propose tests again.
- Create tests from proposed tests, or from a plain description such as “a new user can reset their password”.
- List a variant’s tests, see a test’s recent results, and read its script.
- Group tests into suites, and run a suite at set times: schedule it, change the schedule, pause, resume or delete it.
- Add a run setup for CI, and set which GitHub deployments start a run (workspace admins only).
- See which Slack channels are connected, and choose which channel hears about which variant’s runs (changing that is for workspace admins only).
- Read what Reports shows: pass rates over time, new failures, ongoing failures, flaky and fixed tests, how two releases or two periods compare, and how much of the app’s requirements and defects is covered.
- List the files a run left behind, and look at a failed test’s screenshot.
Connecting Jira, GitHub or Slack needs you to sign in at that service, so the agent can’t do it. It tells you which page to open instead.
For example:
Our Jira import for the Shop app finds nothing. Work out why, and suggest a filter that brings in this sprint’s stories.
AI credits. Starting a run may spend your organization’s AI credits: writing new tests always does, and running saved tests does when a failing test is repaired. So do creating tests, adding a reference, importing issues and proposing tests again, because OttoTester reads what was added and proposes tests from it, and so does rescanning a variant. Adding a variant does not scan the site, and adding a proposed test by hand reads nothing, so those spend none.
What the agent asks you first. Saving an issue tracker filter changes what the whole app imports, the automatic sync included, and proposing tests again removes the proposed tests nobody edited or used. A zip of existing tests keeps all of its proposed tests, but the ones nobody edited are rewritten. Confirming a review archives every active proposed test of the items you cleared, edited ones included, though they can be brought back. The agent must name every item once, as kept or cleared, so nothing is cleared unseen. The agent is told to check with you before doing any of these, and before it deletes a schedule, a CI trigger rule or a Slack routing rule.
What the agent never sees. Replies leave out saved passwords, keys and tokens. Log lines and error messages are cleaned before they reach the agent, so anything that looks like a password or a token is masked.
Screenshots, traces and videos. The agent can look at a screenshot under 1 MB. It is the app’s screen as the run saw it: password fields show dots, but anything the page shows in plain text is in the picture, just as in the report. Traces and videos can hold what was typed into the app, so the agent never gets them. It gets a link that opens each one in your browser, where you are signed in.
Stop an agent
Section titled “Stop an agent”An agent you connected through the browser is listed on Settings → Account → Coding agents, under Connected agents, with when it was last used: select Disconnect. An agent using a token you pasted is listed on Settings → Account → Personal access tokens, under API tokens: select Revoke. Either way, the agent’s next request is refused.
An agent you connected through the browser is also disconnected on its own after 90 days without use.
To use a disconnected agent again, connect it the same way as the first time. OttoTester shows the approve screen every time an agent connects, so you pick its workspaces again.
Related
Section titled “Related”- Reference → API tokens, Roles and permissions
- How do I… → Run OttoTester from your CI

