Architecture
Assay connects your AI client to tools run by providers. The hosted server finds a provider and checks its result. For paid calls, a local process signs payment permission and contracts hold the money.
How it works
Section titled “How it works”flowchart LR AI[AI client] <-->|stdio| Local[Local assay-mcp] Local <-->|MCP over HTTPS| Server[Assay MCP server] Web[Assay web app] <--> Backend[Assay backend] Server <--> Backend Server <-->|Mapped request and result| Provider[Provider endpoint and request verifier] Backend --> Checks[Result checks and settlement jobs] Local -->|Signed payment via Assay| Backend Backend <--> Contracts[Escrow, stake and config contracts] Web <-->|Wallet approval| ContractsYour client connects through assay-mcp to https://mcp.goassay.ai/. The hosted MCP server exposes the tools available through that URL and your agent’s access policy. It turns a tool call into a request to an eligible provider, then returns the provider’s mapped result with a receipt.
The web app is where you manage accounts, connections, tools and money. Its backend supplies the catalogue, access checks, routing, call records and settlement work used by the MCP server. The diagram groups these responsibilities; it does not require them to run in one process.
The parts
Section titled “The parts”| Part | What it does | Trust boundary |
|---|---|---|
| Web app | Lets you manage agents, approve spending with your wallet and configure provider listings. | A page or approval link is not itself a completed chain transaction. |
| Hosted MCP server | Provides discovery, validates calls and applies URL, access and spending rules. | A cached tool name cannot bypass current access checks. |
Local assay-mcp |
Holds sign-in tokens and a private payment key in your OS keychain. Checks payment requests, signs approved ones and forwards calls. | The payment key stays on your computer; local and wallet-approved limits both apply. |
| Provider endpoint | Runs the service behind a tool. Assay maps tool arguments to its request and maps its response back. | The provider must enforce its chosen authentication. |
| Provider request verifier | Checks that a signed request came from Assay, was not changed and has not already been used. Can run in middleware or a gateway. | It authenticates the incoming request. It does not judge the returned data. |
| Result checks | Judge the mapped response using the tool’s configured policy and record evidence for the receipt. | A returned result can still be awaiting a verdict. |
| Escrow contract | Holds customer funds, enforces payment authority and caps, and holds payments before collection or refund. | Assay can submit a signature; the contract checks whether it can be redeemed. |
| Stake contract | Holds provider security deposits and handles proposed penalties and disputes. | A result failure does not immediately take stake. |
| Config contract | Supplies roles, verifier keys, pause state and shared limits. | These are contract settings, separate from local client settings. |
Payments use USDG on Robinhood Chain. Customer escrow and provider stake serve different purposes: escrow pays for calls; stake backs the provider’s quality promise.
Example: choose your connection
Section titled “Example: choose your connection”For paid calls, use a local client with assay-mcp. Hosted connectors in claude.ai and ChatGPT make free calls only because they cannot hold the local payment key. Follow Install assay-mcp for setup and How paying works for approval.
For a provider, the request verifier can sit in your application or in front of it. The authentication choices explain what your endpoint must enforce.
