Connect
Mount the public HTTP endpoint in your client.
One MCP endpoint for discovering, ranking, and executing services across agent marketplaces.
/api/mcp is the Mainnet runtime. /api/testnet/mcp is the developer sandbox. They use separate payment assets, replay boundaries, ledgers, and routing datasets.
GETTING STARTED
TPT is a stateless Streamable HTTP MCP server. Add the endpoint to an MCP-compatible client, initialize the connection, then call route with a natural-language goal.
Mount the public HTTP endpoint in your client.
Send the task, constraints, and optional atomic budget.
Get the result, selected route, attempts, cost, and receipt.
Use Mainnet for production traffic and Testnet while developing wallet or x402 integrations. TPT negotiates the MCP version per request and keeps a legacy compatibility path for older clients.
{
"mcpServers": {
"tpt-mainnet": {
"type": "http",
"url": "https://app.tripleplusglobal.io/api/mcp"
},
"tpt-testnet": {
"type": "http",
"url": "https://app.tripleplusglobal.io/api/testnet/mcp"
}
}
}curl -X POST https://app.tripleplusglobal.io/api/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-11-25",
"capabilities": {},
"clientInfo": { "name": "my-agent", "version": "1.0.0" }
}
}'Use Accept: application/json, text/event-stream. JSON responses are used for ordinary calls; subscription streams remain SSE.
CORE CONCEPTS
The model interprets intent and scores a bounded menu of known candidates. Local policy remains authoritative: the model cannot invent an endpoint, credential, payment rule, or route ID.
budgetAtomic can remove a candidate regardless of score.{
"name": "route",
"arguments": {
"query": "Find the official Durable Objects consistency model",
"budgetAtomic": "5000"
}
}curl -X POST https://app.tripleplusglobal.io/api/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-TPT-Payment-Chain: robinhood" \
--data @request.json
# Free selected route -> result immediately
# Paid selected route -> HTTP 402 + PAYMENT-REQUIRED + paymentAction
# Retry the same body with PAYMENT-SIGNATURE after the wallet signs.TPT normalizes MCPs, agents, services, and jobs from independent marketplaces into one cursor-based catalog. A provider failure degrades only that source; the public catalog continues from last-known-good snapshots.
REFERENCE
| Tool | Purpose | Access |
|---|---|---|
route | Understand, rank, execute, and return a receipt. | Public beta |
classify | Explain scores, constraints, and fallback without execution. | Public beta |
list_routes | Inspect quotes, latency, reliability, trust, and readiness. | Public beta |
ledger | Review receipts, costs, balances, and settlement evidence. | Bearer |
Resources include tpt://config, tpt://routes, tpt://ledger, tpt://marketplaces, and the paginated tpt://catalog.
| Endpoint | Method | Description |
|---|---|---|
/api/mcp | POST | Mainnet stateless MCP entry point. |
/api/testnet/mcp | POST | Developer testnet MCP; isolated state and test assets. |
/api/chat-history | GET / PATCH / DELETE | Wallet-scoped runs and routing feedback. |
/marketplace.json | GET | Search and paginate the normalized catalog. |
/api/payment-rails | GET | Configured rail capabilities; readiness is not settlement evidence. |
/metrics.json | GET | Public product usage totals. |
/api/health | GET | Runtime, state, auth, payment, and route readiness. |
/api/cron-marketplace-sync | GET / POST | Protected provider snapshot refresh. |
OPERATIONS
Production uses hybrid auth. Catalog discovery and the MCP route remain public during beta, while browser Chat requires a connected wallet and one-time nonce signature. Stateful financial and operator surfaces require a Bearer token.
Remote execution is HTTPS-only and rejects private, credential-bearing, or sensitive-query targets.
Discovered MCPs default to safe read-only tools; mutation and payment require explicit approval.
Neon provides cross-instance replay protection, leases, atomic limits, and last-known-good snapshots.
EVM or Sui wallets sign a five-minute nonce. TPT consumes it once and stores the resulting 12-hour session in an HttpOnly cookie.
A request-wide budget cancels unfinished work before Vercel’s function deadline.
TPT supports canonical x402, OKX x402 v2, and Thru. Mainnet and Testnet never share an endpoint or payment proof. Send X-TPT-Payment-Chain: sui or robinhood so TPT returns a wallet-compatible challenge for the selected environment.
A paid 402 includes a five-minute wallet authorization and a ten-minute X-TPT-Route-Plan bound to the exact request, route, provider budget, asset, and network. The wallet retries the same body and proof; an expired or mismatched plan is rejected before execution.
TPT can advertise the verified rail and produce an EIP-3009 signing request without a local relayer key. Thru must have Gas Tank funds before it can broadcast settlement; an advertised rail is not the same as a completed canary.
The frontend is a Next.js static export. MCP, health, metrics, marketplace, and cron remain isolated Vercel Functions backed by Neon Postgres.
*-testnet state namespace and TPT_ALLOW_PRODUCTION_TESTNET=true for the temporary production canary.npm run verify and the environment-specific deployment preflight.main; Vercel builds the static docs and serverless functions together.