toll402-mcp 0.3.2 → 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.
Files changed (3) hide show
  1. package/README.md +13 -0
  2. package/dist/mcp.js +1 -1
  3. package/package.json +2 -2
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.2", ...(process.env.TOLL402_REF ? { "x-toll402-ref": process.env.TOLL402_REF } : {}), ...(KEY ? { "x-toll402-agent": privateKeyToAccount(KEY).address } : {}) },
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toll402-mcp",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "MCP server for Toll402 (https://toll402.dev): every Toll402 tool as MCP tools, paid per call in USDC via x402. No accounts, no API keys.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -31,7 +31,7 @@
31
31
  "homepage": "https://toll402.dev",
32
32
  "repository": {
33
33
  "type": "git",
34
- "url": "git+https://gitlab.com/toll402/toll402-sdk.git"
34
+ "url": "git+https://github.com/toll402/toll402.git"
35
35
  },
36
36
  "keywords": [
37
37
  "mcp",