Blog / Test MCP servers with agents

Your agent test may not be testing your MCP: 13 of 36 runs drove the browser instead

You write a test job, the agent answers, the answer is right. You count it as a pass for your MCP server. But did the agent use your server? In our first live pass, more than a third of runs didn't.

Leonid Bugaev · Published 21 Oct 2026

What happened

Our first live pass on a 99-tool production MCP server was 36 Codex runs of read-only jobs, inside Codex's read-only sandbox, through a read-only proxy. A browser-automation skill was still enabled on the machine.

Runs that drove the browser
13/36 (22–52%)

In those 13 runs Codex used the skill to drive a signed-in Chrome over a localhost port and clicked through the product's web app. It read the numbers off the screens. Nothing changed in the account. But none of those runs tested the MCP server.

We threw the whole pass out of scoring and re-ran with the side door shut.

Why agents go around MCP

Make sure your agent tests test your MCP.

We run your users' jobs through the agent apps with the side doors closed, and fail any run that goes around your server.

Test your MCP

How to detect it

How to block it

  1. Disable browser features in the agent app for the run. In Codex we pass --disable browser_use, --disable in_app_browser and --disable browser_use_external, and disable the browser skill.
  2. Limit tools in Claude Code with --allowedTools for your MCP read tools and --disallowedTools for Bash, WebFetch, WebSearch and the browser skill.
  3. Turn off other MCP servers for the run.
  4. Fail the run in the scorer if it touched a shell or browser, whatever the answer. Ours has a safety check named “used MCP, not shell or browser”.

The whole safe setup: test agents against production read-only. Scoring pitfalls: validate your scorer.

Go deeper: Why agents call the wrong tool, How Codex finds MCP tools, Pass rates with ranges.

What it means for your users

Your users won't disable anything. If the agent can't find your tools, it'll try the browser, or tell them your product has no connection. After we blocked the browser, Codex still missed the tools in 8 of 80 runs (5–19%) and said no connection was available. Those misses are about your server's discoverability, and they're worth fixing.

How we measured

FAQ

Why does my agent bypass my MCP server?

Usually because it didn't find or recognise the tools, or another route looked easier. If a browser skill or shell is available, the agent may use the web app or the API directly instead.

Does a read-only sandbox stop browser use?

Not necessarily. In our runs Codex's read-only sandbox didn't block a browser bridge on localhost, so the agent drove a signed-in browser.

How do I know whether a run used MCP?

Check the transcript or wire log for MCP tool calls, and flag any shell, web-fetch or browser tool calls. A run with an answer but no MCP calls didn't test your server.

Should I count browser runs as failures?

In a test of your MCP server, yes. Score them separately from wrong answers so you can see both problems.

Make sure your agent tests test your MCP.

We run your users' jobs through the agent apps with the side doors closed, and fail any run that goes around your server.

Test your MCP