@visa/cli 3.3.0-rc.4 → 3.3.1-rc.0

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
@@ -18,20 +18,35 @@ curl -fsSL https://app.visacli.sh/cli | bash
18
18
 
19
19
  ## MCP setup
20
20
 
21
- Add to your MCP client config:
21
+ The fastest path is to let the CLI write the client config for you:
22
+
23
+ ```bash
24
+ visa-cli install claude # or: claude-desktop, codex, cursor, windsurf, cline, roo-code, copilot, zed
25
+ visa-cli install --list # see all supported client ids
26
+ ```
27
+
28
+ To configure manually, point the client at the bundled MCP server entrypoint (replace `<npm root -g>` with the output of `npm root -g`):
22
29
 
23
30
  ```json
24
31
  {
25
32
  "mcpServers": {
26
- "visa": {
27
- "command": "visa-cli",
28
- "args": ["mcp"]
33
+ "visa-cli": {
34
+ "command": "node",
35
+ "args": ["<npm root -g>/@visa/cli/dist/mcp-server/index.js"]
29
36
  }
30
37
  }
31
38
  }
32
39
  ```
33
40
 
34
- Once connected, your assistant will have access to all payment tools. The first time you use a paid tool, you'll be prompted to log in and enroll a card — you'll get $1 in free credits to start.
41
+ For Codex, use TOML:
42
+
43
+ ```toml
44
+ [mcp_servers.visa-cli]
45
+ command = "node"
46
+ args = ["<npm root -g>/@visa/cli/dist/mcp-server/index.js"]
47
+ ```
48
+
49
+ There is no top-level CLI subcommand named `mcp` — the MCP server is the bundled `dist/mcp-server/index.js` entrypoint, which `visa-cli install <client>` registers for you. Once connected, your assistant will have access to all payment tools. The first time you use a paid tool, you'll be prompted to log in and enroll a card — you'll get $1 in free credits to start.
35
50
 
36
51
  ## Enable the spend HUD (recommended)
37
52