toll402-mcp 0.2.1

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 +10 -0
  2. package/bin.js +3 -0
  3. package/package.json +13 -0
package/README.md ADDED
@@ -0,0 +1,10 @@
1
+ # toll402-mcp
2
+
3
+ `npx -y toll402-mcp` — MCP (stdio) server exposing every tool at https://toll402.dev, paying per call in USDC via x402.
4
+
5
+ Env: `TOLL402_URL` (default https://toll402.dev), `TOLL402_WALLET_KEY` (0x private key with USDC on Base; omit to use the free trial), `TOLL402_MAX_USD` (default 0.25).
6
+
7
+ Claude Code / Cursor / Claude Desktop config:
8
+ ```json
9
+ { "mcpServers": { "toll402": { "command": "npx", "args": ["-y", "toll402-mcp"], "env": { "TOLL402_WALLET_KEY": "0x..." } } } }
10
+ ```
package/bin.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ // Launcher: `npx -y toll402-mcp` → runs the MCP server shipped in the `toll402` package.
3
+ import("toll402/dist/mcp.js").catch((e) => { console.error("toll402-mcp:", e.message); process.exit(1); });
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "toll402-mcp",
3
+ "version": "0.2.1",
4
+ "description": "MCP server for Toll402 (https://toll402.dev): every Toll402 tool as MCP tools, paid per call in USDC via x402. Thin launcher over the `toll402` package.",
5
+ "type": "module",
6
+ "bin": { "toll402-mcp": "./bin.js" },
7
+ "files": ["bin.js", "README.md"],
8
+ "dependencies": { "toll402": "^0.2.1" },
9
+ "license": "MIT",
10
+ "homepage": "https://toll402.dev",
11
+ "repository": { "type": "git", "url": "https://gitlab.com/toll402/toll402" },
12
+ "keywords": ["mcp", "x402", "ai-agents", "usdc", "tools"]
13
+ }