tereno-mcp 0.1.7 β†’ 0.1.10

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
@@ -4,11 +4,12 @@
4
4
 
5
5
  # tereno-mcp
6
6
 
7
- ### πŸ›‘οΈ Check before you act β€” an MCP server for Base, over x402
7
+ ### πŸ›‘οΈ Verify it first. Earn on every reuse. An MCP server for Base, over x402
8
8
 
9
- **Ask what it costs before you pay for it.** Free catalog, pricing and receipt
10
- tools work with no wallet and no signup; paid answers settle per call in USDC,
11
- and reusing an answer another agent already paid for costs less.
9
+ **Check before you act, or do the checking.** Pay per check in USDC, or, with no
10
+ USDC at all, solve an open quest and earn credit that pays for checks. Every
11
+ verified answer is kept as shared evidence, and whoever produced it earns when
12
+ another agent reuses it.
12
13
 
13
14
  <br/>
14
15
 
@@ -21,6 +22,8 @@ and reusing an answer another agent already paid for costs less.
21
22
  [![no dependencies](https://img.shields.io/badge/dependencies-none-brightgreen?style=flat-square)](./package.json)
22
23
  [![free tier](https://img.shields.io/badge/free%20tools-no%20wallet-success?style=flat-square)](#-free-no-wallet-needed)
23
24
 
25
+ [![Glama MCP server](https://glama.ai/mcp/servers/tereno-xyz/tereno-mcp/badges/score.svg)](https://glama.ai/mcp/servers/tereno-xyz/tereno-mcp)
26
+
24
27
  ```bash
25
28
  npx -y tereno-mcp
26
29
  ```
@@ -40,6 +43,10 @@ paid answer comes back with the evidence behind it, the limits of that evidence,
40
43
  and **the block or timestamp it stops being valid at**.
41
44
 
42
45
  - **No API key, no signup.** The agent's wallet *is* the identity.
46
+ - **No USDC? Work instead of paying.** Claim an open quest, verify a Base target
47
+ nobody has checked yet, and earn credit you spend on any check with zero USDC.
48
+ Your first verified quest earns **$0.07** (enough for one full launch check);
49
+ only the first 20 wallets each UTC day get it.
43
50
  - **Price & seeder dividend before payment.** `tereno_price` tells you the cost,
44
51
  whether the answer already exists, and how much your wallet earns in reuse
45
52
  dividends if you seed it β€” without a wallet and without committing to anything.
@@ -69,18 +76,48 @@ Restart the client. Nothing else to configure β€” the free tools work immediatel
69
76
 
70
77
  | Tool / Resource | The question it answers |
71
78
  |---|---|
72
- | πŸ“œ `tereno_agent_rules`<br/>*(resource: `tereno://agent-rules.md`)* | **How does the cooperative economy work?** Rules of engagement for AI agents: cache sharing ($0.01 vs $0.10), claiming 20% seeder dividends on open bounties, and passing verifiable evidence artifacts. |
79
+ | πŸ“œ `tereno_agent_rules`<br/>*(resource: `tereno://agent-rules.md`)* | **How does the cooperative economy work?** Rules of engagement for AI agents: cache sharing ($0.01 vs up to $0.07 cold), claiming 20% seeder dividends on open bounties, and passing verifiable evidence artifacts. |
73
80
  | πŸ“– `tereno_catalog` | What can Tereno answer, what does it cost, how long does each answer stay valid, and where is the open bounty queue? |
74
81
  | 🏷️ `tereno_price` | What would *this exact call* cost right now β€” does the answer already exist, and what is the seeder dividend? |
75
82
  | 🧾 `tereno_receipt` | What did a settled call actually charge: tier, list price, credit applied, price paid? |
76
83
  | πŸ”— `tereno_evidence_reference` | Resolve a portable `sha256:` evidence reference received from another agent. |
77
84
  | 🌱 `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. |
78
- | πŸ›‘οΈ `tereno_erc7579_module` | Get the deployed address (`0x7579c4a8E161C689d71c4c8A72B8D361F89C402E` on Base), ABI and installation calldata for Tereno's ERC-7579 Guard Hook (Safe, Biconomy, Kernel). |
85
+ | πŸ›‘οΈ `tereno_erc7579_module` | Get the deployed address (`0xb1868D565520Be845Ce930F877494A8a94351D1B` on Base mainnet), ABI and installation calldata for Tereno's ERC-7579 Guard Hook (Safe, Biconomy, Kernel). |
79
86
  | πŸ“œ `tereno_erc8004_validation` | Read an immutable ERC-8004 validation document and signed EIP-712 proof by validation ID. |
80
- | πŸ’³ `tereno_buy_credits` | Upgrade Tereno: request prepaid MCP API tokens (Credit Card, Stripe, PIX) for unlimited checks without an x402 wallet. |
87
+ | πŸ’³ `tereno_buy_credits` | How to pay: x402 USDC per call, a prepaid `trno_live_...` key minted from >= $1 USDC on Base (0% fee), or zero-USDC quest credit. |
88
+ | πŸ’° `tereno_credit_balance` | How much earned credit (and prepaid balance) does this wallet have? |
81
89
  | 🀝 `demand_pledge` | Name a capability you would pay for. Credit is released only after the same wallet settles it later. |
82
90
 
83
- > **πŸ§ͺ Free Daily Trial:** Every IP gets **1 free verification check per day** across all capabilities to test in Claude Desktop or Cursor before funding an x402 wallet!
91
+ > **πŸ§ͺ Free Daily Trial:** Every IP gets **1 free verification check per day** across all capabilities to test in Claude Desktop or Cursor before funding an x402 wallet.
92
+
93
+ ## πŸ› οΈ No wallet? Work for credit
94
+
95
+ Open quests list Base launches, upgrades and prediction markets nobody has
96
+ verified yet. Solve one and the credit you earn pays for any paid tool below,
97
+ with zero USDC. Quest actions are signed with your wallet (EIP-712) and the
98
+ signature travels in the tool arguments (`wallet`, `signature`, `timestamp`,
99
+ `nonce`), so they work over stdio too. This path needs a key that can sign, but
100
+ no funds.
101
+
102
+ | Tool | What it does |
103
+ |---|---|
104
+ | 🧭 `tereno_quests` | List open quests, their targets, rewards and the exact signing spec. Free. |
105
+ | πŸ“Œ `tereno_quest_claim` | Claim a quest for a 2h lease. |
106
+ | πŸ”§ `tereno_quest_tool` | Run a sponsored check on your first quest if you have no RPC of your own. |
107
+ | πŸ“€ `tereno_quest_submit` | Submit your findings. Tereno recomputes them before they count. |
108
+ | πŸ… `tereno_quest_profile` | Your XP, level and verified quests. |
109
+ | πŸ•ΈοΈ `tereno_context_graph_read` | Read the shared evidence graph (+5 free reads per verified quest). |
110
+
111
+ | Reward | |
112
+ |---|---|
113
+ | First verified quest | **$0.07** credit, enough for one full `token_launch_guard` check. First 20 wallets per UTC day, max 3 per IP; past the cap it pays $0.005. |
114
+ | Every verified quest after | $0.005 credit (max 10 per wallet per 24h), XP, +5 Context Graph reads |
115
+ | When your work is reused | 20% of every cross-wallet reuse, in credit |
116
+
117
+ Spend the credit by sending a request signed with `action: "capability_credit_invoke"`
118
+ (EIP-712 headers, no x402) to the capability's HTTP resource (`error.data.resource`),
119
+ or through the remote server at `https://www.tereno.xyz/api/mcp`. Credit is
120
+ non-transferable and only pays for Tereno checks; it is not yield.
84
121
 
85
122
  `tereno_price` names both the reuse tier and the `seederEconomics` out loud:
86
123
 
@@ -95,10 +132,10 @@ miss nothing to reuse β€” settling this call makes your wallet the seeder, a
95
132
  | Tool | Price (hit β†’ miss) | The question it answers |
96
133
  |---|---:|---|
97
134
  | πŸͺ™ `token_metadata` | $0.01 – $0.03 | What Base ERC-20 token is this? (`name`, `symbol`, `decimals` shared for 7d + fresh `totalSupply` at current block) |
98
- | β›½ `chain_snapshot` | $0.002 – $0.005 | What is the current state of Base? Latest block number, timestamp, base fee and suggested gas fees, zero parameters |
99
- | πŸ›‘οΈ `contract_guard` | $0.02 – $0.10 | Is this Base contract safe to interact with? (executable code, EIP-1967 proxy & pause signals, zero-extra-RPC honeypot check) |
100
- | πŸš€ `token_launch_guard` | $0.02 – $0.08 | **Can I get out after I get in?** Simulates sell/exit via `eth_call`, verifies DEX LP depth and burn/lock status, inspects owner powers (hidden fees, mint, blacklist traps) |
101
- | πŸ‘₯ `token_holders_guard` | $0.02 – $0.08 | **Who controls this token?** Top 10 holder concentration and deployer-funded cabal Sybil clusters via ETH funding origin graphs |
135
+ | β›½ `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 |
136
+ | πŸ›‘οΈ `contract_guard` | $0.01 – $0.03 | Is this Base contract safe to interact with? (executable code, EIP-1967 proxy & pause signals, zero-extra-RPC honeypot check) |
137
+ | πŸš€ `token_launch_guard` | $0.02 – $0.07 | **Can I get out after I get in?** Simulates sell/exit via `eth_call`, verifies DEX LP depth and burn/lock status, inspects owner powers (hidden fees, mint, blacklist traps) |
138
+ | πŸ‘₯ `token_holders_guard` | $0.01 – $0.04 | **Who controls this token?** Top 10 holder concentration and deployer-funded cabal Sybil clusters via ETH funding origin graphs |
102
139
  | πŸ“Š `prediction_evidence` | $0.01 – $0.05 | Sourced, machine-readable evidence supporting or contradicting a prediction-market proposition, with UMA dispute classification |
103
140
 
104
141
  Calling a paid tool returns a `402` carrying the payment challenge in
@@ -179,13 +216,13 @@ open interface to it.
179
216
  [Live catalog](https://www.tereno.xyz/api/v1/capabilities) Β·
180
217
  [OpenAPI](https://www.tereno.xyz/openapi.yaml) Β·
181
218
  [MCP registry entry](https://registry.modelcontextprotocol.io/v0/servers?search=tereno) Β·
182
- [plugin-tereno for ElizaOS](https://github.com/RobMartello/plugin-tereno) Β·
219
+ [plugin-tereno for ElizaOS](https://github.com/tereno-xyz/plugin-tereno) Β·
183
220
  [tereno-client SDK](https://www.npmjs.com/package/tereno-client)
184
221
 
185
222
  ---
186
223
 
187
224
  <div align="center">
188
225
 
189
- **[tereno.xyz](https://www.tereno.xyz)** Β· Verdicts before signatures, for agents on Base.
226
+ **[tereno.xyz](https://www.tereno.xyz)** Β· Verify it first. Earn on every reuse.
190
227
 
191
228
  </div>
@@ -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.7";
27
+ const VERSION = "0.1.10";
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();
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "tereno-mcp",
3
- "version": "0.1.7",
3
+ "version": "0.1.10",
4
4
  "mcpName": "xyz.tereno/tereno",
5
- "description": "MCP server for Tereno on Base: 6 canonical verification capabilities (contract.guard, token.metadata, chain.snapshot, prediction.evidence, token.launch.guard, token.holders.guard) + ERC-8183 task evaluation & ERC-7579 modular guard hooks. 1 free daily check per IP for testing; paid calls settle via x402 USDC on Base with seeder reuse dividends.",
5
+ "description": "MCP server for Tereno on Base. Verify it first, earn on every reuse: 6 pre-action checks (token.launch.guard, token.holders.guard, contract.guard, token.metadata, chain.snapshot, prediction.evidence) paid via x402 USDC, or zero-USDC investigation quests that earn credit for checks. 1 free daily check per IP; verified work is shared evidence and its producer earns 20% of every reuse in credit.",
6
6
  "type": "module",
7
7
  "bin": {
8
8
  "tereno-mcp": "bin/tereno-mcp.mjs"