Agents fail quietly
A wrong tool pick or a malformed argument looks fine in a demo. You find out from a support ticket, not from a dashboard.
Open source · Apache-2.0 · First release in progress
Point Neurouter at your OpenAPI or GraphQL spec. In ten minutes you have a governed MCP server, a score for how well agents use it, and a feed of what they wish it could do.
Any OpenAPI file can become an MCP server in a minute. What you get is a mirror of your API, built for programmers, handed to a model. Six things go wrong.
A wrong tool pick or a malformed argument looks fine in a demo. You find out from a support ticket, not from a dashboard.
Mirror a whole API and the model has to choose among near-duplicates, deprecated endpoints and internal routes it should never see.
Full upstream payloads land in the context window: nested objects, links and fields nobody asked for.
The generated server that reads orders can also issue refunds, with whatever credential was pasted into a config file.
When an agent can't do what the user asked, it guesses or gives up. Nobody learns what the API was missing.
“Which calls did the agent make, under which policy, with what result?” needs an answer that isn't a chat transcript.
One loop, run against your spec and a mock of your API until the number says agents succeed.
spec → tool model → overlay
Import OpenAPI 3.x or GraphQL from a URL, a file or introspection. Neurouter compiles a tool model and lints it; you curate it with an overlay.
Importing specsenvironments · read-only · policy
Each server gets a built-in mock plus the dev, QA and prod environments you add, each with its own credentials. Writes stay off until you turn them on, and every call passes one policy pipeline.
Environmentstasks · evals · readiness
Agents' calls are grouped into tasks you can trace. Evals generate tasks from your spec, run them on your model keys and produce a readiness score.
Evalsfix suggestions · unmet needs
Failed tasks become fix suggestions in the form of overlay changes, verified before you apply them. Unmet needs show what to build next.
Overlays↻ Re-run the eval after every change: the score tells you whether it helped.
Neurouter generates realistic tasks from your spec, including some the API can't do, runs them against a mock with the models you choose, and checks what the agents actually called. The result is a score from 0 to 100 for each model and mode: Not ready, Needs work, Ready or Excellent.
Example (fictional Acme Orders API)
+35 pts
| Model | Tool mode | Code mode |
|---|---|---|
| claude-sonnet | 81 (83%) | 87 (90%) best |
| claude-opus | 84 (86%) | 89 (92%) |
| claude-haiku | 70 (71%) | 74 (76%) |
The headline is the first model's best mode. Model names are generic tiers; the numbers are an illustration, not benchmark results.
.github/workflows/agent-readiness.yml
on: pull_request
jobs:
readiness:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: neurouter/core/actions/eval@v0.2.1
with:
spec: openapi.yaml
min-score: 75
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
Or locally
npx neurouter eval --spec openapi.yaml --min-score 75
For multi-step work, the agent writes a short Python script that calls your tools as functions. Every inner call passes the same ACL, policy, rate limit and audit as a direct call. Writes in dry-run return a plan, not a side effect.
run_script · mode="dry_run"
# Late, unpaid orders: add a note to each one
orders = acme_orders.list_orders(status="unpaid", limit=200)
late = [o for o in orders if ops.days_since(o["due_date"]) > 30]
for o in late:
acme_orders.add_order_note(order_id=o["id"], text="Reminder sent")
return {"late": len(late)}
| Tool | Arguments |
|---|---|
| add_order_note | order_id: "ord_1042", text: "Reminder sent" |
| add_order_note | order_id: "ord_1077", text: "Reminder sent" |
| add_order_note | order_id: "ord_1093", text: "Reminder sent" |
Every Neurouter server includes a small set of neurouter_* tools. Agents use them to frame their work and report problems; you read the result in the ops inbox.
| Tool | What the agent does | What you get |
|---|---|---|
| begin_task / end_task | States the goal, then the outcome | Calls grouped into tasks with success rates |
| report_unmet_need | Says what the user wanted that no tool can do | Grouped requests: your API's missing features |
| report_issue | Flags a tool that misbehaves | Bugs with evidence, linked to the call |
| log_decision | Records a choice and its reason | The “why” next to each call in the trace |
| explain_error | Asks how to fix a failed call | Fewer retries in the dark |
| get_examples | Asks for known-good arguments | Fewer malformed calls |
| whoami | Checks environment, scopes and limits | Agents that know writes are off before trying |

