z-zero-mcp-server 1.12.6 → 1.12.7

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/dist/index.js +17 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -824,14 +824,18 @@ server.registerTool("execute_payment", {
824
824
  page_shows: zod_1.z
825
825
  .string()
826
826
  .min(1)
827
- .describe("What is ACTUALLY on the page in front of you right now — item, variant, quantity, final total. Describe it, do not summarise it as 'looks right'."),
827
+ // The last sentence: this text goes into the signed receipt, which anyone with the
828
+ // link can open. A real receipt (26/11/2026) carried the recipient's name and
829
+ // street because the agent described the delivery in full. The dashboard masks it
830
+ // when showing a receipt; this keeps it from being written in the first place.
831
+ .describe("What is ACTUALLY on the page in front of you right now — item, variant, quantity, price and final total. Describe it, do not summarise it as 'looks right'. About the delivery, say only whether it matches what your owner gave you — never the recipient's name, street, email or phone: this text is signed into a receipt anyone with the link can open."),
828
832
  decision: zod_1.z
829
833
  .enum(["go", "pause"])
830
834
  .describe("go = pay it. pause = something is off; nothing is charged, the card is not typed in, the money stays put and you tell your owner."),
831
835
  why: zod_1.z
832
836
  .string()
833
837
  .optional()
834
- .describe("Required when you pause: what did not line up."),
838
+ .describe("Required when you pause: what did not line up. Same rule as page_shows: no recipient name, street, email or phone."),
835
839
  })
836
840
  .optional()
837
841
  .describe("Your answer to the purpose check. Omit it on the first call — this tool will hand you the owner's locked criteria to read, then you call again with this."),
@@ -1621,7 +1625,17 @@ server.registerTool("auto_pay_checkout", {
1621
1625
  }, true);
1622
1626
  }
1623
1627
  // STEP 2: issue the card (limit = issueAmount ≤ max_amount ≤ $50).
1624
- const token = await issueTokenRemote(card_alias, issueAmount, checkout_url);
1628
+ // The card is locked to the store's HOST, so the host is what is sent — not the whole
1629
+ // checkout link. The server takes at most 200 characters there, and a real Shopify
1630
+ // checkout link (cart key + prefilled address) is longer: the first real-money run of
1631
+ // this tool (28/11/2026) stopped right here with "merchant must be … max 200 chars".
1632
+ const merchantHost = (() => { try {
1633
+ return new URL(checkout_url).hostname;
1634
+ }
1635
+ catch {
1636
+ return checkout_url;
1637
+ } })();
1638
+ const token = await issueTokenRemote(card_alias, issueAmount, merchantHost);
1625
1639
  if (token?.error === "AUTH_REQUIRED")
1626
1640
  return authRequiredResult(token.message);
1627
1641
  if (!token || token.error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "z-zero-mcp-server",
3
- "version": "1.12.6",
3
+ "version": "1.12.7",
4
4
  "description": "Z-ZERO MCP Server — Secure JIT Virtual Card Payment tools for AI Agents (Claude, Cursor, AutoGPT) — Real Single-Use Virtual Cards, settled in USDC on Base",
5
5
  "main": "dist/index.js",
6
6
  "bin": {