> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.runtype.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.runtype.com/_mcp/server.

# Analyze your MCP server

> Test how AI agents use your Model Context Protocol (MCP) server from the Runtype dashboard, read the report, and test tool fixes.

Test your Model Context Protocol (MCP) server with simulated users and AI client agents. Find which tasks work, where agents fail, and what tool changes help.

## Before you begin

Make sure you have the following before you start:

* An organization workspace in Runtype.
* An MCP server at a public HTTPS URL that supports streamable HTTP transport. To test a local server, see [Test against your real agent](/simulate/test-against-your-real-agent).
* OAuth sign-in or a bearer token, if your server requires authentication.

## Import your MCP server

Runtype reads your server's tools and drafts an **Agent experience** simulation. It doesn't change your server.

To import your MCP server, follow these steps:

1. In the Runtype dashboard, open **Simulations**.
2. Click **New simulation** and select the **Import from a URL** tab.
3. Keep **MCP server** selected.
4. In the **Address** field, enter your server URL, for example `https://mcp.example.com/mcp`.
5. Click **Import and draft**.
6. If your server requires authentication, complete the sign-in panel that appears:
   * Optional: edit **Save the connection as** to set the connection name (up to 128 characters).
   * To authenticate with OAuth, click **Sign in** and complete sign-in in the popup window.
   * To use a bearer token, or if the server doesn't offer OAuth, click **Use a token**, paste the token in **Token**, and click **Save token and read the server**.

Runtype saves any credentials and opens the **Agent experience** draft.

If Runtype refuses the address or credentials, check the error message in the form:

* **Unreachable or private address** (starts with `Runtype can't reach this address:`): enter a public HTTPS URL, or relay a local server.
* **Tools unreadable** (starts with `Runtype could not read the tools of`): confirm the URL points to an MCP server that lists its tools over streamable HTTP.
* **No OAuth on the server** (`This server does not offer sign-in. Use a token instead.`): click **Use a token**, paste a bearer token in **Token**, and click **Save token and read the server**.
* **Connection name already in use** (states that a saved connection already points at another server): enter a different name in **Save the connection as**, or rename or remove the saved connection.

## Review the draft and start the run

Runtype drafts simulated users and tasks from your server's tool list, plus your website's homepage when the server is on your own domain. To review the plan and start the run, follow these steps:

1. Under **What you're comparing**, review the client models (**Claude**, **GPT**, and **Gemini** by default). Remove any model you want to exclude, or click **Add back** to restore it.
2. Under **Who tries it**, remove any drafted simulated users that don't match your audience.
3. Under **What they try**, remove tasks you don't need, or click **Redraft tasks** to generate a new set.
4. Under **Tools the client agents see**, check which tools run live:
   * **Read-only, run for real**: tools marked read-only (`readOnlyHint: true`) run against your live server.
   * **Write tools, stubbed**: tools not marked read-only are stubbed by default, returning a fixed reply without calling your server. To send write calls live, select **Send write tools for real on this run**. If a conversation calls only stubbed write tools, it isn't scored and shows **No tool data**. Mark tools that only read data with `readOnlyHint: true` so they run for real.
5. Under **How thorough**, change the run settings if needed:
   * **Tries per pairing**: set 1 to 10 tries per pairing (defaults to one). Two or more tries show which results vary across runs.
   * **Turns per conversation, at most**: set 1 to 20 turns (default eight).
   * **Conversations at once**: set 1 to 8 concurrent conversations (default four).
   * Optional: click **More** to change the simulated-user and judge model, set transcript retention (up to 30 days, or numbers only with no transcripts), or set the regression alert threshold.
6. In the **Estimate** panel, click **Estimate and run** to save the draft and view the conversation count with **Low**, **Expected**, and **High** cost estimates.
7. Check **Spend cap**, which starts at the high estimate.
8. Click **Run, up to** followed by your spend cap (for example, **Run, up to \$2**).

The run continues after you leave the page. Open it from **Simulations** at any time to view progress or the finished report.

