z-zero-mcp-server 1.3.3 → 1.3.5

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 +38 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -971,6 +971,44 @@ TECHNICAL reason (field not found, bot-blocked, timeout, unknown form):
971
971
  };
972
972
  });
973
973
  // ============================================================
974
+ // PROMPTS: ready-made entry points users can invoke from their MCP client
975
+ // ============================================================
976
+ server.prompt("safe_checkout", "Guided zero-trust checkout: follows the Z-ZERO SOP, surfaces the final total and asks for human approval before any money moves.", {
977
+ checkout_url: zod_1.z.string().describe("URL of the product or checkout page to buy from"),
978
+ budget_usd: zod_1.z.string().optional().describe("Optional spending cap in USD, e.g. '25'"),
979
+ }, ({ checkout_url, budget_usd }) => ({
980
+ messages: [
981
+ {
982
+ role: "user",
983
+ content: {
984
+ type: "text",
985
+ text: [
986
+ `Buy this item for me: ${checkout_url}`,
987
+ budget_usd ? `My budget cap is $${budget_usd} — abort if the final total exceeds it.` : "",
988
+ "",
989
+ "Follow the Z-ZERO SOP strictly:",
990
+ "1. Read mcp://resources/sop before anything else.",
991
+ "2. Call get_merchant_hints for this platform and follow its pre_steps.",
992
+ "3. Proceed through shipping until the FINAL total (including shipping) is visible.",
993
+ "4. Call request_human_approval with the final total and wait for my confirmation BEFORE paying.",
994
+ "5. Only then complete the payment, and report the result status honestly.",
995
+ ].filter(Boolean).join("\n"),
996
+ },
997
+ },
998
+ ],
999
+ }));
1000
+ server.prompt("wallet_status", "Summarize the Z-ZERO wallet: card aliases, spendable balances, and the Base USDC deposit address for top-ups.", {}, () => ({
1001
+ messages: [
1002
+ {
1003
+ role: "user",
1004
+ content: {
1005
+ type: "text",
1006
+ text: "Give me a status report of my Z-ZERO wallet: call list_cards, then check_balance for each alias, then get_deposit_addresses. Summarize how much I can spend and where to send USDC (on Base) to top up. Do not trigger any payment.",
1007
+ },
1008
+ },
1009
+ ],
1010
+ }));
1011
+ // ============================================================
974
1012
  // START SERVER
975
1013
  // ============================================================
976
1014
  async function main() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "z-zero-mcp-server",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
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": {
@@ -49,5 +49,5 @@
49
49
  "tsx": "^4.19.4",
50
50
  "typescript": "^5.8.3"
51
51
  },
52
- "mcpName": "io.github.dempty-glitch/z-zero-mcp"
52
+ "mcpName": "io.github.Dempty-glitch/z-zero-mcp"
53
53
  }