@mysten-incubation/suipay-mcp 0.3.0-dev.34 → 0.3.0-dev.36
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 +18 -11
- package/dist/bin/suipay.js +2 -2
- package/dist/{chunk-TCPF3ONF.js → chunk-CEZ3NFAR.js} +1 -1
- package/dist/{chunk-5S4MJN2A.js → chunk-FUMH3XYC.js} +430 -79
- package/dist/{http-DRQ838c6.d.ts → http-BwtYzkbN.d.ts} +85 -13
- package/dist/http.d.ts +1 -1
- package/dist/http.js +7 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ buyer-funded spend account. The buyer owns the account. The agent holds the
|
|
|
5
5
|
delegate key and can spend only under the on-chain grant (recipient bind,
|
|
6
6
|
per-payment cap, budget).
|
|
7
7
|
|
|
8
|
-
Pin `@mysten-incubation/suipay-mcp@0.3.0-dev.
|
|
8
|
+
Pin `@mysten-incubation/suipay-mcp@0.3.0-dev.36` in MCP config for the `latest` dist-tag.
|
|
9
9
|
`npx -y @mysten-incubation/suipay-mcp@dev` tracks the `dev` prerelease line.
|
|
10
10
|
`1.0.1` remains on the registry as a historical release; do not install it
|
|
11
11
|
for new agents.
|
|
@@ -13,11 +13,11 @@ for new agents.
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
claude mcp add --scope user suipay -- npx -y @mysten-incubation/suipay-mcp@0.3.0-dev.
|
|
16
|
+
claude mcp add --scope user suipay -- npx -y @mysten-incubation/suipay-mcp@0.3.0-dev.36
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
`@dev` installs the
|
|
20
|
-
checkout
|
|
19
|
+
`@dev` installs the staging gateway/console defaults. A workspace
|
|
20
|
+
checkout uses the local gateway at `http://127.0.0.1:4340`. `SUIPAY_GATEWAY_URL` and
|
|
21
21
|
`SUIPAY_CONSOLE_URL` always override.
|
|
22
22
|
|
|
23
23
|
No wallet secret belongs in this command or MCP config. There is no
|
|
@@ -34,7 +34,7 @@ First connection is a spend-account grant plus an agent-held delegate key.
|
|
|
34
34
|
2. Persist that delegate key locally at `~/.suipay/credentials.json`
|
|
35
35
|
(mode `0600`). The process that holds this key is the only process
|
|
36
36
|
that can settle.
|
|
37
|
-
3. Point MCP at a gateway. Default is
|
|
37
|
+
3. Point MCP at a gateway. Default is GKE **staging**. Start the binary with `--local`
|
|
38
38
|
for the laptop stack. Env/CLI fill the process default until a
|
|
39
39
|
credential is bound; after login, stored `gatewayUrl` wins. Use a separate
|
|
40
40
|
`SUIPAY_MCP_PROFILE` for another gateway; a tool argument cannot rebind a key.
|
|
@@ -152,19 +152,22 @@ tool error with a `request.*` code and `nextAction: "fix_request"`.
|
|
|
152
152
|
|
|
153
153
|
## Targets
|
|
154
154
|
|
|
155
|
-
Default is
|
|
155
|
+
Default is GKE **staging**. Start with `--local` for the laptop stack.
|
|
156
156
|
|
|
157
157
|
| Target | Console | Gateway | How |
|
|
158
158
|
| --- | --- | --- | --- |
|
|
159
|
-
| `dev` (default) | `https://suipay-
|
|
159
|
+
| `dev` (default) | `https://suipay-staging.mystenlabs.com` | `https://suipay-gateway-staging.mystenlabs.com` | no flag, or `--dev` |
|
|
160
160
|
| `local` | `http://localhost:3000` | `http://127.0.0.1:4340` | `--local` / `-local` |
|
|
161
161
|
|
|
162
|
+
Use `http://127.0.0.1:4340` for local paid resource URLs. Signed requests bind
|
|
163
|
+
the gateway origin, including the host spelling.
|
|
164
|
+
|
|
162
165
|
```bash
|
|
163
|
-
#
|
|
164
|
-
npx @mysten-incubation/suipay-mcp@0.3.0-dev.
|
|
166
|
+
# Staging (default)
|
|
167
|
+
npx @mysten-incubation/suipay-mcp@0.3.0-dev.36
|
|
165
168
|
|
|
166
169
|
# Laptop stack
|
|
167
|
-
npx @mysten-incubation/suipay-mcp@0.3.0-dev.
|
|
170
|
+
npx @mysten-incubation/suipay-mcp@0.3.0-dev.36 --local
|
|
168
171
|
```
|
|
169
172
|
|
|
170
173
|
`SUIPAY_MCP_TARGET=local|dev` selects the same preset. Explicit
|
|
@@ -176,6 +179,10 @@ gateway that differs from the stored binding, with or without `target`.
|
|
|
176
179
|
A `suipay_login({ target })` argument must also match the process gateway.
|
|
177
180
|
To connect another environment, restart with its target and a separate
|
|
178
181
|
`SUIPAY_MCP_PROFILE`; the existing key binding stays unchanged.
|
|
182
|
+
A credentials file already bound to `https://gateway-dev-ba84.up.railway.app`
|
|
183
|
+
keeps that origin after an upgrade. Pay and `suipay_login` stay on it and
|
|
184
|
+
refuse the staging process. Use a new `SUIPAY_MCP_PROFILE` and log in there.
|
|
185
|
+
Do not log out to migrate: logout deletes the local key.
|
|
179
186
|
|
|
180
187
|
### Isolate connection environments
|
|
181
188
|
|
|
@@ -198,7 +205,7 @@ credentials. Stop on a mismatch; do not pay or delete the existing key.
|
|
|
198
205
|
## Client environment
|
|
199
206
|
|
|
200
207
|
```bash
|
|
201
|
-
# Optional. Unset =
|
|
208
|
+
# Optional. Unset = staging. --local uses localhost:3000 / 127.0.0.1:4340.
|
|
202
209
|
SUIPAY_GATEWAY_URL=https://gateway.example
|
|
203
210
|
SUIPAY_CONSOLE_URL=https://console.example
|
|
204
211
|
# Optional. Unset/blank retains the legacy credentials file.
|
package/dist/bin/suipay.js
CHANGED