agent402-mcp 0.3.0 → 0.4.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 (2) hide show
  1. package/index.js +7 -3
  2. package/package.json +11 -5
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,10 @@
1
1
  {
2
2
  "name": "agent402-mcp",
3
- "version": "0.3.0",
3
+ "version": "0.4.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
+ "description": "Open-source MCP server exposing Agent402's 1,100+ self-hostable tools for AI agents browser, search, PDFs, images, live data, payments. Free via proof-of-work, or pay per call in USDC via the x402 protocol.",
8
8
  "type": "module",
9
9
  "bin": {
10
10
  "agent402-mcp": "index.js"
@@ -20,18 +20,24 @@
20
20
  "mcp",
21
21
  "model-context-protocol",
22
22
  "x402",
23
+ "ai-agents",
24
+ "llm-tools",
25
+ "ai-tools",
26
+ "claude",
27
+ "self-hosted",
23
28
  "agents",
24
29
  "ai",
25
30
  "payments",
26
31
  "usdc",
32
+ "http-402",
27
33
  "tools"
28
34
  ],
29
35
  "license": "MIT",
30
36
  "dependencies": {
31
37
  "@modelcontextprotocol/sdk": "^1.12.0",
32
- "@x402/core": "^2.14.0",
33
- "@x402/evm": "^2.14.0",
34
- "@x402/fetch": "^2.14.0",
38
+ "@x402/core": "2.14.0",
39
+ "@x402/evm": "2.14.0",
40
+ "@x402/fetch": "2.14.0",
35
41
  "viem": "^2.21.0"
36
42
  }
37
43
  }