Each scenario below executes the same TypeScript gate published on npm. The adapters are thin mapping layers — what you watch is the actual enforce → claim → settle lifecycle deciding, with every outcome written to the hash-chained evidence log.
An agent gets a pay_merchant tool wrapped in the mandate guard. It attempts three payments: one inside bounds, one over cap, one to an unlisted payee. Watch which calls actually reach the tool — and which die at the gate with a record.
A server answers a request with payment requirements: pay store.example exactly 4999. The gate checks the requirements, then two signed payloads arrive for release: one honest, one redirected to evil.example. The binding refuses what the gate didn't approve.
A CartMandate describes a £49.99 basket at store.example. The gate evaluates the cart's own terms; the PaymentMandate is then bound to the approved decision. A second payment mandate inflated to £99.99 is refused — the instruction the rail runs must be the instruction that was checked.
The same calls an MCP client makes against integrations/mcp/server.py: issue a mandate, propose two payments (one denied), claim, settle, then verify the evidence chain — the whole lifecycle over a tool boundary.
Wrap your own tools, feed real x402 requirements, or point an MCP client at the server. The adapters are thin — the gate underneath is the same one that just ran above.
pip install mandata # adapters included python examples/langchain_guard.py python integrations/mcp/server.py # MCP tools over stdio