Defaults are conservative and every rule runs in one place: the same pipeline checks direct calls, searched calls, script calls and eval runs.
Security modeladd_order_note but not create_refund.env:ORDERS_TOKEN, never values. Stored secrets are encrypted.An overlay is a small YAML file next to your spec. It renames tools, hides the ones agents shouldn't see, rewrites descriptions, adds examples and trims responses to the fields that matter.
Re-import the spec; your curation stays. Overlays point at operations, not at lines in the file, and anything that no longer matches is listed after the import.
acme-orders.overlay.yaml
overlay: 1
tools:
"operationId:getOrdersV2":
name: list_orders
description: List orders, newest first. Filter by status or customer_id.
response:
include: ["[].id", "[].status", "[].total", "[].created_at"]
maxItems: 50
"operationId:legacyExportOrders":
hidden: true
"operationId:createRefund":
name: create_refund
examples:
- title: Refund 12.50 EUR # amount is in minor units
arguments: { order_id: ord_1042, amount: 1250, currency: EUR }
Neurouter is one Node.js service with a sandboxed executor beside it. Start it on a laptop with SQLite, then run it next to your API in Docker or Kubernetes with Postgres. Bring your own model keys for evals.
Local, with the config in your repository
npx neurouter serve --config neurouter.yaml
# prints a one-time sign-in link for the console
neurouter.yaml
version: 1
servers:
- slug: acme-orders
name: Acme Orders
spec: { path: ./specs/orders.yaml }
overlay: ./overlays/acme-orders.overlay.yaml
environments:
- slug: prod
kind: prod
baseUrl: https://api.orders.acme.test
auth: { type: bearer, secret: "env:ORDERS_TOKEN" }
v0.2.1 is out: npm neurouter, image ghcr.io/neurouter/core and the neurouter-core Helm chart.
Software that sits between agents and your API should be something you can read. Inspect it, run it, change it.
Apache-2.0 · free to use, modify and run in production.
A hosted Neurouter, operated for you.
Neurouter Hub puts one governed gateway in front of them: single sign-on, per-tool access control, human approvals and a tamper-evident audit log.
Generating tools from a spec is the easy part, and Neurouter does it too. The difference is what comes after: overlays to curate the tool set without forking the spec, one policy pipeline with read-only defaults on every call, a governed code mode, ops tools that let agents report what's missing, and evals that tell you with a number whether agents succeed.
Evals run on your own model API keys. OpenAI, Anthropic and Gemini models are supported (default gpt-6-luna). You choose the models, modes and repetitions, and the console estimates the number of model calls before a run starts. Neurouter adds no charge of its own.
Neurouter is self-hosted and sends nothing to us. It connects to the APIs you configure, your identity provider if you use one, and, when you run evals, the model provider whose key you supplied. The optional embedding model for tool search runs locally; it is downloaded once when you turn it on.
Scripts are a restricted Python subset with no imports, classes, files or network, run by the Monty interpreter in a separate executor process with CPU, memory, time and call limits. The worker is discarded after every run. Scripts reach your API only through Neurouter, so every inner call passes the same policy, and they never see credentials or upstream URLs.
Yes. Each server and environment is a remote MCP endpoint over Streamable HTTP. Clients connect with an API key or sign in with OAuth 2.1, and the console generates the configuration snippet for Claude Code, Cursor, VS Code and generic clients.
Yes, from SDL or introspection. Each query and mutation field becomes a tool, mutations count as writes, and overlays, policy and evals work the same way as for OpenAPI.
They come from the same team. Neurouter makes one API ready for agents; Neurouter Hub is a gateway that governs the many MCP servers an organization already runs. A Neurouter server is a remote MCP server, so it can sit behind Hub.
The core is open source under Apache-2.0. A managed cloud is planned; its pricing isn't set, so we don't publish any.
Import a spec, connect a client, run an eval. Then make the number go up.