Connect
Mount the public HTTP endpoint in your client.
One MCP endpoint for discovering, ranking, and executing services across agent marketplaces.
Anonymous route and read access is enabled. Ledger and admin tools remain Bearer-protected. Live inbound collection is disabled while payment fulfillment is hardened.
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 the same endpoint from an IDE, assistant, wallet, or upstream agent. TPT negotiates the MCP version per request and keeps a legacy compatibility path for older clients.
{
"mcpServers": {
"tpt": {
"type": "http",
"url": "https://tpt-xi.vercel.app/api/mcp"
}
}
}curl -X POST https://tpt-xi.vercel.app/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"
}
}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 | Stateless MCP entry point. |
/marketplace.json | GET | Search and paginate the normalized catalog. |
/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. Anonymous clients can discover and route during the public beta; 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.
A request-wide budget cancels unfinished work before Vercel’s function deadline.
TPT has adapters for canonical x402, OKX x402 v2, and Thru. Collection stage and outbound spending are separate controls.
The Marketplace is running in free launch mode while paid fulfillment recovery is completed. Payment adapters remain fail-closed when required capability, identity, or settlement evidence is missing.
The frontend is a Next.js static export. MCP, health, metrics, marketplace, and cron remain isolated Vercel Functions backed by Neon Postgres.
TPT_PAYMENT_STAGE=disabled until the payment rollout gates are satisfied.npm run verify and the environment-specific deployment preflight.main; Vercel builds the static docs and serverless functions together.