@visa/cli 2.0.0-rc.63 → 2.0.0-rc.65
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 +12 -6
- package/dist/cli.js +107 -103
- package/dist/mcp-server/index.js +19 -19
- package/install.sh +120 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -6,13 +6,17 @@ AI-powered payments over MCP. Exposes Visa card payment tools as MCP (Model Cont
|
|
|
6
6
|
|
|
7
7
|
| Platform | Credential Storage | Payment Auth | Install |
|
|
8
8
|
|----------|-------------------|--------------|---------|
|
|
9
|
-
| **macOS** | Keychain | Touch ID / Secure Enclave | `bash <(curl -fsSL
|
|
10
|
-
| **Windows** | ACL-restricted file | Server-verified (restricted limits) | `npm i -g @visa/cli` or `iwr -useb https://visacli.sh/install.ps1
|
|
11
|
-
| **Linux** | libsecret (GNOME Keyring / KDE Wallet) | Server-verified (restricted limits) | `bash <(curl -fsSL
|
|
9
|
+
| **macOS** | Keychain | Touch ID / Secure Enclave | `bash <(curl -fsSL https://visacli.sh/install.sh)` or `npm i -g @visa/cli` |
|
|
10
|
+
| **Windows** | ACL-restricted file | Server-verified (restricted limits) | `npm i -g @visa/cli` or `iwr -useb https://visacli.sh/install.ps1 \| iex` |
|
|
11
|
+
| **Linux** | libsecret (GNOME Keyring / KDE Wallet) | Server-verified (restricted limits) | `bash <(curl -fsSL https://visacli.sh/install.sh)` or `npm i -g @visa/cli` |
|
|
12
12
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
+
# one-liner (installs Node.js check + npm install + verification)
|
|
17
|
+
bash <(curl -fsSL https://visacli.sh/install.sh)
|
|
18
|
+
|
|
19
|
+
# or directly via npm
|
|
16
20
|
npm install -g @visa/cli
|
|
17
21
|
```
|
|
18
22
|
|
|
@@ -155,7 +159,7 @@ The create command prints the raw `vk_...` key once. Store it in your app or age
|
|
|
155
159
|
|------|-------|-------------|
|
|
156
160
|
| `generate_image` | $0.01–$0.08 | Curated image generation tiers |
|
|
157
161
|
| `generate_video` | $0.10–$0.20 | Text-to-video (Wan / MiniMax / Kling) |
|
|
158
|
-
| `generate_music` | ~$0.
|
|
162
|
+
| `generate_music` | ~$0.02 | Prompt-to-music tracks (ACE-Step) |
|
|
159
163
|
| `generate_audio` | ~$0.03–$0.04 | TTS (MetaVoice) or SFX (Stable Audio) |
|
|
160
164
|
| `generate_3d` | ~$0.08 | Text-to-3D mesh (Trellis), returns GLB URL |
|
|
161
165
|
| `upscale_image` | ~$0.03 | Image upscaling (Aura SR) |
|
|
@@ -199,13 +203,15 @@ Both limits are enforced server-side. Authentication is always required per paym
|
|
|
199
203
|
|
|
200
204
|
## Sessions
|
|
201
205
|
|
|
202
|
-
Paid tools are pay-as-you-go by default: each paid call requests payment approval
|
|
206
|
+
Paid tools are pay-as-you-go by default: each paid call opens a one-shot session, requests payment approval, runs the call, and closes that one-shot session. Receipts still include a session id in pay-as-you-go mode.
|
|
207
|
+
|
|
208
|
+
To approve a reusable capped window for the current MCP process, use `start_session`:
|
|
203
209
|
|
|
204
210
|
```bash
|
|
205
211
|
start_session capUsd=5
|
|
206
212
|
```
|
|
207
213
|
|
|
208
|
-
Paid calls then spend from that approval window until the cap is used, `close_session` is called, the
|
|
214
|
+
Paid calls then spend from that explicit approval window until the cap is used, `close_session` is called, the window expires, or the MCP process restarts. After `close_session`, paid calls return to pay-as-you-go one-shot sessions. Explicit approval windows are not reused across Claude/MCP restarts.
|
|
209
215
|
|
|
210
216
|
---
|
|
211
217
|
|