Test your MCP server the way a coding agent calls it.

Connect over Streamable HTTP as a scoped test identity, verify the exposed tool inventory and annotations, invoke tools, and compare structured responses across runs.

changes#733 Add currency to invoice search billing/search-currency

run 2

1f6d3a8CI ↗ 3 flows queued running3 passed4 unchanged
  1. waitingrunningpassed
  2. Billing tools for a support identity4 steps · not started4/4 · 900ms
  3. Send a payment reminder3 steps · not started3/3 · 1.2s
  4. Anonymous client is refused1 steps · not started1/1 · 0.3s
  5. unchanged · 4
  6. not run again; earlier results carried over
flows/billing-tools.md · read onlynot run yet6 lines passed
  1. ---
  2. title: Billing tools for a support identity
  3. providers:
  4. api: {use: MCP, binding: billing-mcp}
  5. ---
  6. # Billing tools for a support identity
  7. A support identity can list overdue invoices and read one, and cannot void an invoice.
  8. ## List the tools
  9. The identity sees exactly three tools, none marked destructive. Each tool keeps its hints and the hashes of its schema and description.
  10. ```rfl step="List the tools"
  11. ```
  12. ## Find overdue invoices
  13. A search for overdue invoices includes INV-1042.
  14. ```rfl step="Find overdue invoices"
  15. ```
  16. ## Read invoice INV-1042
  17. The invoice is still overdue and its amount due is a string.
  18. ```rfl step="Read invoice INV-1042"
  19. ```
  20. ## Refuse to void an invoice
  21. The server refuses a tool this identity must not use, then the session ends.
  22. ```rfl step="Refuse to void an invoice"
  23. ```

waitingrunningpassedBilling tools for a support identity

A support identity can list overdue invoices and read one, and cannot void an invoice.

not started · 4 steps planned following live viewing step passed · 900ms · earlier run: main, 2 days ago

1 · List the tools

not startedrunningpassed · 320ms

The identity sees exactly three tools, none marked destructive. Each tool keeps its hints and the hashes of its schema and description.

This step has not started. What it keeps appears here when it ends.

This step is running. What it keeps appears here when it ends.

EARLIER RUNmain · 2 days ago
toolreadOnlydestructiveschema
get_invoicetruenull3797626b…
search_invoicestruenull1dc63095…
send_reminderfalsefalse3797626b…
THIS RUNtools/list · 3 tools
toolreadOnlydestructiveschema
get_invoicetruenull3797626b…
search_invoicestruenull1dc63095…
send_reminderfalsefalse3797626b…
What this step didWhat this step doesWhat this step does

line 161 of 2

Connected to billing-fixture, protocol 2025-11-25

api.connect
Status
passed
Time
took 180ms, starting 0ms into the step

line 172 of 2

Listed 3 tools; 2 expectations passed

api.tools expect="{\"only\":[\"get_invoice\",\"search_invoices\",\"send_reminder\"],\"noTrueAnnotations\":[\"destructive\"]}"
Status
passed
Time
took 140ms, starting 180ms into the step
What it kept · tools/list
earlier run · main
3 tools · 1 page
get_invoice      readOnly true
search_invoices  readOnly true
send_reminder    readOnly false · destructive false
only: 3 named tools · passed
noTrueAnnotations destructive · passed
this run
3 tools · 1 page
get_invoice      readOnly true
search_invoices  readOnly true
send_reminder    readOnly false · destructive false
only: 3 named tools · passed
noTrueAnnotations destructive · passed

2 · Find overdue invoices

not startedrunningpassed · 210ms

A search for overdue invoices includes INV-1042.

This step has not started. What it keeps appears here when it ends.

This step is running. What it keeps appears here when it ends.

THIS RUNsearch_invoices
INV-1042 overdue 14 days
INV-1043 overdue 3 days
What this step didWhat this step doesWhat this step does

line 251 of 1

Called search_invoices; textIncludes “INV-1042” passed

api.call tool="search_invoices" arguments="{\"query\":\"overdue\"}" expect="{\"textIncludes\":\"INV-1042\"}"
Status
passed
Time
took 210ms, starting 0ms into the step

3 · Read invoice INV-1042

not startedrunningpassed · 190ms

The invoice is still overdue and its amount due is a string.

This step has not started. What it keeps appears here when it ends.

This step is running. What it keeps appears here when it ends.

EARLIER RUNmain · 2 days ago
{
  "id": "INV-1042",
  "status": "overdue",
  "amount_due": "120.00",
  "currency": "USD"
}

