Test your own MCP server

Connect an MCP server, see every tool an AI agent would see, call a tool with checks, and be told when a tool changes or looks unsafe.

In short

"MCP servers", under "Build" › "Mocks, streams & docs", tests an MCP server you build or run. "Discover" connects to it and lists every tool, resource and prompt an AI agent would see. A safety review reads the tools for hidden instructions and unsafe hints, you approve the listing, and every later discovery says what changed since. You can call any tool with checks and save the call to run again.

Before you start

Steps

  1. Open "Build", choose "Mocks, streams & docs" and open "MCP servers".
  2. Press "New MCP server". To try it first, press "Try the sandbox MCP server": a small bookstore server with one unsafe tool description on purpose.
  3. Give it a "Name" and its "Address", starting with http:// or https://. Under "Headers", add what it needs, one per line as Name: value, with a token in a variable - for example Authorization: Bearer {{mcpToken}}. Press "Save".
  4. Press "Discover". It shows "Connecting…" while it reads the server.
  5. Read the line under it: the server's name and version, its protocol, how many tools and how long it took.

Result: "Tools" lists each tool with what it may do - "Read-only" or "May change data" - and hints such as "Destructive", "Safe to repeat" or "Reaches outside". The safety review and the changes sit above it.

Review the tools and approve the listing

  1. Read "Safety review". Each finding says how serious it is (High, Medium or Low), which tool it is about - or "The server" - what is wrong and what was seen.
  2. If a finding does not apply, press "Dismiss", say why in "Why it does not apply" and press "Dismiss finding". "Bring back" puts it back.
  3. When the tools are what you expect, press "Approve this listing" under "Changes since the approved listing".
  4. After a later "Discover", read that part again: each tool, resource or prompt added, removed or changed, marked "Breaking", "Review" or "Safe". Approve the new listing when it is right.

The review reads tool names, descriptions and hints by fixed rules. It flags, for example, text that talks to the AI model instead of describing the tool, characters a person cannot see, a tool whose name says it changes something but is not marked, and a server that answers without the credential you gave it.

Call a tool with checks

  1. Under "Tools", click the tool. "Call" opens with its name.
  2. Fill its arguments in "Form", or switch to "JSON" and write one JSON object.
  3. If the tool is not marked read-only, tick "This call may change data on the server". Calls run against the real server.
  4. Under "Checks", press "Add a check" and choose "What to check", for example "The tool did not fail", "Text contains", "JSON field", "Time in ms" or "Matches the output schema". A call has at most 20 checks.
  5. Press "Call" and read the "Answer": whether the tool answered or said it failed, its text or structured content, each check, and "Messages exchanged".
  6. To keep it, type a "Call name" and press "Save as a call". It is listed under "Saved calls" with "Run", "Open" and "Delete".

Good to know

If something goes wrong

Related