Reference
MCP server
Give an agent its own fake system to practise on. The Slurry MCP server lets any MCP client create, configure, fork, observe and delete simulations. It is included on every plan.
Set up Slurry for me: fetch and follow https://slurry.io/agent-setup.md. It shows a live demo, installs this server for your client and creates your first simulation. Read the instructions it follows.Connection details
| Setting | Value |
|---|---|
| URL | https://api.slurry.io/mcp |
| Transport | Streamable HTTP |
| Auth | OAuth sign-in (recommended), or Authorization: Bearer slurry_acct_live_... with an account key. See Connecting. |
| Plan | Every plan (Starter, Team, Scale) |
Claude Code
claude mcp add --transport http slurry https://api.slurry.io/mcp
# then run /mcp in Claude Code and choose AuthenticateAdd --scope project to share the server with your team through .mcp.json; each person signs in with their own account. To use an account key instead, keep it in an environment variable:
claude mcp add --transport http slurry https://api.slurry.io/mcp \
--header "Authorization: Bearer $SLURRY_API_KEY"Cursor and other HTTP clients
Clients that support remote servers with OAuth take the URL alone and ask you to sign in on first use. For Cursor, put it in .cursor/mcp.json in the project or ~/.cursor/mcp.json globally.
{
"mcpServers": {
"slurry": {
"type": "http",
"url": "https://api.slurry.io/mcp"
}
}
}Claude Desktop
Claude Desktop runs local servers from claude_desktop_config.json. Bridge to Slurry with mcp-remote, which passes the account key as a header:
{
"mcpServers": {
"slurry": {
"command": "npx",
"args": [
"-y", "mcp-remote", "https://api.slurry.io/mcp",
"--header", "Authorization: Bearer ${SLURRY_ACCOUNT_KEY}"
],
"env": { "SLURRY_ACCOUNT_KEY": "slurry_acct_live_..." }
}
}
}IP allow-lists and agents
New simulations are locked to an IP allow-list. When an agent creates one over MCP, pass ipAllowlist with the addresses your code will call from. GET https://api.slurry.io/ip tells you the address Slurry sees for the machine you run it on. For a short-lived caller, add_access_entry allows one address for a set number of minutes without touching the permanent list.
A simulation as an MCP server, for the agent under test
The server above controls Slurry. Every simulation also serves its own API as MCP tools at <simulation URL>/_slurry/mcp (for example https://<acme-jira>.slurry.io/_slurry/mcp), so an agent that calls the vendor through MCP tools can be tested as it ships. It takes a simulation key, never an account key, as Authorization: Bearer slurry_sim_..., and obeys the simulation's IP allow-list and status. get_simulation returns the URL as mcpUrl, and slurry sims mcp <sim> prints it with a client config.
# the simulation's own MCP server, with a simulation key from the environment
claude mcp add --transport http acme-jira https://<acme-jira>.slurry.io/_slurry/mcp \
--header "Authorization: Bearer $ACME_JIRA_API_KEY"- One tool per operation, named after the operation id, with its path and query parameters and a
bodyfor the request body. GET tools are read-only and DELETE tools destructive. - An API with more than 100 operations offers
search_operationsandcall_operationinstead. Add?operations=id1,id2to the URL to get chosen operations as tools, or?tools=genericfor the pair on any API. - Every tool call goes through the simulation like a REST call: rules, faults,
Slurry-Seed,Slurry-SessionandSlurry-Forceheaders, request logs, events, webhooks and rate limits all apply, sofind_requests,verify_requestsandevaluate_runsee the agent's MCP calls. - A reply of 400 or more comes back as a tool error carrying the status and body.
Make the MCP server misbehave
An HTTP fault reaches an MCP client only as a tool error. To test what your agent's MCP client does with a broken MCP server, set mcpFaults: a share of tool calls then get a JSON-RPC error (rpcErrorRate, code -32603), a result that does not parse (malformedRate), no answer until the connection closes after hangSeconds, from 1 to 30 (hangRate), or a dropped connection (disconnectRate). Off by default. tools limits it to some tools, and seed repeats the same faults for the same calls on any fork, as a Slurry-Seed header does.
slurry sims mcp-faults acme-jira --rpc-error-rate 0.2 --hang-rate 0.1 --hang-seconds 15 --seed run-42
slurry sims mcp-faults acme-jira --off- Only
tools/callis faulted:initializeandtools/listalways work, so the client connects and the fault is in the call. - A faulted call never reaches the API, so it writes nothing and is not in the request log. A reply that goes out carries
x-slurry-mcp-fault. - In a JSON-RPC batch each
tools/calldraws its own fault and only the faulted calls break;tools/list, notifications and the other calls answer as usual, in order. A hang or a dropped connection takes the whole batch, as on a real server, and a batch holdinginitializeor a cancellation is faulted whole. - At most 10 calls hang at once per simulation; past that a call is served.
- A fork inherits the setting. It is set with an account key, so the agent under test, holding a simulation key, cannot turn its own faults off.
- Over REST:
GET,PUTandDELETE /v1/simulations/{id}/mcp-faults. Over MCP:get_mcp_faultsandset_mcp_faults.
Tools
Read tools are annotated readOnlyHint; tools that replace or delete data carry destructiveHint so clients can ask before running them. Every tool refuses an argument it does not know, as the REST API answers 400 for an unknown option, so a misspelt strict or allowPartial is an error rather than a check that quietly ran without it; send only the arguments a tool lists. Tools marked AI use your monthly AI allowance, then prepaid credit (or your own model key).
Simulations
| Tool | What it does | Access | AI |
|---|---|---|---|
search_library | Find a ready-made API in the library by name or vertical, a page at a time (total and nextOffset). | Read | - |
list_verticals | Every library category with how many APIs it has. | Read | - |
ask_slurry | Ask for integration advice in plain English: which simulation fits, how to point a client at it, how to test an edge case. | Read | - |
get_integration_guide | Everything needed to integrate first time: base URL swap, auth, collections, first calls as curl and TypeScript, paging, errors, webhooks and a checklist. For a library slug or one of your simulations; task focuses it. | Read | - |
list_simulations | List your simulations and forks with status and URL. | Read | - |
create_simulation | Create one from a library slug or an OpenAPI document. Designing the world uses AI unless it comes pre-analysed from the library. | Write | Yes |
get_simulation | Status, URL and the simulation MCP URL (mcpUrl), collections, record counts, behaviour, rules, keys and webhooks. | Read | - |
get_status | Short status for polling: status, detail, URL, kind and expiry. | Read | - |
get_usage | Plan, AI allowance left, prepaid credit, requests this month and limits. | Read | - |
get_settings | The organisation's settings: idempotencySecrets says whether a reply stored under an Idempotency-Key keeps a new API key or signing secret (replay) or never does (redact, the default). | Read | - |
update_settings | Owner or admin only: set idempotencySecrets to replay (a retried create gets the key again) or redact (the default: stored as [redacted]). | Write | - |
report_issue | Report that a simulation differs from the real vendor API (shape, status, missing endpoint, data, behaviour) with the operation, x-request-id and expected vs actual. Staff triage every report. | Write | - |
list_reported_issues | Your organisation's reported issues with status, resolution and the version a fix shipped in. | Read | - |
set_status | Pause or resume a simulation. | Write | - |
delete_simulation | Permanently delete a simulation or fork and its data. | Destructive | - |
Data and activity
| Tool | What it does | Access | AI |
|---|---|---|---|
list_records | Read the records in one collection. | Read | - |
import_records | Put your own records into a collection (upsert or insert); webhooks fire as for API writes. Content is reviewed as seed records are. | Destructive | - |
plant_canaries | Plant prompt-injection text and fake secrets in records, with checks that fail if an agent acted on or leaked them. | Write | - |
plant_defects | Plant known dirty data (near duplicates, casing, spacing, emptied fields, junk rows) and return the answer key. | Destructive | - |
recent_activity | Latest data change events and API requests, each request with the engine build that served it. | Read | - |
export_requests | A run's requests as HAR or JSON Lines, at most 200 (the route gives up to 5,000). | Read | - |
find_requests | Search the requests your system sent by method, path, status, operation, session, query and body conditions; optionally with their bodies. Each names the engine build that served it. | Read | - |
verify_requests | Check your system made the calls it should have (exactly, at least or at most N matching requests), with near misses and the filters they failed. | Read | - |
verify_trajectory | Did a run's calls happen in the right order, across simulations? Modes contains, strict, unordered, within, over one session. | Read | - |
api_coverage | Which of the vendor's operations did a run call? Percent covered, what was not, and a gate on a minimum or on named operations. | Read | - |
audit_pagination | Did a client read every page, once? A page asked for again, a walk that stopped while more remained, one page of a long list. | Read | - |
audit_retries | Did a client back off, or hammer? Judges the retries in one session: the gap before each, a retry sooner than the Retry-After you set, a retry storm, a POST retried. | Read | - |
reconcile_records | Does system B now match system A? Joins a collection from two simulations on a key: missing, mismatched, written twice, extra. | Read | - |
verify_invariant | Did a number only move one way across a run's writes? Reads each create and update of a collection in order and lists the writes that broke it (a total that dropped and was put back). | Read | - |
verify_state | An answer key over records after a run: select records of a collection, require conditions of each, expect how many; failures and near misses say what was different. | Read | - |
validate_requests | Check what your system sent would have been accepted by the real vendor: parameters and JSON bodies against the vendor spec (required, types, enums, formats, unknown properties), with each problem and the commonest ones. | Read | - |
evaluate_run | Grade a run in one call: up to 20 requests, valid and state checks across your simulations and forks, the Slurry-Session of the run applied to every request check; pass, score, a line per check saying what was expected and found, the engine build that graded it and the simulations read (with the base each fork was made from). | Read | - |
Time and behaviour
| Tool | What it does | Access | AI |
|---|---|---|---|
fast_forward | Run the behaviour plan for N simulated hours (up to 720); each rule catches up to 200 steps. | Write | - |
reset_simulation | Put the records back to the original seed. Rules and behaviour are kept. | Destructive | - |
rebuild_simulation | Apply the latest library version of this API (spec, data design, behaviour) and re-seed; useWorld adopts or leaves the organisation's world. Keeps URL, keys, rules and webhooks. | Destructive | - |
update_behaviour | Replace the whole scheduled behaviour plan. | Destructive | - |
add_behaviour_rule | Append one behaviour rule (or replace the one with the same id) and keep the rest of the plan. Saves a compiled behaviour rule. | Write | - |
Rules and failure
| Tool | What it does | Access | AI |
|---|---|---|---|
list_rules | Endpoint rules with id, enabled, review status and expiry. | Read | - |
explain_rules | Which rule a request you describe would hit, and why each other rule would not. Counts nothing. | Read | - |
reset_rule_counts | Start failFirst, passFirst and expireAfter counts again, for a simulation or one rule, without resetting the data. | Write | - |
lint_rules | Rules that can never fire, and why: shadowed, no such operation, wrong method, expired, held. Counts nothing. | Read | - |
rule_coverage | Which rules did a run actually hit? Calls per rule, the rules never hit, and a gate on every rule or on named ones. | Read | - |
add_rule | Add a fixed, error, latency, conditional, chaos, fault or drift rule to an endpoint; a seed makes its random failures and jitter repeat the same way every run. | Write | - |
delete_rule | Remove one endpoint rule by id. | Destructive | - |
compile_rule | Turn a plain-English description into an endpoint rule or behaviour rule for review. Saves nothing; save with add_rule or add_behaviour_rule. | Read | Yes |
list_scenarios | The scenario packs you can trigger, with their parameters. | Read | - |
run_scenario | Trigger a scenario now: bulk-growth, status-churn, partner-outage, rate-limit-storm, slow-network or data-purge (destructive). | Write | - |
get_read_lag | The read lag on a simulation, or none. | Read | - |
set_read_lag | Make a record just created stay out of lists for a few seconds, as vendors whose lists run behind their writes do. | Write | - |
Webhooks and access
| Tool | What it does | Access | AI |
|---|---|---|---|
list_webhooks | Webhooks on a simulation (secrets are not shown). | Read | - |
list_webhook_deliveries | Deliveries a simulation sent, newest first, by status, event or event prefix, webhook and time. | Read | - |
get_webhook_delivery | One delivery with its payload, attempts, the response code and why it failed (never the secret). | Read | - |
get_mcp_faults | The faults a simulation's own MCP server has on. | Read | - |
set_mcp_faults | Make tool calls to a simulation's own MCP server fail, hang or drop, to test an MCP client. | Write | - |
get_idempotency | Whether a simulation honours Idempotency-Key. | Read | - |
set_idempotency | Make retries with the same Idempotency-Key get the first reply and write nothing. | Write | - |
get_method_not_allowed | Whether a known path called with the wrong method answers 405 or 404. | Read | - |
set_method_not_allowed | Make a wrong method on a known path answer 405 with Allow, as most vendors do. | Write | - |
get_webhook_faults | The delivery faults a simulation has on. | Read | - |
set_webhook_faults | Make deliveries arrive twice, out of order or not at all, to test a handler. | Write | - |
replay_webhook_delivery | Send a delivery again with a fresh signature, e.g. after fixing your handler (30 a minute per simulation). | Write | - |
add_webhook | Send signed change events to a public https URL. | Write | - |
delete_webhook | Stop sending events to a webhook. | Destructive | - |
add_access_entry | Allow one IP or CIDR for ttlMinutes (default 60). Additive, so parallel CI jobs never overwrite each other. | Write | - |
update_access | Replace the permanent IP allow-list or switch restriction on or off. | Destructive | - |
list_api_keys | Simulation keys (prefixes only) with ids. | Read | - |
create_api_key | Issue another simulation key (shown once). | Write | - |
revoke_api_key | Revoke a simulation key by id. | Destructive | - |
Worlds
| Tool | What it does | Access | AI |
|---|---|---|---|
get_world | The organisation's world: company, employees, customers and teams every simulation draws on. | Read | - |
update_world | Set the world brief (the model designs the cast once) or edit the company, people and customers. Each save is a new version. | Write | Yes |
create_fork | Make an isolated copy of a world at <slug>--<name> for one test run or agent session. Expires after ttlHours (default 24, max 168). | Write | - |
copy_simulation | Make a permanent standalone copy of a simulation (own address and keys, no expiry), e.g. a dedicated test target set. The original is untouched. | Write | - |
list_forks | Forks of a simulation with URLs and expiry. | Read | - |
snapshot | Save the current state under a name. | Write | - |
list_snapshots | Saved snapshots of a simulation. | Read | - |
restore_snapshot | Replace the live data with a saved snapshot. | Destructive | - |
delete_snapshot | Delete a saved snapshot by name or id. | Destructive | - |
diff_state | Records added, changed and removed since a snapshot. On a fork, defaults to the fork-origin snapshot. | Read | - |
compare_sessions | Compare two runs, or a run with a saved report: new writes, new errors, more deletes or retries. Fails on a regression. | Read | - |
session_report | Blast-radius report for requests sent with a Slurry-Session header: calls, writes, deletes, errors, retries and records touched. | Read | - |
Test suites
| Tool | What it does | Access | AI |
|---|---|---|---|
list_actions | The actions you can fire on a simulation: create, update, move status, delete, touch, faults, and vendor actions such as jira.slip, teams.post and teams.meeting, with their parameters. | Read | - |
fire_action | Make one change happen now as a named person (the joystick). Recorded on a session you can save as a test case. | Write | - |
list_test_suites | Your test suites with their cases and last result. | Read | - |
create_test_suite | A suite over one or more simulations, with an optional schedule, reset hook and run.finished webhook. | Write | - |
get_test_suite | A suite with its cases, baselines and recent runs, or every case as YAML. | Read | - |
snapshot_test_suite | Save every simulation in the suite under one name as a baseline, or restore one. | Write | - |
draft_test_cases | Dump a scenario in your own words and get complete draft cases, a playback of what was understood and questions. Saves nothing. | Read | Yes |
save_test_case | Save a case from a definition, YAML or a joystick session; validated against the suite first. | Write | - |
run_tests | Run one case or the whole suite. One run per set of simulations at a time; speed plays the timeline faster. | Write | - |
get_test_run | A run step by step: when each change landed, when your system first read it, and every expectation with evidence. | Read | - |
control_test_run | Pause, resume, step to the next change now, or abort a run. | Destructive | - |
decide_expectation | Pass or fail an observed expectation: something only your own system shows. | Write | - |
92 tools in total. Tool errors come back as a tool result with isError set, carrying the same code and message as the error envelope.
An agent evaluation, end to end
With the server connected, a single prompt is enough:
Fork my "acme-projects" Slurry simulation as run-42 and add a rule so
POST /tasks fails with a 503 a third of the time on the fork. Run my triage agent
against the fork URL with the header Slurry-Session: run-42, then give me the
session report and the diff of what changed. Delete the fork when you are done.What happens
create_forkmakesacme-projects--run-42, an isolated copy with afork-originsnapshot, and returns its URL.add_ruleadds the error rule withprobability: 0.33to the fork only.- Your agent calls the fork URL with
Slurry-Session: run-42on every request. session_reportshows calls, writes, deletes, errors and retries for that session;diff_stateon the fork lists every record added, changed or removed since the fork was made.delete_simulationon the fork cleans up, or the fork expires on its own.
More on forks, snapshots, sessions and scenarios in Worlds.