agent402-mcp 0.12.10 → 0.12.12

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 (AIFI)](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), or **with compute (proof-of-work)** when no wallet is configured. (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.) 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 + 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), or **with compute (proof-of-work)** when no wallet is configured. (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.) 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. Payment handled invisibly underneath the MCP calls. No signup, no API key.
6
6
 
package/index.js CHANGED
@@ -617,7 +617,7 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
617
617
  npm: "npx -y agent402-mcp",
618
618
  maintainer: "Havok Holdings LLC",
619
619
  },
620
- positioning: `Deterministic tools layer beside LLM gateways: flagship search/answer first, 500+ long-tail tools via catalog.find / catalog.search / catalog.call. Agent402 is the applied layer of Agentic Finance (AIFI): agents that pay and get paid per request over x402 or MPP (Machine Payments Protocol), both on the same 402 - ${BASE}/agentic-finance, ${BASE}/glossary.`,
620
+ positioning: `Deterministic tools layer beside LLM gateways: flagship search/answer first, 500+ long-tail tools via catalog.find / catalog.search / catalog.call. Agent402 is the applied layer of Agentic Finance: agents that pay and get paid per request over x402 or MPP (Machine Payments Protocol), both on the same 402 - ${BASE}/agentic-finance, ${BASE}/glossary.`,
621
621
  ecosystem: "Call sellers.list to see which x402 sellers (any wallet, not just this host) are settling the most USDC (primarily on Base) in the last 24h, or sellers.list with wire=mpp for MPP sellers ranked by on-chain USDC.e transfers on Tempo - discovers the live economy beyond this catalog.",
622
622
  });
623
623
  }
@@ -626,7 +626,7 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
626
626
  service: BASE,
627
627
  connector: "stdio npm package (agent402-mcp)",
628
628
  maintainer: "Havok Holdings LLC",
629
- positioning: `Agent402 is the applied layer of Agentic Finance (AIFI): software agents that pay and get paid on their own, per request, over x402 or MPP (Machine Payments Protocol) - both answered on the same 402. ${BASE}/agentic-finance, ${BASE}/glossary.`,
629
+ positioning: `Agent402 is the applied layer of Agentic Finance: software agents that pay and get paid on their own, per request, over x402 or MPP (Machine Payments Protocol) - both answered on the same 402. ${BASE}/agentic-finance, ${BASE}/glossary.`,
630
630
  startHere: {
631
631
  firstJob: "Search the web and answer questions. Call web.search or web.answer directly, or catalog.find with your task.",
632
632
  mode: HAS_WALLET ? "usdc" : "proof-of-work",
@@ -671,6 +671,10 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
671
671
  payersWindow: r.payers,
672
672
  volumeUsdc7d: Math.round((r.d7?.volumeUsdc || 0) * 10000) / 10000,
673
673
  routable: !!r.routable,
674
+ // Seller names/homepages are self-reported third-party content (same
675
+ // F09 rule as the hosted connector): never let a downstream agent read
676
+ // seller copy as an instruction.
677
+ ...(r.self ? {} : { untrustedContent: true }),
674
678
  }));
675
679
  return mcpJsonResult({
676
680
  wire: "mpp",
@@ -680,6 +684,7 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
680
684
  sort, include,
681
685
  totalSellers: Array.isArray(lb.rows) ? lb.rows.length : 0,
682
686
  results: rows,
687
+ ...(rows.some((r) => r.untrustedContent) ? { containsUntrustedContent: true } : {}),
683
688
  ...(lb.stale ? { note: "Leaderboard is stale or still warming - retry in a few minutes." } : {}),
684
689
  source: `${BASE}/api/mpp-leaderboard`,
685
690
  });
@@ -703,6 +708,9 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
703
708
  // Trim to the same compact row shape the hosted MCP connector returns —
704
709
  // cross-surface agents see one mental model. Full row (origins,
705
710
  // endpoints, scan metadata) stays accessible at /api/leaderboard.
711
+ // Same untrusted-content marking as the hosted connector: a seller's
712
+ // name/homepage is self-reported external content. `snap.self` (or a
713
+ // row flagged self) is this host's own wallet when the API says so.
706
714
  const rows = (snap.leaderboard || []).map((r) => ({
707
715
  rank: r.rank,
708
716
  name: r.name,
@@ -712,8 +720,10 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
712
720
  callsSettled: r.callsSettled || 0,
713
721
  totalUsd: Math.round((r.totalUsd || 0) * 10000) / 10000,
714
722
  uniqueBuyers: r.uniqueBuyers || 0,
723
+ ...(r.self ? {} : { untrustedContent: true }),
715
724
  }));
716
725
  return mcpJsonResult({
726
+ ...(rows.some((r) => r.untrustedContent) ? { containsUntrustedContent: true } : {}),
717
727
  window: snap.windowLabel || snap.windowServed || "24h",
718
728
  asOf: snap.asOf,
719
729
  sort: snap.sortServed || sort,
package/output-schemas.js CHANGED
@@ -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
- "Agentic Finance (AIFI) applied layer - 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. Maintained by Havok Holdings LLC.";
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.";
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 (AIFI): agents that pay and get paid per request over x402 or MPP, or free via proof-of-work.",
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.",
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.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent402-mcp",
3
- "version": "0.12.10",
3
+ "version": "0.12.12",
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": "Agentic Finance (AIFI) MCP server for Agent402.Tools: 500+ pay-per-call tools + 100+ skill packs for AI agents, paid per call over x402 (USDC on 12 chains) or free via proof-of-work; the hosted API also answers MPP (Machine Payments Protocol) on the same 402. 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 (security-audit, trend-analysis, structured-scrape, decode-blob, forecasting-bake-off packs). Open source, self-hostable.",
11
+ "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
12
  "type": "module",
13
13
  "bin": {
14
14
  "agent402-mcp": "index.js"