agent402-mcp 0.12.0 → 0.12.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.
- package/README.md +1 -1
- package/index.js +5 -1
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ Claude Code: `claude mcp add agent402 -- npx -y agent402-mcp`
|
|
|
42
42
|
- On startup the server reads the live catalog from `https://agent402.tools/api/pricing` + `/openapi.json`.
|
|
43
43
|
- The high-value tools (`extract`, `render`, `screenshot`, `pdf`, `meta`, `dns`, `http-check`, `tls-cert`, `whois`, the `memory-*` coordination tools, `hash`) are exposed as first-class MCP tools.
|
|
44
44
|
- The rest of the 500+ endpoint catalog (400+ tools + 100 skill packs) is reachable via `search_tools` (find by description) + `call_tool` (call by slug) — keeping your context window small.
|
|
45
|
-
- When a call hits HTTP 402: with a wallet key set (`AGENT_KEY` for the EVM chains — Base/Polygon/Arbitrum/Monad, `SOLANA_AGENT_KEY` for Solana), the server signs an x402 USDC payment on a chain the seller accepts and retries; without a key it solves the tool's proof-of-work challenge (~0.2 s of CPU) on the eligible tools. (The service also settles USDC on Stellar and Algorand, and USDG on Robinhood Chain —
|
|
45
|
+
- When a call hits HTTP 402: with a wallet key set (`AGENT_KEY` for the EVM chains — Base/Polygon/Arbitrum/Monad/Celo/Avalanche, `SOLANA_AGENT_KEY` for Solana), the server signs an x402 USDC payment on a chain the seller accepts and retries; without a key it solves the tool's proof-of-work challenge (~0.2 s of CPU) on the eligible tools. (The service also settles USDC on Celo, Avalanche, Stellar and Algorand, and USDG on Robinhood Chain — 10 chains total — for callers using a raw x402 client rather than this package.)
|
|
46
46
|
- `payment_info` tells the model which mode it's in and what a wallet would unlock.
|
|
47
47
|
- `top_x402_sellers` returns the live x402 leaderboard — which sellers are settling the most USDC (primarily on Base) in the last ~24h, derived from on-chain transfers. Free to call (no payment, no proof-of-work). Useful for agents discovering the wider x402 economy beyond this single service's catalog.
|
|
48
48
|
|
package/index.js
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
// AGENT402_NETWORKS restrict + order the chains to pay on (e.g. "robinhood" for USDG on
|
|
22
22
|
// Robinhood Chain, "base,solana", or a raw CAIP-2 like eip155:4663) — optional
|
|
23
23
|
import { createHash } from "node:crypto";
|
|
24
|
+
import { readFileSync } from "node:fs";
|
|
24
25
|
import { parseNetworkPrefs, withNetworkPreference } from "./networks.js";
|
|
25
26
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
26
27
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
@@ -38,7 +39,10 @@ const AGENT_KEY = process.env.AGENT_KEY || "";
|
|
|
38
39
|
// settle on whichever chain the seller offers (EVM accepts are tried first).
|
|
39
40
|
const SOLANA_AGENT_KEY = process.env.SOLANA_AGENT_KEY || "";
|
|
40
41
|
const HAS_WALLET = Boolean(AGENT_KEY || SOLANA_AGENT_KEY);
|
|
41
|
-
|
|
42
|
+
// Version comes from package.json — the serverInfo self-report drifted from
|
|
43
|
+
// the published version once (0.11.5 vs 0.12.1) because this was a hardcoded
|
|
44
|
+
// string bumped by hand. Reading the manifest makes drift impossible.
|
|
45
|
+
const VERSION = JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8")).version;
|
|
42
46
|
|
|
43
47
|
// Spend controls — enforced BEFORE a payment is ever signed, so a confused or
|
|
44
48
|
// runaway model cannot drain the wallet. Unset = unlimited (back-compat).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent402-mcp",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"mcpName": "io.github.MikeyPetrillo/agent402",
|
|
5
5
|
"author": "Havok Holdings LLC <mike@agent402.tools> (https://agent402.tools)",
|
|
6
6
|
"homepage": "https://agent402.tools",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/MikeyPetrillo/Agent402.git"
|
|
10
10
|
},
|
|
11
|
-
"description": "Open-source MCP server exposing Agent402.Tools' catalog — 500+ strong: 400+ self-hostable tools + 100 multi-tool skill packs (security-audit, trend-analysis, structured-scrape, decode-blob, forecasting-bake-off) for AI agents — browser, web search & answers, PDFs, OCR, images, LLM inference, image generation, code execution, STT, embeddings, live financial/crypto/macro data, SEC EDGAR filings, deterministic stats & forecasting, compression, payments. Free via proof-of-work, or pay per call in USDC on Base, Solana, Polygon, Arbitrum, Monad, Stellar & Algorand — plus USDG on Robinhood Chain (
|
|
11
|
+
"description": "Open-source MCP server exposing Agent402.Tools' catalog — 500+ strong: 400+ self-hostable tools + 100 multi-tool skill packs (security-audit, trend-analysis, structured-scrape, decode-blob, forecasting-bake-off) for AI agents — browser, web search & answers, PDFs, OCR, images, LLM inference, image generation, code execution, STT, embeddings, live financial/crypto/macro data, SEC EDGAR filings, deterministic stats & forecasting, compression, payments. Free via proof-of-work, or pay per call in USDC on Base, Solana, Polygon, Arbitrum, Monad, Celo, Avalanche, Stellar & Algorand — plus USDG on Robinhood Chain (10 chains total) — via the x402 protocol.",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"bin": {
|
|
14
14
|
"agent402-mcp": "index.js"
|
|
@@ -66,6 +66,10 @@
|
|
|
66
66
|
"viem": "^2.21.0"
|
|
67
67
|
},
|
|
68
68
|
"overrides": {
|
|
69
|
-
"ws": "^8.21.0"
|
|
69
|
+
"ws": "^8.21.0",
|
|
70
|
+
"hono": "4.12.32",
|
|
71
|
+
"fast-uri": "3.1.4",
|
|
72
|
+
"body-parser": "2.3.0",
|
|
73
|
+
"@hono/node-server": "2.0.12"
|
|
70
74
|
}
|
|
71
75
|
}
|