agent402-mcp 0.2.3 → 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.
- package/README.md +5 -0
- package/index.js +7 -3
- package/package.json +12 -6
package/README.md
CHANGED
|
@@ -6,6 +6,11 @@ Your agent gets browser rendering, screenshots, PDF text extraction, URL→markd
|
|
|
6
6
|
|
|
7
7
|
## Quick start
|
|
8
8
|
|
|
9
|
+
**Zero install (hosted connector):** add `https://agent402.tools/mcp` as a remote
|
|
10
|
+
MCP server — e.g. claude.ai → Settings → Connectors → Add custom connector. The
|
|
11
|
+
pure-CPU tools run free there (rate-limited); for the full catalog and no rate
|
|
12
|
+
limit, run this package locally with a wallet:
|
|
13
|
+
|
|
9
14
|
With a funded wallet (USDC on Base) — every tool available:
|
|
10
15
|
|
|
11
16
|
```json
|
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.
|
|
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
|
-
|
|
321
|
-
|
|
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
|
+
"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
|
|
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
|
-
"license": "
|
|
35
|
+
"license": "MIT",
|
|
30
36
|
"dependencies": {
|
|
31
37
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
32
|
-
"@x402/core": "
|
|
33
|
-
"@x402/evm": "
|
|
34
|
-
"@x402/fetch": "
|
|
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
|
}
|