agent402-mcp 0.3.0 → 0.5.0

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 +2 -2
  2. package/index.js +7 -3
  3. package/package.json +15 -5
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # agent402-mcp
2
2
 
3
- MCP server for [Agent402](https://agent402.tools) — 1000+ pay-per-call web tools for AI agents, paid per call in USDC via the [x402 protocol](https://www.x402.org), or **with compute (proof-of-work)** when no wallet is configured. Built by [Mikey Petrillo](https://github.com/MikeyPetrillo).
3
+ MCP server for [Agent402](https://agent402.tools) — 1,100+ pay-per-call web tools for AI agents, paid per call in USDC via the [x402 protocol](https://www.x402.org), or **with compute (proof-of-work)** when no wallet is configured. Built by [Mikey Petrillo](https://github.com/MikeyPetrillo).
4
4
 
5
- Your agent gets browser rendering, screenshots, PDF text extraction, URL→markdown, live DNS/TLS/WHOIS, wallet-keyed shared memory, and ~1000 utility/conversion tools — with payment handled invisibly underneath the MCP calls. No signup, no API key.
5
+ Your agent gets browser rendering, screenshots, PDF text extraction, URL→markdown, live web search **+ web answers with citations**, live **financial/crypto/macro data** (Yahoo stock quotes, CoinGecko, FRED, ECB FX, World Bank, yield curve), **SEC EDGAR filings** (10-K/10-Q text, XBRL, insider, 13F, IPO calendar), DNS/TLS/WHOIS, wallet-keyed shared memory, and ~1,040 utility/conversion tools — with payment handled invisibly underneath the MCP calls. No signup, no API key.
6
6
 
7
7
  ## Quick start
8
8
 
package/index.js CHANGED
@@ -23,7 +23,7 @@ import { CallToolRequestSchema, ListToolsRequestSchema } from "@modelcontextprot
23
23
 
24
24
  const BASE = (process.env.AGENT402_URL || "https://agent402.tools").replace(/\/$/, "");
25
25
  const AGENT_KEY = process.env.AGENT_KEY || "";
26
- const VERSION = "0.3.0";
26
+ const VERSION = "0.4.0";
27
27
 
28
28
  // Spend controls — enforced BEFORE a payment is ever signed, so a confused or
29
29
  // runaway model cannot drain the wallet. Unset = unlimited (back-compat).
@@ -317,8 +317,12 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
317
317
  try {
318
318
  pricingInfo = await loadCatalog();
319
319
  } catch (err) {
320
- log(`Could not load the catalog from ${BASE}: ${err.message}`);
321
- process.exit(1);
320
+ // Don't hard-exit: starting with an empty catalog still lets the server
321
+ // connect and answer introspection (tools/list) — required to pass directory
322
+ // health checks (e.g. Glama) and more resilient if the catalog endpoint is
323
+ // briefly unreachable. search_tools/call_tool just return nothing until the
324
+ // catalog is reachable again.
325
+ log(`Could not load the catalog from ${BASE}: ${err.message} — starting with an empty catalog`);
322
326
  }
323
327
  const requested = (process.env.AGENT402_TOOLS || DEFAULT_CURATED.join(","))
324
328
  .split(",").map((s) => s.trim()).filter(Boolean);
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "agent402-mcp",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "mcpName": "io.github.MikeyPetrillo/agent402",
5
5
  "author": "Mikey Petrillo (https://github.com/MikeyPetrillo)",
6
6
  "homepage": "https://agent402.tools",
7
- "description": "MCP server for Agent402 (agent402.tools) — 1000+ pay-per-call web tools for AI agents. Pays per call in USDC via the x402 protocol, or with compute (proof-of-work) when no wallet is configured.",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/MikeyPetrillo/Agent402.git"
10
+ },
11
+ "description": "Open-source MCP server exposing Agent402's 1,100+ self-hostable tools for AI agents — browser, web search & answers, PDFs, images, live financial/crypto/macro data, SEC EDGAR filings, payments. Free via proof-of-work, or pay per call in USDC via the x402 protocol.",
8
12
  "type": "module",
9
13
  "bin": {
10
14
  "agent402-mcp": "index.js"
@@ -20,18 +24,24 @@
20
24
  "mcp",
21
25
  "model-context-protocol",
22
26
  "x402",
27
+ "ai-agents",
28
+ "llm-tools",
29
+ "ai-tools",
30
+ "claude",
31
+ "self-hosted",
23
32
  "agents",
24
33
  "ai",
25
34
  "payments",
26
35
  "usdc",
36
+ "http-402",
27
37
  "tools"
28
38
  ],
29
39
  "license": "MIT",
30
40
  "dependencies": {
31
41
  "@modelcontextprotocol/sdk": "^1.12.0",
32
- "@x402/core": "^2.14.0",
33
- "@x402/evm": "^2.14.0",
34
- "@x402/fetch": "^2.14.0",
42
+ "@x402/core": "2.14.0",
43
+ "@x402/evm": "2.14.0",
44
+ "@x402/fetch": "2.14.0",
35
45
  "viem": "^2.21.0"
36
46
  }
37
47
  }