# Taifoon MCP Skills & Capabilities

**Document Type:** AI Agent Capability Manifest
**Protocol:** Model Context Protocol (MCP) — Streamable HTTP, JSON-RPC 2.0, protocol `2025-03-26`, tools-only
**Version:** 2.0
**Last Updated:** 2026-09-30
**Service:** taifoon
**Endpoint:** `POST https://www.taifoon.io/api/mcp`

---

## Overview

Taifoon is the coordination layer: the chains the superroot includes
(`taifoon_superroot` lists them) folded into one cryptographic SuperRoot every ~10 seconds, with portable 6-layer V5 proofs that any agent
can carry off-chain and any contract can verify on-chain. This manifest
documents the core tools of the live MCP server; `tools/list` on the endpoint
returns the full live set. Every example below runs against production. `GET` on the endpoint returns a
discovery document.

## Available Tools

### 1. taifoon_superroot()
The current superroot: the one value the chains it includes resolve to every
~10s, with those chains listed in the answer. The settlement referent for the whole coordination layer.
- **Input:** none
- **Returns:** `{ root, timestamp, leaf_count, peak_count, chains_included[] }`

### 2. taifoon_proof(chain_id: integer, block_number: integer)
A portable V5 proof blob for a block: six layers from block to superroot,
finality-typed (L6). Carry it off-chain; verify it on-chain via
`verifyEncoded`.
- **Input:** `chain_id` (e.g. 1 Ethereum, 8453 Base, 21000000 Bitcoin), `block_number`
- **Note:** a block outside the provable window returns 425 Too Early —
  fetch a guaranteed-provable proof from
  `GET https://api.taifoon.dev/api/v5/verifiable/{chain_id}` instead.

### 3. taifoon_finality_explain(type_id: integer 0-15)
What makes a block final under a V5 L6 finality type, and the proof layout.
Synced from `TaifoonV5Types.sol` + the spinner mapper (ETH PoS checkpoints,
L2 output roots, GRANDPA, Tower BFT, depth-based, and more).

### 4. taifoon_skills(status?: "LIVE" | "BUILD" | "all")
The skills catalog: every skill in the bank with its quoted price, rails and
status, and `payments_accepted`: without an x402 facilitator on this
deployment every priced wall refuses every payment. Default filter: LIVE.

### 5. taifoon_register(wallet_address?: string)
A free Taifoon API key in one call, no arguments needed (no payment, nothing
signed; `wallet_address` is an optional label). Returns the `api_key`.
POSTs to the live `/v1/register`.

### 6. taifoon_grid_status()
What the Grid accepts right now and what it pays: per kind (rpc, gpu, tee,
fpga) — open or not, earns GRID or not, and why. Read before joining.
- **Input:** none
- **Returns:** `{ kinds: { rpc: { open, earnsPoints, pointsPerHealthyProbe, note }, ... }, rules[] }`

### 7. taifoon_grid_join(kind, endpoint, owner, chain_id?)
Bring a resource to the Grid. We probe it ourselves — for `rpc` we verify the
endpoint serves the chain it claims via `eth_chainId` — and GRID points accrue
only from probes that actually ran. A submission is a claim; a probe is
evidence; only evidence earns. `kind: "gpu"` returns a keccak challenge to
solve and POST to `/api/grid/benchmark` (ranked, earns 0 until real GPU work
exists). Watch your resources at https://www.taifoon.io/hosting/resources.
- **Input:** `{ kind: "rpc"|"gpu", endpoint: "https://…", owner: "0x…", chain_id?: number, ref?: "0x…" }`
- **Returns:** the live `/api/grid/join` body — `accepted` is true only when the resource was recorded and will be probed.
- `ref` (optional): the wallet that referred this resource. Set once at the oracle, never the owner itself; it earns
  a share of what the resource ACCRUES from measured work (the share is published at `GET /api/grid/social`) — on
  top of the owner's 100%, never out of it.

Supporters without a box earn too, from `GET/POST /api/grid/social` (no MCP tool — it needs a signed-in person):
a linked X account once, and referrals via `TAIFOON_REF` / `ref`. Posts are not paid: X does not allow paid posts,
so a post earns 0 GRID (`action: "share"` answers 410). Levels: Visitor → Supporter → Provider (one measured resource) →
Operator (three). An earnings calculator at the live rate is on https://www.taifoon.io/join#calc.

### taifoon_grid_pool()
Where the Grid is short: usable resources per kind and the scarcity bonus each
kind pays right now — supply × demand, moving as providers join and hirers ask — with the rule the oracle derives it from.
- **Returns:** `{ live, kinds: { storage: { usable, scarcity_multiplier }, ... }, rule }`

### taifoon_node_command(owner, kind?, endpoint?, payout?, ref?)
The one command that runs taifoon-node on your box. What it is: a container that registers the box with Taifoon's
coordination layer, gets probed, sends a signed heartbeat every 5 minutes and runs the work coord places on it.
Who it is for: anyone with a GPU, an RPC endpoint or disk. Taifoon is the one provider every outlet sees (Phala first,
then Vast.ai, OpenRouter, Boundless, Akash, io.net): you open no outlet account and the command names no pool.
What you earn: every unit your node serves is metered and attributed to it; the revenue is split under TSUL, 70 % to
you, 20 % to the graders, 10 % to the ecosystem. How you are paid: in GRID at the full rate (default) or in USDC at the
TSUL rate (`TAIFOON_PAYOUT=cash`). Read yours at `GET https://coord.taifoon.dev/v1/grid/economics?owner=0x…`.

    curl -fsSL https://grid.taifoon.dev/node/taifoon-node.tar.gz | docker load
    docker run -d --name taifoon-node --restart unless-stopped \
      -e TAIFOON_OWNER=0xYourWallet \
      -e TAIFOON_KINDS=gpu \
      -e TAIFOON_ENDPOINT=https://your-box.example \
      -v taifoon-node:/data \
      taifoon/node

