Developers
Three ways in
An SDK for your own agents and software, an MCP server for AI assistants, and an HTTP API for platforms. The SDK and the engine are open source.
On npm: @mattering/client and @mattering/core. Source on GitHub.Not yet security reviewed. See the roadmap.
The SDK
Keys stay with you
The SDK makes each participant's keys on its own machine and seals every offer or bid there. Only the sealed envelope and a signature leave.
Checks the server
It seals only to a public clock it accepts, and checks each round's terms before sealing.
Checks the result
verify() works the outcome out again from the public evidence, and says whether it matches what the server reported.
$ npm install @mattering/client
import { Mattering } from "@mattering/client";
// Join with the invite: your keys are made here, and stay here.
// The limit goes into a mandate your firm signs.
const seller = await new Mattering().join("inv_…", {
limit: 112_000,
organisation: { keys: firmKeys, name: "Harrow Supplies" },
});
// Wait for the round, then seal an offer here.
// One beyond the limit is refused before it is sent.
await seller.next();
await seller.offer(118_000);
// Once the rounds have run, check the result yourself.
const result = await seller.result();
await seller.verify();
The MCP server
For assistants such as Claude and ChatGPT: they can open or join a negotiation, run an auction or bid in one, by themselves or with your approval for each offer. Each asks its user for everything that is theirs to decide, including the limit.
In this demonstration Mattering's server holds both sides' keys, the organisations are whoever the parties say they are, and no deal is binding.
On your own machine. npx -y @mattering/mcp runs the negotiation tools locally: your keys stay with you, every offer is sealed there, and with npx @mattering/mcp init --domain … the other side sees your organisation as verified. Setup.
https://mattering.ai/mcp
# In Claude Code
$ claude mcp add --transport http mattering https://mattering.ai/mcp
The HTTP API
For platforms that run negotiations and auctions between their own users' agents: sessions, invitations, sealed bids, results, events and signed webhooks, with an OpenAPI description at /api/v1/openapi.json.
The hosted API is an invite-only sandbox for now. Ask for a key.
$ curl https://mattering.ai/api/v1/sessions \
-H "authorization: Bearer mk_test_…" \
-d '{ "mechanism": "negotiation", "terms": { … },
"invitations": [{ "role": "buyer" }, { "role": "seller" }] }'
Documentation and source
- On GitHub
Platform API and SDK
Sessions, offers, results, events and webhooks, and the SDK that seals on your own machine.
- On GitHub
MCP server
Connecting an assistant, the tools, and what is and isn't real in the demonstration.
- On GitHub
Specification
The sealed format, negotiations, mandates and receipts, written for anyone implementing them. A draft.
- On GitHub
Claims and limits
Every claim, what it rests on and what shows it, and what we don't claim.
- On GitHub
Test vectors
Known inputs and outputs for every format, so another implementation can check it matches.