gatepay-local-mcp 1.0.2 → 1.0.3

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
@@ -14,11 +14,11 @@
14
14
 
15
15
  The server currently registers these signing modes:
16
16
 
17
- | `sign_mode` | Status | Description |
18
- | ------------------- | ----------------------------------- | ------------------------------------------------------------------------ |
19
- | `local_private_key` | Ready when `EVM_PRIVATE_KEY` is set | Signs locally with your EVM private key |
20
- | `quick_wallet` | Ready after login | Uses the remote MCP wallet and can trigger device-flow login when needed |
21
- | `plugin_wallet` | Placeholder | Reserved for future extension, not implemented yet |
17
+ | `sign_mode` | Status | Description |
18
+ | ------------------- | ------------------------------------------------ | ------------------------------------------------------------------------ |
19
+ | `local_private_key` | Ready when `EVM_PRIVATE_KEY` is set | Signs locally with your EVM private key |
20
+ | `quick_wallet` | Ready after login | Uses the remote MCP wallet and can trigger device-flow login when needed |
21
+ | `plugin_wallet` | Ready when `PLUGIN_WALLET_TOKEN` is set | Signs via browser extension wallet (e.g., Gate Wallet) |
22
22
 
23
23
  If `sign_mode` is omitted, the server auto-selects the highest-priority ready mode.
24
24
 
@@ -46,7 +46,24 @@ Put this into your MCP config such as `~/.cursor/mcp.json`, then restart the cli
46
46
 
47
47
  ### Cursor / Claude Desktop with quick wallet
48
48
 
49
- If you prefer remote wallet signing, you can omit `EVM_PRIVATE_KEY` and let the tool use `quick_wallet`:
49
+ If you prefer remote wallet signing, you can omit `EVM_PRIVATE_KEY` and let the tool use `quick_wallet`. Note that you need to obtain API credentials from the wallet service provider.
50
+
51
+ ```json
52
+ {
53
+ "mcpServers": {
54
+ "gatepay-mcp": {
55
+ "command": "npx",
56
+ "args": ["-y", "gatepay-local-mcp"]
57
+ }
58
+ }
59
+ }
60
+ ```
61
+
62
+ When `quick_wallet` has no saved token, the server can start a device-flow login and persist the token at `~/.gate-pay/auth.json`.
63
+
64
+ ### Cursor / Claude Desktop with plugin wallet
65
+
66
+ If you want to use a browser extension wallet (like Gate Wallet) for signing, configure the plugin wallet mode:
50
67
 
51
68
  ```json
52
69
  {
@@ -55,15 +72,19 @@ If you prefer remote wallet signing, you can omit `EVM_PRIVATE_KEY` and let the
55
72
  "command": "npx",
56
73
  "args": ["-y", "gatepay-local-mcp"],
57
74
  "env": {
58
- "MCP_WALLET_API_KEY": "your-api-key",
59
- "MCP_WALLET_URL": "https://api.gatemcp.ai/mcp/dex"
75
+ "PLUGIN_WALLET_SERVER_URL": "https://your-plugin-wallet-server.com",
76
+ "PLUGIN_WALLET_TOKEN": "your-token-from-browser-wallet"
60
77
  }
61
78
  }
62
79
  }
63
80
  }
64
81
  ```
65
82
 
66
- When `quick_wallet` has no saved token, the server can start a device-flow login and persist the token at `~/.gate-pay/auth.json`.
83
+ Before using plugin wallet mode:
84
+ 1. Install a compatible browser extension wallet (e.g., [Gate Wallet](https://www.gate.io/web3))
85
+ 2. Open the wallet extension in your browser and obtain the connection token
86
+ 3. Configure `PLUGIN_WALLET_SERVER_URL` and `PLUGIN_WALLET_TOKEN` in your MCP config
87
+ 4. The wallet extension must be active in your browser when making x402 requests
67
88
 
68
89
  ## Environment Variables
69
90
 
@@ -71,11 +92,11 @@ The server loads `.env` from the repository or package root at startup.
71
92
 
72
93
  ### Runtime variables
73
94
 
74
- | Variable | Required | Default | Description |
75
- | -------------------- | -------- | -------------------------------- | --------------------------------------------------------------------------- |
76
- | `EVM_PRIVATE_KEY` | No | — | Local EVM private key used by `local_private_key`; hex with or without `0x` |
77
- | `MCP_WALLET_API_KEY` | No | — | API key used when connecting to the remote MCP wallet |
78
- | `MCP_WALLET_URL` | No | `https://api.gatemcp.ai/mcp/dex` | Remote MCP wallet server URL used by `quick_wallet` |
95
+ | Variable | Required | Default | Description |
96
+ | --------------------------- | -------- | ------- | --------------------------------------------------------------------------- |
97
+ | `EVM_PRIVATE_KEY` | No | — | Local EVM private key used by `local_private_key`; hex with or without `0x` |
98
+ | `PLUGIN_WALLET_SERVER_URL` | No | — | Base URL for the plugin wallet MCP server (required for `plugin_wallet`) |
99
+ | `PLUGIN_WALLET_TOKEN` | No | | Authentication token for plugin wallet (required for `plugin_wallet`) |
79
100
 
80
101
  ### Test and script variables
81
102
 
@@ -161,11 +182,11 @@ npm run test:mcp-tool
161
182
 
162
183
  ### Integration test notes
163
184
 
164
- `npm run test:mcp-tool` starts `dist/src/index.js` and calls `x402_request` against the configured remote wallet flow. In practice you usually want:
185
+ `npm run test:mcp-tool` starts `dist/src/index.js` and calls `x402_request` against the configured remote wallet flow. The test requires proper wallet credentials to be configured.
165
186
 
166
187
  ```bash
167
188
  npm run build
168
- MCP_WALLET_API_KEY=your-key npm run test:mcp-tool
189
+ npm run test:mcp-tool
169
190
  ```
170
191
 
171
192
  If you already logged in before, the saved token in `~/.gate-pay/auth.json` will be reused. Otherwise the quick wallet flow may require interactive device login. You can increase the timeout with `GATEPAY_MCP_TEST_TIMEOUT_MS`.