agent402-mcp 0.13.0 → 0.13.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # agent402-mcp
2
2
 
3
- MCP server for [Agent402](https://agent402.tools), the applied layer of [Agentic Finance](https://agent402.tools/agentic-finance) - a catalog of **500+: 400+ pay-per-call web tools + 100+ curated multi-tool skill packs** for AI agents (every one tested, priced, and settled on-chain; every one earns its place), paid per call in USDC via the [x402 protocol](https://www.x402.org), **with compute (proof-of-work)** when no wallet is configured, or **by card** through a prepaid credits key. (The hosted API is dual-stack: it also accepts [MPP](https://agent402.tools/what-is-mpp) clients on the same 402, settling on Base/Celo or natively on Tempo; this package pays via x402 or credits.) Built by [Havok Holdings LLC](https://github.com/MikeyPetrillo/Agent402).
3
+ MCP server for [Agent402](https://agent402.tools), the applied layer of [Agentic Finance](https://agent402.tools/agentic-finance) - a catalog of **500+: 400+ pay-per-call web tools + 80+ curated multi-tool skill packs** for AI agents (every one tested, priced, and settled on-chain; every one earns its place), paid per call in USDC via the [x402 protocol](https://www.x402.org), **with compute (proof-of-work)** when no wallet is configured, or **by card** through a prepaid credits key. (The hosted API is dual-stack: it also accepts [MPP](https://agent402.tools/what-is-mpp) clients on the same 402, settling on Base/Celo or natively on Tempo; this package pays via x402 or credits.) Built by [Havok Holdings LLC](https://github.com/MikeyPetrillo/Agent402).
4
4
 
5
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), **deterministic stats & forecasting** (Pearson correlation, OLS, Holt-Winters), **compression** (gzip/brotli), DNS/TLS/WHOIS + email-deliverability checks, wallet-keyed shared memory, and 200+ deterministic pure-CPU utilities - plus 100+ **skill packs** like `security-audit`, `trend-analysis`, `structured-scrape`, `decode-blob`, and `forecasting-bake-off` callable as MCP prompts, and the **report products** (deep research, company dossier, 13F fund report, domain audit, token risk, FDA recall, insider flow, market brief) as ordinary catalog slugs. Payment handled invisibly underneath the MCP calls. No signup, no API key.
6
6
 
@@ -10,7 +10,7 @@ Your agent gets browser rendering, screenshots, PDF text extraction, URL→markd
10
10
  MCP server - e.g. claude.ai → Settings → Connectors → Add custom connector. The
11
11
  pure-CPU tools run free there (rate-limited), and the paid tools are payable
12
12
  right on the connector over [MPP](https://agent402.tools/what-is-mpp): a paid
13
- call answers JSON-RPC error `-32042` with the challenges, and an MCP client
13
+ call answers JSON-RPC error `-32042` with the challenges (`-32043` if a presented credential was refused), and an MCP client
14
14
  wrapped with `mppx`'s `McpClient.wrap()` (USDC on Base/Celo, or native Tempo)
15
15
  pays and retries on its own, receipt in `_meta`. For no rate limit, or to pay
16
16
  over x402 or by card instead, run this package locally:
@@ -76,8 +76,8 @@ caps, what's been spent, and what remains. With no wallet key and no credits key
76
76
  the server runs in proof-of-work mode (pure-CPU tools stay free). Use dedicated
77
77
  low-value wallets for `AGENT_KEY` / `SOLANA_AGENT_KEY`, funded only with what
78
78
  you intend to spend. Most tools cost $0.001–$0.02. The routing tiers top out
79
- at $0.55 (`route-execute-max`); multi-tool skill packs run up to $1.50; and the
80
- report products run $5 to $39 per report (research $5 up to dossier-max $39),
79
+ at $3.30 (`route-execute-pro`); multi-tool skill packs run $0.003 to $0.119; and the
80
+ report products run $0.60 to $2.00 per report (domain-audit $0.60 up to the ticker pack at $2.00),
81
81
  so set `AGENT402_MAX_PER_CALL` if you want a hard per-call ceiling.
82
82
 
83
83
  ## How it works
@@ -98,7 +98,7 @@ so set `AGENT402_MAX_PER_CALL` if you want a hard per-call ceiling.
98
98
  | ≤ $0.50 | $0.55 | `POST /api/route/execute-max` |
99
99
 
100
100
  A tool priced above the tier's ceiling returns a self-correcting 409 naming its direct route.
101
- - **Report products** are catalog slugs like any other, so `catalog.call` runs them with a wallet or a credits key: `research` ($5), `research-pro` ($15), `research-max` ($30), `market-brief` ($15), `dossier` ($19), `dossier-max` ($39), `fund-report` ($9), `fund-report-max` ($19), `domain-audit` ($5), `domain-audit-pro` ($9), `token-risk` ($5), `token-risk-pro` ($12), `recall-report` ($5), `insider-report` ($9). The same reports are sold by card at https://agent402.tools/reports, and the recurring monitors (domain, fund, recall, insider, IPO - $9/month) at https://agent402.tools/monitors.
101
+ - **Report products** are catalog slugs like any other, so `catalog.call` runs them with a wallet or a credits key: `research` ($0.35), `research-pro` ($0.65), `research-max` ($1.10), `market-brief` ($0.35), `dossier` ($0.55), `dossier-max` ($0.95), `fund-report` ($0.25), `fund-report-max` ($0.50), `domain-audit` ($0.20), `domain-audit-pro` ($0.30), `token-risk` ($0.30), `token-risk-pro` ($0.60), `token-brief` ($0.35), `recall-report` ($0.20), `insider-report` ($0.25), `filing-report` ($0.25), `ticker-pack` ($0.75). The same reports are sold to people by card at https://agent402.tools/reports for $1, or $2 for the deepest three: the card price includes payment processing, and an agent paying per call pays the lower tool price for the same report. The recurring monitors (domain, SEC filing, token, fund, recall, insider, IPO - $3/month) are at https://agent402.tools/monitors.
102
102
 
103
103
  ## Workflows (skill packs)
104
104
 
package/index.js CHANGED
@@ -139,6 +139,7 @@ function getPayFetch() {
139
139
  const { x402Client } = await import("@x402/core/client");
140
140
  const { wrapFetchWithPayment } = await import("@x402/fetch");
141
141
  const client = new x402Client();
142
+ client.setSpendControls?.(false); // @x402/core 2.23+ defaults to a $1 pegged-assets-only cap; this package bounds spend itself
142
143
  if (AGENT_KEY) {
143
144
  const { registerExactEvmScheme } = await import("@x402/evm/exact/client");
144
145
  const { privateKeyToAccount } = await import("viem/accounts");
@@ -446,7 +447,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
446
447
  title: "Search the Agent402 tool catalog",
447
448
  annotations: { title: "Search the Agent402 tool catalog", ...SAFE },
448
449
  description:
449
- `BROWSE the long catalog behind the flagship set: keyword search over Agent402's 500+ deterministic pay-per-call tools (exact count ${catalog.size}). Start with listed flagships for search/answer/news/render/stock/transcribe/memory; use this for long-tail slugs. Counterpart catalog.find resolves a task to ONE ready-to-run pick. Many pure-CPU tools are free via proof-of-work. OpenAI-compatible LLM gateway at ${BASE}/v1 (chat nano $0.003, auto $0.01, embeddings $0.002) via catalog.call when a wallet key is set. Returns matching tools + workflow templates; call them with catalog.call.`,
450
+ `BROWSE the long catalog behind the flagship set: keyword search over Agent402's 500+ pay-per-call tools (exact count ${catalog.size}). Start with listed flagships for search/answer/news/render/stock/transcribe/memory; use this for long-tail slugs. Counterpart catalog.find resolves a task to ONE ready-to-run pick. Many pure-CPU tools are free via proof-of-work. OpenAI-compatible LLM gateway at ${BASE}/v1 (chat nano $0.003, auto $0.01, embeddings $0.002) via catalog.call when a wallet key is set. Returns matching tools + workflow templates; call them with catalog.call.`,
450
451
  inputSchema: {
451
452
  type: "object",
452
453
  properties: {
package/output-schemas.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // Flagship MCP surface — the small default tools/list agents see first.
6
6
  //
7
7
  // Product intent (competitive brief 2026-08): Agent402 wins as the deterministic
8
- // tools layer beside LLM gateways (BlockRun et al.). Default MCP exposure is a
8
+ // tools layer beside per-token LLM gateways. Default MCP exposure is a
9
9
  // tight flagship set; the long catalog stays callable via find_tool /
10
10
  // search_tools / call_tool. Keep this list aligned with mcp/index.js
11
11
  // DEFAULT_CURATED (stdio package cannot import this file when published).
@@ -99,7 +99,7 @@ export const FLAGSHIP_WRITERS = new Set(["memory-write"]);
99
99
 
100
100
  /** initialize.serverInfo description (MCP Implementation.description). */
101
101
  export const MCP_SERVER_DESCRIPTION =
102
- "Agent402 - deterministic pay-per-call tools for AI agents: live web search and cited answers, news, browser render, market data, speech-to-text, wallet-keyed memory, plus 500+ long-tail tools via catalog.find. Settle in USDC via x402 or MPP (Machine Payments Protocol) on the same 402, or free via proof-of-work. The applied layer of Agentic Finance. Maintained by Havok Holdings LLC.";
102
+ "Agent402 - pay-per-call tools and models for AI agents: live web search and cited answers, news, browser render, market data, speech-to-text, wallet-keyed memory, plus 500+ long-tail tools via catalog.find. Settle in USDC via x402 or MPP (Machine Payments Protocol) on the same 402, or free via proof-of-work. The applied layer of Agentic Finance. Maintained by Havok Holdings LLC.";
103
103
 
104
104
  /** initialize.serverInfo.websiteUrl */
105
105
  export const MCP_SERVER_WEBSITE = "https://agent402.tools";
@@ -507,7 +507,7 @@ export function mcpInitializeInstructions(baseUrl) {
507
507
  const install = mcpInstallHints(baseUrl);
508
508
  const hosted = install.hostedUrl;
509
509
  return [
510
- "Agent402 is a deterministic tools layer for AI agents (Havok Holdings LLC) - the applied layer of Agentic Finance: agents that pay and get paid per request over x402 or MPP, or free via proof-of-work.",
510
+ "Agent402 is a tools and models layer for AI agents (Havok Holdings LLC) - the applied layer of Agentic Finance: deterministic utilities, a metered model gateway and finished reports, paid per request over x402 or MPP, or free via proof-of-work on the pure-CPU tools.",
511
511
  "Front door: call web.search or web.answer for live web search and cited answers.",
512
512
  "Also listed: web.news, browser.render, market.quote, audio.transcribe, memory.read, memory.write.",
513
513
  "Long catalog (500+ tools): call catalog.find with your task, or catalog.search then catalog.call.",
@@ -516,6 +516,7 @@ export function mcpInitializeInstructions(baseUrl) {
516
516
  `Install (hosted, zero wallet): ${install.claudeCodeHosted}`,
517
517
  `Install (npm + wallet or prepaid card credits for paid flagships): ${install.claudeCodeNpm}`,
518
518
  `Cursor mcp.json: { "mcpServers": { "agent402": { "url": "${hosted}" } } }`,
519
+ `Why pay here (usage priced under a quoted ceiling, a failed call is not charged and the receipt proves it, keyed retries never pay twice, one key for tools + models + reports, card credits with no wallet, proof at /status and /revenue): ${baseUrl}/why`,
519
520
  `Docs: ${baseUrl}/llms.txt · ${baseUrl}/api/find?q=… · status ${baseUrl}/status`,
520
521
  ].join("\n");
521
522
  }
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "agent402-mcp",
3
- "version": "0.13.0",
3
+ "version": "0.13.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",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/MikeyPetrillo/Agent402.git"
9
+ "url": "git+https://github.com/MikeyPetrillo/Agent402.git",
10
+ "directory": "mcp"
10
11
  },
11
12
  "description": "Agent402 MCP server: 500+ pay-per-call tools + skill packs for AI agents over x402 (USDC on 12 chains) or MPP on the same 402, or free via proof-of-work - the applied layer of Agentic Finance. Catalog: browser, web search + cited 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. Open source, self-hostable.",
12
13
  "type": "module",
@@ -68,18 +69,19 @@
68
69
  ],
69
70
  "license": "MIT",
70
71
  "dependencies": {
71
- "@modelcontextprotocol/sdk": "^1.12.0",
72
+ "@modelcontextprotocol/sdk": "^1.30.0",
72
73
  "@solana/kit": "^5.1.0",
73
- "@x402/core": "2.21.0",
74
- "@x402/evm": "2.21.0",
75
- "@x402/fetch": "2.21.0",
76
- "@x402/svm": "2.21.0",
74
+ "@x402/core": "2.26.0",
75
+ "@x402/evm": "2.26.0",
76
+ "@x402/fetch": "2.26.0",
77
+ "@x402/svm": "2.26.0",
77
78
  "viem": "^2.21.0"
78
79
  },
79
80
  "overrides": {
81
+ "qs": "6.16.0",
80
82
  "ws": "^8.21.0",
81
- "hono": "4.12.34",
82
- "fast-uri": "3.1.5",
83
+ "hono": "4.13.7",
84
+ "fast-uri": "3.1.7",
83
85
  "body-parser": "2.3.0",
84
86
  "@hono/node-server": "2.0.12",
85
87
  "ip-address": "10.4.0"