/status equals "overdue" · passed
/amount_due type "string" · passed
THIS RUNget_invoice · result text
{
  "id": "INV-1042",
  "status": "overdue",
  "amount_due": "0.00",
  "currency": "USD"
}

/status equals "overdue" · passed
/amount_due type "string" · passed
What this step didWhat this step doesWhat this step does

line 331 of 1

Called get_invoice; 3 expectations passed

api.call tool="get_invoice" arguments="{\"id\":\"INV-1042\"}" expect="{\"isError\":false,\"json\":[{\"pointer\":\"/status\",\"equals\":\"overdue\"},{\"pointer\":\"/amount_due\",\"type\":\"string\"}]}"
Status
passed
Time
took 190ms, starting 0ms into the step
What it kept · get_invoice
earlier run · main
{
  "id": "INV-1042",
  "status": "overdue",
  "amount_due": "120.00",
  "currency": "USD"
}

/status equals "overdue" · passed
/amount_due type "string" · passed
this run
{
  "id": "INV-1042",
  "status": "overdue",
  "amount_due": "0.00",
  "currency": "USD"
}

/status equals "overdue" · passed
/amount_due type "string" · passed

4 · Refuse to void an invoice

not startedrunningpassed · 180ms

The server refuses a tool this identity must not use, then the session ends.

This step has not started. What it keeps appears here when it ends.

This step is running. What it keeps appears here when it ends.

THIS RUNvoid_invoice · disconnect
error -32602 · Unknown tool: void_invoice
rpcError -32602 · passed

session DELETE 204 · cleanup acknowledged
What this step didWhat this step doesWhat this step does

line 411 of 2

Refused: error -32602, Unknown tool: void_invoice

api.call tool="void_invoice" arguments="{\"id\":\"INV-1042\"}" expect="{\"rpcError\":-32602}"
Status
passed
Time
took 120ms, starting 0ms into the step

line 422 of 2

Ended the session: DELETE 204, cleanup acknowledged

api.disconnect
Status
passed
Time
took 60ms, starting 120ms into the step
Agent reviewon pull request #733Outside scope

INV-1042 is still overdue, but its amount due now reads 0.00.

Every expectation passed in both runs, and the tool inventory is the same. The get_invoice result differs: amount_due is 0.00 in this run and was 120.00 in the earlier run on main. Passing expectations alone do not show that this change is intended. Was it?

← → stepsThe agent compares the two runs and judges; Reflow keeps what each step saw.

Verify tool inventories, permissions, and refusals.

Connect as one test identity, assert the complete tool list and annotation hints, call tools with typed JSON arguments, and verify either structured results, tool errors, or JSON-RPC refusals.

  • Tool inventories with annotation hints and schema hashes
  • Redacted call results and JSON assertion outcomes
  • JSON-RPC refusals and session cleanup status

Detect response drift across passing runs.

Reflow diffs tool inventories by name, annotations, and schema/description hashes, and compares redacted tool outputs across runs—catching silent value changes even when every assertion passes.

get_invoice still reports INV-1042 as overdue, but amount_due drops from 120.00 to 0.00. Your agent brings both retained call results into PR review to confirm whether the calculation change was intended.

Land this evidence in PR review

Assert tool inventory, calls, and JSON-RPC refusals

Configure the MCP endpoint and test identity credential in your private MCP binding, and select the endpoint as your target so its origin is admitted. Always point api.call at a test server.

Your coding agent inspects installed plugin commands via MCP, authors flows against your application knowledge, and pins versions in the application lock.

Flow excerptMCP
---
providers:
  api: MCP
---

api.connect
api.tools expect="{\"only\":[\"get_invoice\",\"search_invoices\",\"send_reminder\"],\"noTrueAnnotations\":[\"destructive\"]}"
api.call tool="search_invoices" arguments="{\"query\":\"overdue\"}" expect="{\"textIncludes\":\"INV-1042\"}"
api.call tool="get_invoice" arguments="{\"id\":\"INV-1042\"}" expect="{\"isError\":false,\"json\":[{\"pointer\":\"/status\",\"equals\":\"overdue\"},{\"pointer\":\"/amount_due\",\"type\":\"string\"}]}"
api.call tool="void_invoice" arguments="{\"id\":\"INV-1042\"}" expect="{\"rpcError\":-32602}"
api.disconnect

Plugin locks and private target bindings are managed separately from flow source.

Check the rest
of the application.