For AI agents: the complete documentation index is at https://docs.routebase.dev/llms.txt. Every page is also available as Markdown by appending index.md to its URL or by sending Accept: text/markdown.

Connect your agent

Your AI agent can search and read these docs over MCP. The endpoint is read-only and needs no key.

MCP endpoint

https://docs.routebase.dev/mcp

Claude Code Run in a terminal

claude mcp add --transport http routebase-documentation https://docs.routebase.dev/mcp

Cursor Add to .cursor/mcp.json

{
  "mcpServers": {
    "routebase-documentation": {
      "url": "https://docs.routebase.dev/mcp"
    }
  }
}

VS Code Add to .vscode/mcp.json

{
  "servers": {
    "routebase-documentation": {
      "type": "http",
      "url": "https://docs.routebase.dev/mcp"
    }
  }
}

Codex Add to ~/.codex/config.toml

[mcp_servers.routebase-documentation]
url = "https://docs.routebase.dev/mcp"
Testing

Testing a Local API

Routebase sends test requests from its servers, which cannot reach localhost on your computer. When you start a run in the Routebase app on that computer, the app sends the requests to the local address itself and hands the responses back. Assertions, scripts, variables and the run history work as for any other run.

Running tests requires tests:execute.

When a request goes from your computer

A request goes from your computer when both of these hold:

  • Its URL points at localhost, 127.0.0.1 or [::1], over http or https and on any port.
  • You started it in the Routebase web app or desktop app, in one of these ways:
    • Try It in the API designer
    • The play button of a test case
    • Run All or Run Selected of a suite
    • Running a scenario

Seeds and snapshot resets that run as part of such a run take the same way. Every other address keeps going from the Routebase servers, which refuse private addresses. That includes other private networks such as 192.168.1.10 and hosts such as api.localhost.

A result that went from your computer carries the badge Ran on this device. The badge shows next to the status of the result and in the run history of suites and scenarios.

Allowing a local address

The first request to an address asks before it leaves your computer. An address here is the scheme, the host and the port, such as http://localhost:5199.

  1. Start the run. A dialog asks Allow test requests to http://localhost:5199?
  2. Click Allow if the address belongs to an app you are developing. Test cases are shared with your organization, so a case could also point at another service on your computer.
  3. In Chrome, allow local network access when the browser asks. Chrome asks once for the Routebase site.

The run continues once you allow the address. Don't allow refuses the request, and the next run to that address asks again. Routebase keeps the approval on this computer for your user, in the browser you use or in the desktop app.

To take an approval back, open Settings → Preferences and click Revoke next to the address under Local test targets. The next run to that address asks again.

Preparing your local app

In the web app, the browser sends the request from the Routebase page. Your app therefore has to allow that page to call it, which is CORS. Configure it like this:

  • Allow the origin of the Routebase app you work in, such as https://app.routebase.dev.
  • Allow the headers your tests send, and name Authorization and Content-Type explicitly.
  • Credentials are not needed, because Routebase sends no cookies of the browser with a test request.

An app that maps the API reference of Routebase for ASP.NET Core does this by itself while it runs in the Development environment. The desktop app sends the request without the browser, so it needs no CORS.

Browser and desktop notes

Where What to know
Chrome Asks once for local network access. If you denied it, allow Local network access for the Routebase site in the site settings of the browser.
Safari Blocks http://localhost from the Routebase page, and the result says so. Use https://localhost with a certificate Safari trusts, or the desktop app.
Any browser Reaches [::1] over https only. A page cannot send the Cookie, Origin or Referer header, does not follow a redirect and does not accept a certificate the browser does not trust.
Desktop app Sends the Cookie and Referer headers, follows redirects that stay on the three local hosts and accepts the development certificate of your local app.

For https in the browser, trust the development certificate of your framework. For ASP.NET Core, dotnet dev-certs https --trust does that.

Runs that always go from the servers

These runs never go from your computer, so a local address in them fails with a message that says so:

  • Debug runs of a test case
  • Performance runs
  • Schedules and monitors
  • The Routebase CLI, the GitHub Action and AI agents over MCP

For these runs, point the environment at a mock server or at a deployed API.

Troubleshooting

Message Cause What to do
Routebase sent this request from its servers, which cannot reach localhost. The run went from the servers. Start it in the Routebase app on your computer, or point the environment at a mock server.
Could not reach http://localhost:5199. Is the app running? The app is not running, or the browser does not trust its certificate. Start the app, or trust its development certificate.
… answered, but does not allow requests from … (CORS). The app does not allow the Routebase page. Allow the origin in your app as described above.
This browser does not allow … to reach … Chrome's local network access was denied. Allow Local network access for the site, then run again.
Allow test requests to … in the Routebase app, then run again. The approval came after the run had stopped waiting. Run again. The approval you gave is kept.
The device that started this run could not be reached. The tab or the app that started the run closed or lost its connection. Keep the Routebase app open and run again.