agent402-mcp 0.12.1 → 0.12.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.
Files changed (2) hide show
  1. package/index.js +5 -1
  2. package/package.json +6 -2
package/index.js CHANGED
@@ -21,6 +21,7 @@
21
21
  // AGENT402_NETWORKS restrict + order the chains to pay on (e.g. "robinhood" for USDG on
22
22
  // Robinhood Chain, "base,solana", or a raw CAIP-2 like eip155:4663) — optional
23
23
  import { createHash } from "node:crypto";
24
+ import { readFileSync } from "node:fs";
24
25
  import { parseNetworkPrefs, withNetworkPreference } from "./networks.js";
25
26
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
26
27
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
@@ -38,7 +39,10 @@ const AGENT_KEY = process.env.AGENT_KEY || "";
38
39
  // settle on whichever chain the seller offers (EVM accepts are tried first).
39
40
  const SOLANA_AGENT_KEY = process.env.SOLANA_AGENT_KEY || "";
40
41
  const HAS_WALLET = Boolean(AGENT_KEY || SOLANA_AGENT_KEY);
41
- const VERSION = "0.11.5";
42
+ // Version comes from package.json — the serverInfo self-report drifted from
43
+ // the published version once (0.11.5 vs 0.12.1) because this was a hardcoded
44
+ // string bumped by hand. Reading the manifest makes drift impossible.
45
+ const VERSION = JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8")).version;
42
46
 
43
47
  // Spend controls — enforced BEFORE a payment is ever signed, so a confused or
44
48
  // runaway model cannot drain the wallet. Unset = unlimited (back-compat).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent402-mcp",
3
- "version": "0.12.1",
3
+ "version": "0.12.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",
@@ -66,6 +66,10 @@
66
66
  "viem": "^2.21.0"
67
67
  },
68
68
  "overrides": {
69
- "ws": "^8.21.0"
69
+ "ws": "^8.21.0",
70
+ "hono": "4.12.32",
71
+ "fast-uri": "3.1.4",
72
+ "body-parser": "2.3.0",
73
+ "@hono/node-server": "2.0.12"
70
74
  }
71
75
  }