@visa/cli 1.1.2 → 1.2.0-rc.1

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
@@ -1,6 +1,14 @@
1
1
  # @visa/cli
2
2
 
3
- AI-powered payments over MCP. Exposes Visa card payment tools as MCP (Model Context Protocol) tools so your AI assistant can pay for image generation, video, music, onchain data queries, and more — charged to a Visa card with Touch ID confirmation at the point of invocation.
3
+ AI-powered payments over MCP. Exposes Visa card payment tools as MCP (Model Context Protocol) tools so your AI assistant can pay for image generation, video, music, onchain data queries, and more — charged to a Visa card with authentication confirmation at the point of invocation.
4
+
5
+ ### Platform support
6
+
7
+ | Platform | Credential Storage | Payment Auth | Install |
8
+ |----------|-------------------|--------------|---------|
9
+ | **macOS** | Keychain | Touch ID / Secure Enclave | `bash <(curl -fsSL ...)` or `npm i -g @visa/cli` |
10
+ | **Windows** | ACL-restricted file | Server-verified (restricted limits) | `npm i -g @visa/cli` or PowerShell installer |
11
+ | **Linux** | libsecret (GNOME Keyring / KDE Wallet) | Server-verified (restricted limits) | `bash <(curl -fsSL ...)` or `npm i -g @visa/cli` |
4
12
 
5
13
  ## Install
6
14
 
@@ -58,13 +66,13 @@ Cards are tokenized via VGS — your raw card number never touches Visa servers.
58
66
  visa-cli add-card
59
67
  ```
60
68
 
61
- Multiple cards can be enrolled. The first becomes the default; you can switch defaults with `set_default_card` from within your assistant. To remove a card: `remove_card` (requires Touch ID).
69
+ Multiple cards can be enrolled. The first becomes the default; you can switch defaults with `set_default_card` from within your assistant. To remove a card: `remove_card` (requires authentication).
62
70
 
63
71
  ---
64
72
 
65
- ## Payments & Touch ID
73
+ ## Payments & Authentication
66
74
 
67
- Every paid tool call requires Touch ID (or device password on macOS). Your assistant will show you the amount and merchant before prompting. If you cancel Touch ID, the payment is aborted — nothing is charged.
75
+ Every paid tool call requires authentication. On macOS, this is Touch ID (or device password); on Windows and Linux, payments are server-verified with restricted spending limits. Your assistant will show you the amount and merchant before prompting. If you cancel, the payment is aborted — nothing is charged.
68
76
 
69
77
  You can set hard limits via the `update_spending_controls` tool, or check your current limits any time:
70
78
 
@@ -83,10 +91,10 @@ visa-cli status
83
91
  | `login` | GitHub OAuth login — opens browser |
84
92
  | `add_card` | Enroll a card via VGS tokenization |
85
93
  | `get_cards` | List enrolled cards (masked) |
86
- | `remove_card` | Remove an enrolled card (Touch ID required) |
87
- | `set_default_card` | Change the default card (Touch ID required) |
94
+ | `remove_card` | Remove an enrolled card (authentication required) |
95
+ | `set_default_card` | Change the default card (authentication required) |
88
96
  | `get_status` | Auth, card, spend limits, and budget summary |
89
- | `update_spending_controls` | Set daily and per-transaction limits (Touch ID required) |
97
+ | `update_spending_controls` | Set daily and per-transaction limits (authentication required) |
90
98
  | `transaction_history` | Recent transactions with amounts and media URLs |
91
99
  | `feedback` | Submit feedback on a tool result |
92
100
  | `reset` | Clear auth state and credentials |
@@ -119,7 +127,7 @@ visa-cli status
119
127
  | Tool | Description |
120
128
  |------|-------------|
121
129
  | `pay` | Generic HTTP 402 payment endpoint |
122
- | `batch` | Execute multiple paid tools in one Touch ID approval |
130
+ | `batch` | Execute multiple paid tools in one authentication approval |
123
131
  | `discover_tools` | Search the dynamic tool catalog |
124
132
  | `execute_tool` | Run a tool from the dynamic catalog by ID |
125
133
 
@@ -142,7 +150,7 @@ Daily limit — hard cap on total spend per day
142
150
  Max per-transaction — hard cap per single tool call
143
151
  ```
144
152
 
145
- Both limits are enforced server-side. Touch ID is always required per payment regardless of limits — this cannot be disabled.
153
+ Both limits are enforced server-side. Authentication is always required per payment regardless of limits — this cannot be disabled. On macOS this means Touch ID; on other platforms, server-side verification with restricted spending limits applies.
146
154
 
147
155
  ---
148
156
 
@@ -158,8 +166,8 @@ Both limits are enforced server-side. Touch ID is always required per payment re
158
166
 
159
167
  ## Troubleshooting
160
168
 
161
- **Touch ID prompt doesn't appear**
162
- Make sure `visa-cli mcp` is running as a foreground process that has access to the macOS security framework. Running inside some sandboxed environments may prevent Touch ID.
169
+ **Touch ID prompt doesn't appear (macOS)**
170
+ Make sure `visa-cli mcp` is running as a foreground process that has access to the macOS security framework. Running inside some sandboxed environments may prevent Touch ID. On Windows and Linux, biometric prompts are not used — payments are server-verified.
163
171
 
164
172
  **"Not logged in" after `visa-cli login`**
165
173
  Restart the MCP server after logging in — your MCP client needs to reconnect to pick up the new session.