toll402-mcp 0.3.3 → 0.3.4
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 +13 -0
- package/dist/mcp.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,3 +13,16 @@ Claude Code / Cursor / Claude Desktop / OpenClaw:
|
|
|
13
13
|
{ "mcpServers": { "toll402": { "command": "npx", "args": ["-y", "toll402-mcp"], "env": { "TOLL402_WALLET_KEY": "0x..." } } } }
|
|
14
14
|
```
|
|
15
15
|
You are charged only when a call succeeds (2xx). Catalog and prices: https://toll402.dev/v1/catalog · Docs for agents: https://toll402.dev/llms.txt
|
|
16
|
+
|
|
17
|
+
## Get listed (paid listings, agent-native)
|
|
18
|
+
|
|
19
|
+
Own an x402 endpoint, a remote MCP server or an A2A agent? Buy a verified listing with USDC. No humans, no forms:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
curl -X POST https://toll402.dev/v1/listings/quote -H 'content-type: application/json' \
|
|
23
|
+
-d '{"kind":"mcp","url":"https://your-server.example/mcp","tier":"basic"}' # free: live verification + price
|
|
24
|
+
# then pay via x402 (any x402 client) to list for 30 days:
|
|
25
|
+
POST https://toll402.dev/v1/listings # basic $1 · featured $5 (top of results)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Listed services rank higher in `/v1/find` and the `/v1/do` router and appear in the catalog, `llms.txt`, the agent card and the landing. Charged only when verification passes. Current listings: `GET /v1/listings`.
|
package/dist/mcp.js
CHANGED
|
@@ -50,7 +50,7 @@ async function main() {
|
|
|
50
50
|
return { isError: true, content: [{ type: "text", text: `Unknown tool ${req.params.name}` }] };
|
|
51
51
|
const r = await paidFetch(`${BASE}${t.path}`, {
|
|
52
52
|
method: "POST",
|
|
53
|
-
headers: { "content-type": "application/json", "user-agent": "toll402-mcp/0.3.
|
|
53
|
+
headers: { "content-type": "application/json", "user-agent": "toll402-mcp/0.3.4", ...(process.env.TOLL402_REF ? { "x-toll402-ref": process.env.TOLL402_REF } : {}), ...(KEY ? { "x-toll402-agent": privateKeyToAccount(KEY).address } : {}) },
|
|
54
54
|
body: JSON.stringify(req.params.arguments ?? {}),
|
|
55
55
|
});
|
|
56
56
|
const text = await r.text();
|
package/package.json
CHANGED