Runs against an MCP server always require spend approval, and the estimate covers model calls only. If spend reaches **Spend cap** or your credit runs out, Runtype stops starting new conversations. Conversations already running finish, so final spend can pass the cap. For billing details and Connect credit, see [Limits and pricing](/reference/limits-and-pricing#connect-credit).

## What Runtype runs

For each user and task pairing, each selected client model connects to your MCP server over streamable HTTP and works through the task with the simulated user. A judge grades whether each conversation finished, and Runtype records tool choice, argument validity, and error recovery.

Requests to your server carry the `Runtype-Simulation/1 (+https://runtype.com/docs/simulations)` `User-Agent` header so you can identify simulation traffic in your logs. If your server lists more than 50 tools, a model provider might reject the tool list. Those conversations end as **Client refused the tools** and aren't scored.

## Read the report

When the run finishes, the report opens with the verdict at the top and detailed evidence in the sections that follow.

### Summary card

The top card shows a verdict badge, a summary sentence, and a recommended next step. On a one-try run, the verdict percentage counts tasks, and a task counts as working only when every tested agent finished it. With multiple tries, the percentage counts conversations instead.

The following table lists the verdict badges for a run of your server as published (percentages count tasks on a one-try run, or conversations with multiple tries):

| Verdict badge      | Meaning                                                | Next step shown      |
| ------------------ | ------------------------------------------------------ | -------------------- |
| **Almost perfect** | 95% or more finished.                                  | **Add harder tasks** |
| **Worth fixing**   | 50% to 94% finished.                                   | **Draft a design**   |
| **Needs work**     | Under 50% finished.                                    | **Draft a design**   |
| **Can't tell yet** | The run stopped early or couldn't grade conversations. | **Run again**        |

When a run compares a proposed design against your current server, the summary card compares **Today** and **With this design** and lists each proposed change. The following table lists the verdict badges for a design comparison:

| Verdict badge          | Meaning                                                                                                                                                                                                                                                                              | Next step shown                                                                                                                  |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- |
| **Worth shipping**     | The design improves finish rates, passes safety checks, and stands on complete paired evidence from real answers.                                                                                                                                                                    | **Copy instructions**, **Download**, and **Draft the next fix** (when under 95%)                                                 |
| **Promising**          | Finish rates look higher, but the design isn't cleared to ship. The cause can be too few real server answers, answers derived from other records or earlier writes, a write that could not be verified, dropped conversations, or a run that covered only part of the scenario plan. | **Record answers** when real answers are missing, otherwise **Run again**; **Copy instructions** and **Download** when available |
| **Too close to call**  | The measured difference doesn't clearly separate the two versions.                                                                                                                                                                                                                   | **Run again**, plus **Copy instructions** and **Download** when a brief is available                                             |
| **Not worth shipping** | Agents fail more often with the design.                                                                                                                                                                                                                                              | **Draft the next fix**                                                                                                           |
| **Not safe to ship**   | A safety check failed or a simulated user reached tools outside their grants.                                                                                                                                                                                                        | **Draft the next fix** or **Run again**                                                                                          |
| **Almost perfect**     | Agents finish 95% or more of tasks or conversations with either version.                                                                                                                                                                                                             | **Add harder tasks**                                                                                                             |
| **Can't tell yet**     | The run stopped early or couldn't be scored.                                                                                                                                                                                                                                         | **Run again**                                                                                                                    |

### How each agent did

**How each agent did** groups outcomes by **Client model** across **Today** and **With this design**. Each square represents one conversation:

* **Done**: finished with no tool errors.
* **Done after an error**: finished after a tool returned an error.
* **Didn't finish**: didn't finish the task.

Conversations that called only stubbed write tools aren't scored and appear as **No tool data** ("Not scored: the tools used aren't marked read-only"). Add `readOnlyHint: true` to tools that only read data, then run again.

Click a **Highlight** chip (**All**, **Wrong tool**, **Invalid arguments**, **Stuck on an error**, or **Gave up**) to filter failure causes. Under **Every conversation**, click a square for a summary, then click **Open conversation** for the full transcript.

### Where agents struggle today

**Where agents struggle today** (or **Where agents struggle with this design** when only a design ran) summarizes tool problems and lists each tool across the following columns:

* **Tool**: the tool name.
* **Calls**: total calls by client agents.
* **Right tool picked**: how often agents picked the tool when a task needed it.
* **Valid arguments**: share of calls with valid arguments.
* **Errors recovered**: how many errored conversations recovered after an error from the tool.

When comparing a design, each cell shows the change from **Today** to **With this design**.

### Errors agents hit

**Errors agents hit** lists each distinct error message, its count, and how often agents recovered or stayed stuck. Errors from a simulated design carry the **From this design** tag, and errors from Runtype carry the **From Runtype, not your server** tag. Click **View** on an error to open its conversations.

### More fixes to consider

When your tools' responses could be easier for agents to use, **More fixes to consider** lists suggestions by tool. To include a suggestion in a staged design, select a design and click **Add to design**.

### Other designs tried

When you test more than one design, or when suggestions haven't run, **Other designs tried** lists every other design. Each row shows the design's task success and result. Click a design, or an item under **Suggested, not run yet**, to run it, edit it, or view its conversations.

### Safety and Run details

If a safety check fails or warns, **Safety** appears in full with **Injection**, **Writes**, and, when checked, **Permissions**. Otherwise, the safety summary appears inside **Run details**.

Expand **Run details** to view the following groups:

* **Setup**: what ran and how.
* **Briefs**: exported design briefs.
* **Data**: transcript retention settings, with **Change** to update retention.
* **Recording**: how the run recorded tool answers.
* **Caveats**: notes on anything that limits the results, such as unpriced models or early stops.
* **Runs**: earlier runs for this simulation.

## Test a proposed design

You can test tool changes in simulation before updating your MCP server code. To draft and test a design, follow these steps:

1. On a finished report, click **Draft a design** or **Find better variants**. Runtype drafts candidate designs from failed conversations without starting a run.
2. Review or edit a proposed design, then run it to compare **Today** against **With this design**.
3. If the verdict is **Promising** because too few answers came from your real server, click **Record answers** to record real responses for the changed tools and run again. If the summary names dropped conversations or partial scenario coverage, run the missing conversations or finish the scenario plan instead.
4. When a design reaches **Worth shipping** and a design brief is available, click **Copy instructions** or **Download** to export the Markdown brief.
5. Apply the changes to your MCP server, deploy them, and click **Run again** to confirm the improvement.

## Next steps

* [Read a simulation report](/simulate/read-a-simulation-report): interpret verdicts, scores, and confidence on agent simulations.
* [Test a proposed change](/simulate/test-a-proposed-change): compare proposed changes against a baseline simulation.
* [Share a report](/simulate/share-a-report): share a report from the **Share** menu, create an unlisted link, or export results.