Nothing runs from the tool; you run it on your box. `docker stop taifoon-node` leaves cleanly. A node started before
2026-10-11 with `TAIFOON_POOL` keeps working; the pool is now derived on Taifoon's side.
- **Input:** `{ owner: "0x…", kind?: "storage"|"rpc"|"gpu"|"fpga", endpoint?: "https://…", payout?: "grid"|"cash", ref?: "0x…" }` — `ref` adds `TAIFOON_REF` to the command.

### taifoon_grid_shards(me?, collectors?, replication?)
The MMR sharding plan from the live superroot breakdown: every chain's twigs (2048 headers each) balanced into
shards, rendezvous-assigned to the nodes with a signed heartbeat in the last 15 minutes (candidates — none runs a collector yet). `me` (your node did)
returns the shard you would take, a spinner config with the Grid's best RPC per chain, and the one command.
- **Returns:** `plan.shards[]` (chains, twigs, disk and RPC estimates, collectors), `mine`, `verifier: DESIGNED`, `earnsToday: 0`.

### taifoon_grid_economics(day?, owner?, node?)
What the Grid earns. `kinds`: the live rate per kind (GRID/hour, GRID/day, USDC at the oracle's peg; `null` when the
oracle is silent, never zero). `attribution`: the one model of who did and brought how much on a UTC day. Per node
behind Taifoon: capacity offered, uptime, units served per product and per outlet or buyer, revenue (USDC + GRID),
cost, the TSUL split (70 / 20 / 10) and the payout (GRID at the full rate, or USDC at the TSUL rate); the community
totals; each outlet's earnings as read back (an unread outlet's units stay pending); and `reconcile.ok`: node revenue +
Taifoon's cut = outlet earnings read back + buyer debits, to the nano. Same answer at `GET /v1/grid/economics`; a key
bound to your Grid wallet also reads its own nodes at `GET /v1/access/key` (`contributor`).

### taifoon_grid_prices(group?, state?)
Every Taifoon operation on one board in GRID, IN (worker receives) and OUT (consumer pays), at the oracle's
published peg: Grid kinds at the live rate, the Taifoon chains' RPC, MMR twigs and proofs, AI calls, hosting
classes, the bridge fee, x402 skills, coordination and agents (n8n instances enrol as hireable agents). Every
row names its source, its live meter and its state — LIVE · QUOTE_ONLY · RANKED · BILLED_USD · DENOMINATED ·
PROPOSED. `HTTP GET /api/grid/prices`.

### taifoon_ai_call(model, prompt?, provider?, hirer?, chain_id?)
One AI call against a node the gateway MEASURED for that model (arithmetic battery every pass, exact answers
only), priced from the live GPU unit-hour rate pro-rated to the measured seconds. Returns the answer, the evidence
digest `keccak256(request||response)`, the price in GRID and USDC at the published peg, and the settlement as
UNSIGNED assurance calls (fund-job → submit → complete) on the chain the contract is live on — you sign; the gateway
holds no key. Without a prompt: the measured nodes and the rate. `HTTP /api/grid/ai-call`.

### taifoon_grid_hire(kind, units?, hours?)
Hire measured resources: usable providers (attested → capacity → health) with
endpoints, plus a quote split 70/20/10 under the TSUL. Settlement is not
deployed; a quote reserves nothing. Same door as
`GET /api/grid/hire?kind=storage&units=1&hours=24` — an n8n workflow that
calls it is at https://www.taifoon.io/grid/n8n-hire.json.
- **Returns:** `{ available, fulfilled, shortfall, bonus, quote, providers[] }`

## Example (JSON-RPC 2.0 over HTTP)

```bash
curl -s -X POST https://www.taifoon.io/api/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
       "params":{"name":"taifoon_superroot","arguments":{}}}'
```

## Beyond MCP — the same rails over plain HTTP

- **Free key:** `POST https://coord.taifoon.dev/v1/register` — no body needed (`{"wallet_address":"0x..."}` is an optional label)
- **Race-free proof:** `GET https://api.taifoon.dev/api/v5/verifiable/{chain_id}`
- **Live genome stream (SSE):** `GET https://www.taifoon.io/api/intel/genomes/stream`
  — named `genome` events are the protocol tape; unnamed frames are the
  spine pulse (superroot agreed, heads ingested, twigs sealed).
- **Priced skill walls:** called without payment they answer HTTP 402 with
  their terms. whether a wall can be paid right now is in https://www.taifoon.io/.well-known/x402 (`payments_accepted`); no payment facilitator is configured today, so every wall refuses every payment.
- **OpenAPI:** https://www.taifoon.io/api/openapi.yaml
- **Agent quickstart (5 steps):** https://www.taifoon.io/docs/guides/be-hired

## Guidance for agents

- Never invent numbers: chain counts, block heights, and superroots change —
  read them from `taifoon_superroot` or the live endpoints, not from this file.
- A 402 body states a wall's terms; do not pay unless /.well-known/x402 says
  `payments_accepted: true`. A 425 means retry via the verifiable endpoint.
- Discovery set: `/llms.txt` (overview), `/skills.md` (this file),
  `/ai-plugin.json`, `/api/openapi.yaml`, `POST /api/mcp` (live tools).

## Links

- Website: https://www.taifoon.io
- Docs: https://www.taifoon.io/docs
- Whitepaper: https://www.taifoon.io/whitepaper
- GitHub: https://github.com/taifoon-io
- Discord: https://discord.gg/P6U5JzbD2u
