toll402-mcp 0.3.0 → 0.3.2

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 (2) hide show
  1. package/dist/mcp.js +1 -1
  2. package/package.json +33 -8
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" },
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 } : {}) },
54
54
  body: JSON.stringify(req.params.arguments ?? {}),
55
55
  });
56
56
  const text = await r.text();
package/package.json CHANGED
@@ -1,21 +1,46 @@
1
1
  {
2
2
  "name": "toll402-mcp",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
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
- "bin": { "toll402-mcp": "./dist/mcp.js" },
7
- "files": ["dist", "README.md"],
8
- "scripts": { "build": "tsc -p tsconfig.json", "prepublishOnly": "npm run build" },
9
- "engines": { "node": ">=20" },
6
+ "bin": {
7
+ "toll402-mcp": "dist/mcp.js"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "README.md"
12
+ ],
13
+ "scripts": {
14
+ "build": "tsc -p tsconfig.json",
15
+ "prepublishOnly": "npm run build"
16
+ },
17
+ "engines": {
18
+ "node": ">=20"
19
+ },
10
20
  "dependencies": {
11
21
  "@modelcontextprotocol/sdk": "^1.30.0",
12
22
  "@x402/evm": "~2.25.0",
13
23
  "@x402/fetch": "~2.25.0",
14
24
  "viem": "^2.56.3"
15
25
  },
16
- "devDependencies": { "@types/node": "^22", "typescript": "^5.7.0" },
26
+ "devDependencies": {
27
+ "@types/node": "^22",
28
+ "typescript": "^5.7.0"
29
+ },
17
30
  "license": "MIT",
18
31
  "homepage": "https://toll402.dev",
19
- "repository": { "type": "git", "url": "https://gitlab.com/toll402/toll402-sdk" },
20
- "keywords": ["mcp", "x402", "ai-agents", "usdc", "base", "tools", "toll402"]
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "git+https://gitlab.com/toll402/toll402-sdk.git"
35
+ },
36
+ "keywords": [
37
+ "mcp",
38
+ "x402",
39
+ "ai-agents",
40
+ "usdc",
41
+ "base",
42
+ "tools",
43
+ "toll402"
44
+ ],
45
+ "mcpName": "dev.toll402/toll402-mcp"
21
46
  }