Skip to content

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.

Fastest route: tell your coding agent 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

SettingValue
URLhttps://api.slurry.io/mcp
TransportStreamable HTTP
AuthOAuth sign-in (recommended), or Authorization: Bearer slurry_acct_live_... with an account key. See Connecting.
PlanEvery plan (Starter, Team, Scale)
With OAuth you add only the URL: the client opens a browser, you sign in, pick the organisation and read or read-and-write access, and approve. Revoke it any time under Connected apps on the API keys page. If you use account keys instead, use a dedicated key for each agent, with only the scopes it needs and, where possible, an IP restriction and an expiry. Security-relevant actions taken through MCP are recorded in your audit log.

Claude Code

terminal
claude mcp add --transport http slurry https://api.slurry.io/mcp
# then run /mcp in Claude Code and choose Authenticate

Add --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:

terminal
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.

mcp.json
{
  "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:

claude_desktop_config.json
{
  "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_..." }
    }
  }
}
Claude.ai and the Claude apps can also add Slurry as a custom connector (Settings, Connectors, Add custom connector) with the URL above, and sign in with OAuth. No key needed.

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.

terminal
# 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 body for the request body. GET tools are read-only and DELETE tools destructive.
  • An API with more than 100 operations offers search_operations and call_operation instead. Add ?operations=id1,id2 to the URL to get chosen operations as tools, or ?tools=generic for the pair on any API.
  • Every tool call goes through the simulation like a REST call: rules, faults, Slurry-Seed, Slurry-Session and Slurry-Force headers, request logs, events, webhooks and rate limits all apply, so find_requests, verify_requests and evaluate_run see 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.

terminal
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/call is faulted: initialize and tools/list always 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/call draws 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 holding initialize or 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, PUT and DELETE /v1/simulations/{id}/mcp-faults. Over MCP: get_mcp_faults and set_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

ToolWhat it doesAccessAI
search_libraryFind a ready-made API in the library by name or vertical, a page at a time (total and nextOffset).Read-
list_verticalsEvery library category with how many APIs it has.Read-
ask_slurryAsk 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_guideEverything 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_simulationsList your simulations and forks with status and URL.Read-
create_simulationCreate one from a library slug or an OpenAPI document. Designing the world uses AI unless it comes pre-analysed from the library.WriteYes
get_simulationStatus, URL and the simulation MCP URL (mcpUrl), collections, record counts, behaviour, rules, keys and webhooks.Read-
get_statusShort status for polling: status, detail, URL, kind and expiry.Read-
get_usagePlan, AI allowance left, prepaid credit, requests this month and limits.Read-
get_settingsThe 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_settingsOwner or admin only: set idempotencySecrets to replay (a retried create gets the key again) or redact (the default: stored as [redacted]).Write-
report_issueReport 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_issuesYour organisation's reported issues with status, resolution and the version a fix shipped in.Read-
set_statusPause or resume a simulation.Write-
delete_simulationPermanently delete a simulation or fork and its data.Destructive-

Data and activity

ToolWhat it doesAccessAI
list_recordsRead the records in one collection.Read-
import_recordsPut your own records into a collection (upsert or insert); webhooks fire as for API writes. Content is reviewed as seed records are.Destructive-
plant_canariesPlant prompt-injection text and fake secrets in records, with checks that fail if an agent acted on or leaked them.Write-
plant_defectsPlant known dirty data (near duplicates, casing, spacing, emptied fields, junk rows) and return the answer key.Destructive-
recent_activityLatest data change events and API requests, each request with the engine build that served it.Read-
export_requestsA run's requests as HAR or JSON Lines, at most 200 (the route gives up to 5,000).Read-
find_requestsSearch 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_requestsCheck 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_trajectoryDid a run's calls happen in the right order, across simulations? Modes contains, strict, unordered, within, over one session.Read-
api_coverageWhich 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_paginationDid 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_retriesDid 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_recordsDoes system B now match system A? Joins a collection from two simulations on a key: missing, mismatched, written twice, extra.Read-
verify_invariantDid 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_stateAn 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_requestsCheck 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_runGrade 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

ToolWhat it doesAccessAI
fast_forwardRun the behaviour plan for N simulated hours (up to 720); each rule catches up to 200 steps.Write-
reset_simulationPut the records back to the original seed. Rules and behaviour are kept.Destructive-
rebuild_simulationApply 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_behaviourReplace the whole scheduled behaviour plan.Destructive-
add_behaviour_ruleAppend 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

