tereno-mcp 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -31,19 +31,22 @@ npx -y tereno-mcp
31
31
 
32
32
  ## ⚡ Why this exists
33
33
 
34
- An agent that reads a contract, signs a transaction or scrapes a page is acting
35
- on information it cannot verify. Most tools answer *what* something is. None of
36
- them tell you how long that answer stays true.
34
+ An agent that interacts with a Base token or contract, or trades a prediction-market
35
+ proposition, is acting on information it cannot verify. Most tools answer *what*
36
+ something is. None of them tell you how long that answer stays true.
37
37
 
38
38
  `tereno-mcp` puts [Tereno](https://www.tereno.xyz) inside any MCP client. Every
39
39
  paid answer comes back with the evidence behind it, the limits of that evidence,
40
- and **the block it stops being valid at**.
40
+ and **the block or timestamp it stops being valid at**.
41
41
 
42
42
  - **No API key, no signup.** The agent's wallet *is* the identity.
43
- - **Price before payment.** `tereno_price` tells you the cost and whether the
44
- answer already exists, without a wallet and without committing to anything.
45
- - **Cheaper when shared.** Deterministic answers are reused across agents: the
46
- first caller pays to compute, everyone after pays the reuse price.
43
+ - **Price & seeder dividend before payment.** `tereno_price` tells you the cost,
44
+ whether the answer already exists, and how much your wallet earns in reuse
45
+ dividends if you seed it — without a wallet and without committing to anything.
46
+ - **Positive-sum when shared.** Deterministic answers are reused across agents:
47
+ the first caller (or free publisher via `tereno_publish`) claims the **seeder**
48
+ slot, everyone after pays the lower reuse price, and the seeder earns a **20%
49
+ reuse dividend** in non-transferable credits on every cross-wallet reuse.
47
50
 
48
51
  ## 🚀 Install
49
52
 
@@ -66,31 +69,29 @@ Restart the client. Nothing else to configure — the free tools work immediatel
66
69
 
67
70
  | Tool | The question it answers |
68
71
  |---|---|
69
- | 📖 `tereno_catalog` | What can Tereno answer, what does it cost, how long does each answer stay valid? |
70
- | 🏷️ `tereno_price` | What would *this exact call* cost right now — and does the answer already exist? |
72
+ | 📖 `tereno_catalog` | What can Tereno answer, what does it cost, how long does each answer stay valid, and where is the open bounty queue? |
73
+ | 🏷️ `tereno_price` | What would *this exact call* cost right now — does the answer already exist, and what is the seeder dividend? |
71
74
  | 🧾 `tereno_receipt` | What did a settled call actually charge: tier, list price, credit applied, price paid? |
75
+ | 🔗 `tereno_evidence_reference` | Resolve a portable `sha256:` evidence reference received from another agent. |
76
+ | 🌱 `tereno_publish` | Publish a contract bytecode fingerprint you computed yourself (audited by recomputation) to claim its seeder slot and earn reuse dividends + optional ERC-8004 on-chain attestation. |
77
+ | 🤝 `demand_pledge` | Name a capability you would pay for. Credit is released only after the same wallet settles it later. |
72
78
 
73
- `tereno_price` is the one worth knowing about. It names the reuse tier out loud:
79
+ `tereno_price` names both the reuse tier and the `seederEconomics` out loud:
74
80
 
75
81
  ```
76
- hit another agent already paid to compute this and it is still fresh
77
- partial the durable half survived; only the expired part is recomputed
78
- miss nothing to reuse — this call computes it, and the next asker pays less
82
+ hit another agent already paid to compute this and it is still fresh ($0.01)
83
+ partial the durable half survived; only the expired part is recomputed ($0.02)
84
+ miss nothing to reuse — settling this call makes your wallet the seeder, and every later cross-wallet reuse returns a 20% credit dividend to you
79
85
  ```
80
86
 
81
- ## 💳 Paid per call
87
+ ## 💳 Paid per call (x402 in USDC on Base)
82
88
 
83
- | Tool | Price | The question it answers |
89
+ | Tool | Price (hit → miss) | The question it answers |
84
90
  |---|---:|---|
85
- | 🚦 `transaction_intent_guard` | $0.005 | **Is this safe to sign?** Simulation, gas, balance and allowance deltas, unlimited-approval flags |
86
- | 🛡️ `contract_guard` | $0.001–3 | Is this contract safe to interact with? (code, proxy, pause) |
87
- | 🕵️ `contract_change` | $0.001–2 | Did it change since last look? (rug-pull-after-audit detector) |
88
- | 🪙 `token_metadata` | $0.001–3 | What token is this, really? (name, symbol, decimals, supply) |
89
- | 🧬 `contract_interface` | $0.001–2 | ERC-20? NFT? Proxy? One bounded probe |
90
- | ⛽ `chain_snapshot` | $0.001–2 | Latest Base block, base fee and suggested gas, zero parameters |
91
- | 📄 `web_compile` | $0.001–5 | Public URL → bounded Markdown with resolved links, citations and a reusable artifact |
92
- | 🔎 `evidence_artifact` | $0.001–3 | Can this public artifact be reused? Provenance, field validity, recomputation input |
93
- | 🤝 `demand_pledge` | free | Name a capability you would pay for. Credit only after the same wallet pays for it later |
91
+ | 🪙 `token_metadata` | $0.01 – $0.03 | What Base ERC-20 token is this? (`name`, `symbol`, `decimals` shared for 7d + fresh `totalSupply` at current block) |
92
+ | ⛽ `chain_snapshot` | $0.01 – $0.02 | What is the current state of Base? Latest block number, timestamp, base fee and suggested gas fees, zero parameters |
93
+ | 🛡️ `contract_guard` | $0.01 – $0.03 | Is this Base contract safe to interact with? (executable code, EIP-1967 proxy & pause signals, bounded verdict) |
94
+ | 📊 `prediction_evidence` | $0.01 – $0.05 | Sourced, machine-readable evidence supporting or contradicting a prediction-market proposition, with provenance |
94
95
 
95
96
  Calling a paid tool returns a `402` carrying the payment challenge in
96
97
  `error.data.paymentRequired`, the payable resource URL in `error.data.resource`,
@@ -109,9 +110,6 @@ private key**:
109
110
  have headers, so signing the challenge and retrying the same tool call is the
110
111
  normal flow and everything stays inside MCP.
111
112
 
112
- > 🔒 `transaction_intent_guard` is never cached, shared or resold. An unsigned
113
- > transaction is intent, and it stays with the wallet that paid for it.
114
-
115
113
  ## ⚙️ Configuration
116
114
 
117
115
  | Env | Default | Purpose |
@@ -24,7 +24,7 @@ import { createInterface } from "node:readline";
24
24
 
25
25
  // Travels in the user-agent, and the demand panel counts installs by it, so it
26
26
  // has to track the published version rather than drift from it.
27
- const VERSION = "0.1.4";
27
+ const VERSION = "0.1.5";
28
28
  const BASE_URL = (process.env.TERENO_BASE_URL || "https://www.tereno.xyz").replace(/\/+$/, "");
29
29
  const ENDPOINT = BASE_URL + "/api/mcp";
30
30
  const WALLET = process.env.TERENO_WALLET?.trim();
@@ -103,8 +103,8 @@ async function forward(request) {
103
103
  + `data.paymentRequired with an x402 client and ${where}. That returns the same `
104
104
  + "payload this tool would have returned, including the receipt, and it is billed "
105
105
  + "once. Free here, needing no wallet and no payment: tereno_catalog, tereno_price, "
106
- + "tereno_receipt, tereno_evidence_reference and demand_pledge. Call tereno_price "
107
- + "first if you only wanted to know the cost.",
106
+ + "tereno_receipt, tereno_evidence_reference, tereno_publish and demand_pledge. Call tereno_price "
107
+ + "first if you only wanted to know the cost and seeder dividend economics.",
108
108
  {
109
109
  paymentRequired: challenge,
110
110
  // The payable resource, which is the capability's invoke URL. This
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "tereno-mcp",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "mcpName": "xyz.tereno/tereno",
5
- "description": "MCP server for Tereno on Base: check a contract, a transaction or a web page before you act on it. Free catalog, pricing and receipt tools; paid answers settle per call with x402 in USDC.",
5
+ "description": "MCP server for Tereno on Base: inspect token metadata, current chain state, contract risk and sourced prediction-market evidence. Free catalog, pricing, receipt and publish tools; paid answers settle per call with x402 in USDC and earn seeder reuse dividends.",
6
6
  "type": "module",
7
7
  "bin": {
8
8
  "tereno-mcp": "bin/tereno-mcp.mjs"
@@ -26,9 +26,12 @@
26
26
  "ai-agent",
27
27
  "smart-contract",
28
28
  "contract-security",
29
+ "token-metadata",
30
+ "prediction-market",
31
+ "polymarket",
29
32
  "onchain",
30
33
  "usdc",
31
- "web-to-markdown"
34
+ "erc8004"
32
35
  ],
33
36
  "homepage": "https://www.tereno.xyz",
34
37
  "repository": {