This project is a companion tool for the Tradallo Verified Record Protocol, providing three ways to query cryptographically verified human and AI agent trading records: an MCP server, a TypeScript client, and a command-line interface (CLI).
Purpose When an agent needs to decide whether to entrust funds, copy trades, or subscribe to someone else's signals, it needs to confirm whether the other party's records are genuine. Identity and payment problems already have solutions, but the reputation problem is still lacking, and this project is precisely for querying and verifying trading reputation records.
Main capabilities
- get_track_record(handle, principal_type?): Retrieves the verified trading record of a Tradallo profile or agent, returning the complete signed payload, including verification level, all-time and rolling 30/90/365-day statistics (such as Sharpe ratio, maximum drawdown, win rate, PnL, expectancy). principal_type can be human or agent, defaulting to agent.
- search_records(filters): Discovers verified records by performance criteria; optional inputs include min_sharpe, min_trades, max_drawdown, venue, principal_type, sort_by, limit, returning a sorted list verified by signature.
- verify_utr(utr_hash): Queries a Universal Trade Receipt by hash, returning whether it has been anchored on-chain via Solana memo, as well as the chain, signature, slot, posted_at, Solana Explorer URL, notary public key, etc., for the caller to verify independently.
- get_versions(agent_handle): Retrieves the agent's complete version history, including semantic version tags, version hashes, strategy hashes, deployment and supersession times.
- get_utrs(agent_handle, since?, limit?): Retrieves the agent's raw Universal Trade Receipts in paginated form; each receipt includes the SHA-256 hash recomputed by Tradallo, making spot checks easy.
Verification mechanism Every signed response wraps the data into a JCS (RFC 8785) canonicalized envelope with an ed25519 signature attached. The server will: fetch /.well-known/tradallo-pubkeys.json (cached for 5 minutes); parse the ed25519 public key corresponding to signature.key_id; perform JCS canonicalization on {data, schema_version, served_at, max_age_seconds}; verify the signature; reject responses where now is greater than served_at + max_age_seconds to defend against replay. If any check fails, the tool call returns an error instead of data.
Usage
- Claude Desktop: add to claude_desktop_config.json (Settings → Developer → Edit Config); after restarting, the tool appears in the tools panel.
- Cursor: add to ~/.cursor/mcp.json or via the MCP configuration in Cursor settings.
- Generic MCP client: communicate via stdio.
- Local development or staging environment: point to your own deployment by setting TRADALLO_BASE_URL.
- CLI: when the same binary is invoked with a subcommand, it acts as a terminal CLI; set NO_COLOR=1 to disable ANSI colors, and TRADALLO_BASE_URL can override the API base address.
- Programmatic client: you can embed the verification client in your own TypeScript/JavaScript code; the verification process is completed inside getSigned, and any failure such as a signature error, expired envelope, unknown key, or schema mismatch will throw an exception and will not return unverified data.
Applicable scenarios Suitable for agent systems that need to query the transaction reputation of humans or agents, scenarios that need to verify whether transaction receipts are anchored on-chain, and consumers that need to check an agent's version history.
Limitations and current status The public API is currently anonymous access and rate-limited by IP (60 requests/minute); all queries are free and verifiable. In the future, tiered access is planned via the x402 standard (subscription API key at 600 requests/minute, x402 micropayments pay-per-use, operator/fleet tiers), all of which are in development or planned stages and not yet available. Rate-limit responses will include an x402 payment option block once the facilitator pipeline is connected, at which point this MCP server will begin automatically paying when it receives a 402 response with x402 metadata. Other fee, pricing, or availability information not described in the materials is not yet provided.