tereno-mcp 0.1.5 โ 0.1.6
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 +4 -3
- package/bin/tereno-mcp.mjs +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,8 +67,9 @@ Restart the client. Nothing else to configure โ the free tools work immediatel
|
|
|
67
67
|
|
|
68
68
|
## ๐ Free, no wallet needed
|
|
69
69
|
|
|
70
|
-
| Tool | The question it answers |
|
|
70
|
+
| Tool / Resource | The question it answers |
|
|
71
71
|
|---|---|
|
|
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. |
|
|
72
73
|
| ๐ `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
74
|
| ๐ท๏ธ `tereno_price` | What would *this exact call* cost right now โ does the answer already exist, and what is the seeder dividend? |
|
|
74
75
|
| ๐งพ `tereno_receipt` | What did a settled call actually charge: tier, list price, credit applied, price paid? |
|
|
@@ -89,8 +90,8 @@ miss nothing to reuse โ settling this call makes your wallet the seeder, a
|
|
|
89
90
|
| Tool | Price (hit โ miss) | The question it answers |
|
|
90
91
|
|---|---:|---|
|
|
91
92
|
| ๐ช `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.
|
|
93
|
-
| ๐ก๏ธ `contract_guard` | $0.
|
|
93
|
+
| โฝ `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 |
|
|
94
|
+
| ๐ก๏ธ `contract_guard` | $0.02 โ $0.10 | Is this Base contract safe to interact with? (executable code, EIP-1967 proxy & pause signals, bounded verdict) |
|
|
94
95
|
| ๐ `prediction_evidence` | $0.01 โ $0.05 | Sourced, machine-readable evidence supporting or contradicting a prediction-market proposition, with provenance |
|
|
95
96
|
|
|
96
97
|
Calling a paid tool returns a `402` carrying the payment challenge in
|
package/bin/tereno-mcp.mjs
CHANGED
|
@@ -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.
|
|
27
|
+
const VERSION = "0.1.6";
|
|
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();
|
|
@@ -102,9 +102,9 @@ async function forward(request) {
|
|
|
102
102
|
+ "and no argument on this tool accepts one. Settle it over HTTP instead: sign "
|
|
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
|
-
+ "once. Free here, needing no wallet and no payment: tereno_catalog, tereno_price, "
|
|
106
|
-
+ "tereno_receipt, tereno_evidence_reference, tereno_publish and demand_pledge. Call
|
|
107
|
-
+ "
|
|
105
|
+
+ "once. Free here, needing no wallet and no payment: tereno_agent_rules, tereno_catalog, tereno_price, "
|
|
106
|
+
+ "tereno_receipt, tereno_evidence_reference, tereno_publish and demand_pledge. Call tereno_agent_rules "
|
|
107
|
+
+ "or tereno_price first to understand cache discounts 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tereno-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"mcpName": "xyz.tereno/tereno",
|
|
5
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",
|