z-zero-mcp-server 1.2.3 → 1.3.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Z-Zero
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,47 +1,84 @@
1
- # OpenClaw: Z-ZERO AI Agent MCP Server
1
+ # Z-ZERO MCP — Payment Infrastructure for Agentic Commerce (USDC on Base, gasless)
2
2
 
3
- A Zero-Trust Payment Protocol built for AI Agents using the [Model Context Protocol (MCP)](https://modelcontextprotocol.io). Give your agents (Claude, Cursor, Antigravity) the ability to make real-world purchases — securely, without ever seeing a real card number.
3
+ [![MCP Badge](https://lobehub.com/badge/mcp/dempty-glitch-z-zero-mcp)](https://lobehub.com/mcp/dempty-glitch-z-zero-mcp)
4
+ [![npm](https://img.shields.io/npm/v/z-zero-mcp-server)](https://www.npmjs.com/package/z-zero-mcp-server)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
6
+
7
+ **AI Agents today can plan, reason, and code — but they are financially blind.** They cannot hold money, make payments, or prove their trustworthiness. Every purchase still requires a human to copy-paste a credit card number.
8
+
9
+ Z-ZERO fixes that. One MCP server gives your agent (Claude, Cursor, any MCP-compatible client) two payment rails — **gasless USDC on Base** for crypto-native checkouts, and **JIT single-use virtual cards** for the 99% of the web that only takes cards — while the model **never sees a real card number**.
10
+
11
+ ```bash
12
+ npx z-zero-mcp-server
13
+ ```
4
14
 
5
15
  **What makes it different:**
6
- - 🔐 **Zero-trust** — AI never sees PAN, CVV, or expiry. Card data exists only in RAM, injected via Playwright, then wiped.
7
- - 🌐 **Web3 + Fiat** — Auto-detects crypto checkout (EIP-681) and routes to on-chain USDT transfer. Falls back to JIT Visa for fiat.
8
- - 🧠 **Smart Routing** — Cloud Knowledge Base (`get_merchant_hints`) provides platform-specific checkout playbooks for Shopify, Etsy, WooCommerce, and more.
9
- - 🔄 **Self-Healing** — Failed checkouts are logged via `report_checkout_fail` for admin review, improving future success rates.
16
+ - 🔐 **Zero-trust by design** — the AI never sees PAN, CVV, or expiry. Card data exists only in RAM, injected via Playwright at the last step, then wiped.
17
+ - ⛽ **Gasless USDC on Base** — auto-detects crypto checkout (EIP-681) and settles as a gasless USDC transfer sponsored by Coinbase Paymaster. The agent holds only USDC — no ETH, no gas UX.
18
+ - 💳 **JIT single-use virtual cards** — amount-locked, 1-hour TTL, burned after a single use. Fiat fallback for the rest of the web.
19
+ - 🧠 **Smart Routing + checkout intelligence** — `get_merchant_hints` serves platform-specific checkout playbooks (Shopify, Etsy, WooCommerce…).
20
+ - 🔄 **Self-healing network** — every failed checkout is logged via `report_checkout_fail` and feeds back into the hints database. The system doesn't just retry; it evolves.
21
+
22
+ ---
23
+
24
+ ## Live on Base Mainnet
25
+
26
+ - ✅ Proof — real gasless USDC transfer on Base mainnet: [`0xdfd1f2f8…5d7a`](https://basescan.org/tx/0xdfd1f2f824e1232c3e03c52485332570ff01fbb0340c5571f699ed1218735d7a)
27
+ - Onboarding is just "deposit USDC" — no seed phrases in the agent, no native gas token, no exchange account.
10
28
 
11
29
  ---
12
30
 
13
31
  ## How It Works
14
32
 
15
- ```mermaid
16
- sequenceDiagram
17
- actor User
18
- participant AI as AI Agent
19
- participant MCP as MCP Tools
20
- participant API as Z-ZERO API
21
- participant DB as Supabase DB
22
-
23
- User->>AI: "Buy me this Shopify item"
24
- Note over AI: Scans available MCP Tools
25
- AI->>MCP: Reads description of auto_pay_checkout
26
- MCP-->>AI: "⚠️ MANDATORY: Read mcp://resources/sop first"
27
- Note over AI: Fetches SOP before proceeding
28
- AI->>MCP: Fetch resource mcp://resources/sop
29
- MCP-->>AI: Platform rules + 3-Group payment SOP
30
- Note over AI: "Shopify = physical goods. Must collect shipping first."
31
- AI->>MCP: get_merchant_hints("_platform_shopify")
32
- MCP->>API: GET /api/checkout-hints?domain=_platform_shopify&fields=merchant
33
- API->>DB: Query checkout_hints table
34
- DB-->>API: Platform hints data
35
- API-->>MCP: Returns pre_steps + notes only
36
- MCP-->>AI: "Fill shipping form first, click Next..."
37
- Note over AI: Navigates checkout, fills shipping, waits for payment page
38
- AI->>MCP: request_payment_token(amount, card_alias)
39
- MCP-->>AI: Token: temp_auth_XYZ (1hr TTL)
40
- AI->>MCP: execute_payment(token, checkout_url)
41
- Note over MCP: Playwright auto-fills card form, burns token after use
42
- MCP-->>AI: Success — payment complete
43
- AI-->>User: "Done! Your Shopify item has been ordered."
44
33
  ```
34
+ User AI Agent MCP Tools Z-ZERO API
35
+ │ │ │ │
36
+ │ "Buy me this │ │ │
37
+ │ Shopify item" │ │ │
38
+ ├─────────────────▶│ │ │
39
+ │ │ read mcp://resources/sop (MANDATORY) │
40
+ │ ├─────────────────────▶│ │
41
+ │ │◀── platform rules ───┤ │
42
+ │ │ + payment SOP │ │
43
+ │ │ │ │
44
+ │ │ get_merchant_hints("_platform_shopify") │
45
+ │ ├─────────────────────▶│ GET /checkout-hints │
46
+ │ │ ├─────────────────────▶│
47
+ │ │◀── pre_steps+notes ──┤◀──── hints data ─────┤
48
+ │ │ │ │
49
+ │ │ (fills shipping form, reaches payment page) │
50
+ │ │ │ │
51
+ │ │ request_payment_token(amount, card_alias) │
52
+ │ ├─────────────────────▶│ │
53
+ │ │◀── temp_auth token ──┤ (1-hour TTL) │
54
+ │ │ │ │
55
+ │ │ execute_payment(token, checkout_url) │
56
+ │ ├─────────────────────▶│ │
57
+ │ │ Playwright auto-fills card form, │
58
+ │ │ burns token after single use 🔥 │
59
+ │ │◀──── ✅ success ─────┤ │
60
+ │ "Done! Your item │ │ │
61
+ │ is ordered." │ │ │
62
+ │◀─────────────────┤ │ │
63
+ ```
64
+
65
+ *The AI agent never touches card data — it only handles single-use tokens. Real card details are injected by Playwright at the last step and wiped from RAM.*
66
+
67
+ > **Crypto checkout branch:** when `auto_pay_checkout` detects a crypto-native checkout (EIP-681), it skips the card flow entirely and settles as a **gasless USDC transfer on Base** — see above.
68
+
69
+ ---
70
+
71
+ ## Why Z-ZERO
72
+
73
+ Z-ZERO is not a checkout bot — it's payment infrastructure for the agentic-commerce era (agentic transactions are projected to reach **$1.5T by 2030** — Juniper Research).
74
+
75
+ **Today**, the web is built for humans: agents must fill forms and click buttons, and every purchase still needs a human's card. Z-ZERO solves that now — JIT single-use virtual cards + gasless USDC on Base, with card data isolated from the model. **Tomorrow**, agent payments become a standardized protocol — and what we build along the way is the long-term value:
76
+
77
+ - **Shared checkout intelligence** — every transaction (and every failure) makes the network smarter.
78
+ - **An open standard for agent payments** — any agent platform plugs in via MCP; any rail (cards, USDC, x402) can be added.
79
+ - **KYA — Know Your Agent** — verifiable agent reputation. The question isn't "can this agent pay?" but "should you trust it to?"
80
+
81
+ 📖 Full vision & architecture: [The Z-Zero Whitebook](https://www.clawcard.store/whitebook)
45
82
 
46
83
  ---
47
84
 
@@ -56,7 +93,7 @@ Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_
56
93
  ```json
57
94
  {
58
95
  "mcpServers": {
59
- "openclaw": {
96
+ "z-zero": {
60
97
  "command": "npx",
61
98
  "args": ["-y", "z-zero-mcp-server@latest"],
62
99
  "env": {
@@ -86,7 +123,7 @@ Get your Passport Key at: **[clawcard.store/dashboard/agents](https://www.clawca
86
123
  |------|-------------|
87
124
  | `list_cards` | List all virtual card aliases and balances |
88
125
  | `check_balance` | Check spendable USD balance for a card alias |
89
- | `get_deposit_addresses` | Get crypto deposit addresses (EVM + Tron) to top up balance |
126
+ | `get_deposit_addresses` | Get your Base deposit address to top up with USDC (stablecoin on Base) |
90
127
  | `set_api_key` | Activate a new Passport Key instantly, no restart needed |
91
128
  | `show_api_key_status` | Check if a Passport Key is currently loaded (prefix only) |
92
129
 
@@ -94,7 +131,7 @@ Get your Passport Key at: **[clawcard.store/dashboard/agents](https://www.clawca
94
131
 
95
132
  | Tool | Description |
96
133
  |------|-------------|
97
- | `request_payment_token` | Issue a JIT single-use Visa token for a specific amount (1hr TTL) |
134
+ | `request_payment_token` | Issue a JIT single-use virtual-card token for a specific amount (1hr TTL) |
98
135
  | `execute_payment` | Auto-fill checkout form using a payment token via Playwright |
99
136
  | `cancel_payment_token` | Cancel an unused token and refund to wallet |
100
137
  | `request_human_approval` | Pause and request human confirmation before proceeding |
@@ -158,4 +195,4 @@ Cancel an unused token (refunds balance).
158
195
 
159
196
  ---
160
197
 
161
- *Security: OpenClaw never stores your Passport Key. It is passed via environment variables and card data exists only in volatile RAM during execution.*
198
+ *Security: Z-Zero never stores your Passport Key. It is passed via environment variables and card data exists only in volatile RAM during execution.*