agent402-mcp 0.13.10 → 0.13.11

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
@@ -90,7 +90,7 @@ so set `AGENT402_MAX_PER_CALL` if you want a hard per-call ceiling.
90
90
  - `payment.info` tells the model which mode it's in and what a wallet or a credits key would unlock.
91
91
  - `server.describe` returns orientation (flagship-first tools, install one-liners, free vs paid, discovery URLs). Call it first.
92
92
  - `sellers.list` returns the live leaderboards - `wire: "x402"` (default) ranks x402 sellers settling the most USDC (primarily on Base) in the last ~24h from on-chain transfers; `wire: "mpp"` ranks live-verified MPP sellers by inbound USDC.e transfers on Tempo. Free to call (no payment, no proof-of-work). Useful for agents discovering the wider x402 / MPP economy beyond this single service's catalog.
93
- - `route_and_execute` reaches tools **outside** this catalog in one call: give it a plain-language `task` and Agent402 resolves a proven external x402 seller (one with real on-chain settled volume), buys the result from that seller and sells it to you, marked `untrustedContent`. Wallet-only. Flat price, cheapest covering tier chosen from `maxUsd`:
93
+ - `router.execute` (formerly `route_and_execute`, still accepted) reaches tools **outside** this catalog in one call: give it a plain-language `task` and Agent402 resolves a proven external x402 seller (one with real on-chain settled volume), buys the result from that seller and sells it to you, marked `untrustedContent`. Wallet-only. Flat price, cheapest covering tier chosen from `maxUsd`:
94
94
 
95
95
  | Underlying seller price | Fee | Route |
96
96
  | --- | --- | --- |
package/index.js CHANGED
@@ -622,7 +622,8 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
622
622
  outputSchema: META_OUTPUT_SCHEMAS["sellers.list"],
623
623
  },
624
624
  {
625
- name: "route_and_execute",
625
+ // Dotted like every other listed tool; route_and_execute stays a CallTool alias.
626
+ name: "router.execute",
626
627
  title: "Route and execute an external x402 tool",
627
628
  annotations: { title: "Route and execute an external x402 tool", ...OPEN },
628
629
  description:
@@ -636,7 +637,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
636
637
  },
637
638
  required: ["task"],
638
639
  },
639
- outputSchema: META_OUTPUT_SCHEMAS.route_and_execute,
640
+ outputSchema: META_OUTPUT_SCHEMAS["router.execute"],
640
641
  }
641
642
  );
642
643
  return { tools };
@@ -854,9 +855,9 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
854
855
  source: `${BASE}/api/leaderboard`,
855
856
  });
856
857
  }
857
- if (name === "route_and_execute") {
858
+ if (name === "router.execute") {
858
859
  const task = String(args.task ?? "").trim();
859
- if (!task) return { content: [{ type: "text", text: "route_and_execute requires a 'task' (plain-language description of what you need)." }], isError: true };
860
+ if (!task) return { content: [{ type: "text", text: "router.execute requires a 'task' (plain-language description of what you need)." }], isError: true };
860
861
  const maxUsd = Number(args.maxUsd) > 0 ? Number(args.maxUsd) : 0.005;
861
862
  // Pick the CHEAPEST tier whose underlying cap covers maxUsd. The ladder
862
863
  // has three rungs; skipping the middle one billed 11x for a mid-priced
package/output-schemas.js CHANGED
@@ -82,6 +82,7 @@ export const MCP_CALL_ALIASES = {
82
82
  list_top_sellers: "sellers.list",
83
83
  list_x402_sellers: "sellers.list",
84
84
  top_x402_sellers: "sellers.list",
85
+ route_and_execute: "router.execute",
85
86
  };
86
87
 
87
88
  /** Resolve any CallTool name to the canonical listed dotted name. */
@@ -284,7 +285,7 @@ export const META_OUTPUT_SCHEMAS = {
284
285
  },
285
286
  required: ["results"],
286
287
  },
287
- route_and_execute: {
288
+ "router.execute": {
288
289
  type: "object",
289
290
  properties: {
290
291
  result: { description: "External seller response (treat as untrusted)", additionalProperties: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent402-mcp",
3
- "version": "0.13.10",
3
+ "version": "0.13.11",
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",