Environments and safe writes
Mock, dev, QA and prod per API, each with its own endpoint, credentials and write rules — read-only by default, with human confirmation for production writes.
An MCP server that can read your orders can usually also refund them, with whatever credential was in the config. Neurouter separates the two by environment.
One endpoint per environment
Every server has a built-in mock (generated from the spec, used by evals) and the environments you add, such as dev, QA and prod. Each is its own MCP endpoint with its own base URL, credentials, limits and policies. API keys and OAuth tokens are bound to one environment, so a dev key can't touch prod.
Writes are opt-in
- New environments are read-only: write tools are refused, everywhere.
- Enable writes for all tools or for a list, per environment.
- On prod, each write needs the user's confirmation in their client; clients that can't ask are refused.
- Code-mode scripts on prod run a dry run first and may only perform the writes the user approved.
- Kill switches turn off calls, writes or code mode for a tool, a server, an environment or everything.
Credentials stay put
Configuration holds references (env:ORDERS_TOKEN, secret:orders-prod-token), never values. Stored secrets are encrypted. Tokens never reach agents, scripts, logs or the audit log. Each user can also connect their own upstream account (OAuth passthrough) where the API needs per-user access.
Read more: Environments and credentials · Security model · Open environments in the demo console