ToolWhat it doesAccessAI
list_rulesEndpoint rules with id, enabled, review status and expiry.Read-
explain_rulesWhich rule a request you describe would hit, and why each other rule would not. Counts nothing.Read-
reset_rule_countsStart failFirst, passFirst and expireAfter counts again, for a simulation or one rule, without resetting the data.Write-
lint_rulesRules that can never fire, and why: shadowed, no such operation, wrong method, expired, held. Counts nothing.Read-
rule_coverageWhich 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_ruleAdd 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_ruleRemove one endpoint rule by id.Destructive-
compile_ruleTurn a plain-English description into an endpoint rule or behaviour rule for review. Saves nothing; save with add_rule or add_behaviour_rule.ReadYes
list_scenariosThe scenario packs you can trigger, with their parameters.Read-
run_scenarioTrigger a scenario now: bulk-growth, status-churn, partner-outage, rate-limit-storm, slow-network or data-purge (destructive).Write-
get_read_lagThe read lag on a simulation, or none.Read-
set_read_lagMake 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

ToolWhat it doesAccessAI
list_webhooksWebhooks on a simulation (secrets are not shown).Read-
list_webhook_deliveriesDeliveries a simulation sent, newest first, by status, event or event prefix, webhook and time.Read-
get_webhook_deliveryOne delivery with its payload, attempts, the response code and why it failed (never the secret).Read-
get_mcp_faultsThe faults a simulation's own MCP server has on.Read-
set_mcp_faultsMake tool calls to a simulation's own MCP server fail, hang or drop, to test an MCP client.Write-
get_idempotencyWhether a simulation honours Idempotency-Key.Read-
set_idempotencyMake retries with the same Idempotency-Key get the first reply and write nothing.Write-
get_method_not_allowedWhether a known path called with the wrong method answers 405 or 404.Read-
set_method_not_allowedMake a wrong method on a known path answer 405 with Allow, as most vendors do.Write-
get_webhook_faultsThe delivery faults a simulation has on.Read-
set_webhook_faultsMake deliveries arrive twice, out of order or not at all, to test a handler.Write-
replay_webhook_deliverySend a delivery again with a fresh signature, e.g. after fixing your handler (30 a minute per simulation).Write-
add_webhookSend signed change events to a public https URL.Write-
delete_webhookStop sending events to a webhook.Destructive-
add_access_entryAllow one IP or CIDR for ttlMinutes (default 60). Additive, so parallel CI jobs never overwrite each other.Write-
update_accessReplace the permanent IP allow-list or switch restriction on or off.Destructive-
list_api_keysSimulation keys (prefixes only) with ids.Read-
create_api_keyIssue another simulation key (shown once).Write-
revoke_api_keyRevoke a simulation key by id.Destructive-

Worlds

ToolWhat it doesAccessAI
get_worldThe organisation's world: company, employees, customers and teams every simulation draws on.Read-
update_worldSet the world brief (the model designs the cast once) or edit the company, people and customers. Each save is a new version.WriteYes
create_forkMake 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_simulationMake 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_forksForks of a simulation with URLs and expiry.Read-
snapshotSave the current state under a name.Write-
list_snapshotsSaved snapshots of a simulation.Read-
restore_snapshotReplace the live data with a saved snapshot.Destructive-
delete_snapshotDelete a saved snapshot by name or id.Destructive-
diff_stateRecords added, changed and removed since a snapshot. On a fork, defaults to the fork-origin snapshot.Read-
compare_sessionsCompare two runs, or a run with a saved report: new writes, new errors, more deletes or retries. Fails on a regression.Read-
session_reportBlast-radius report for requests sent with a Slurry-Session header: calls, writes, deletes, errors, retries and records touched.Read-

Test suites

ToolWhat it doesAccessAI
list_actionsThe 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_actionMake one change happen now as a named person (the joystick). Recorded on a session you can save as a test case.Write-
list_test_suitesYour test suites with their cases and last result.Read-
create_test_suiteA suite over one or more simulations, with an optional schedule, reset hook and run.finished webhook.Write-
get_test_suiteA suite with its cases, baselines and recent runs, or every case as YAML.Read-
snapshot_test_suiteSave every simulation in the suite under one name as a baseline, or restore one.Write-
draft_test_casesDump a scenario in your own words and get complete draft cases, a playback of what was understood and questions. Saves nothing.ReadYes
save_test_caseSave a case from a definition, YAML or a joystick session; validated against the suite first.Write-
run_testsRun one case or the whole suite. One run per set of simulations at a time; speed plays the timeline faster.Write-
get_test_runA run step by step: when each change landed, when your system first read it, and every expectation with evidence.Read-
control_test_runPause, resume, step to the next change now, or abort a run.Destructive-
decide_expectationPass 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:

prompt
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_fork makes acme-projects--run-42, an isolated copy with a fork-origin snapshot, and returns its URL.
  • add_rule adds the error rule with probability: 0.33 to the fork only.
  • Your agent calls the fork URL with Slurry-Session: run-42 on every request.
  • session_report shows calls, writes, deletes, errors and retries for that session; diff_state on the fork lists every record added, changed or removed since the fork was made.
  • delete_simulation on the fork cleans up, or the fork expires on its own.

More on forks, snapshots, sessions and scenarios in Worlds.