@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 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.34` in MCP config for the `latest` dist-tag.
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.34
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 Railway-dev gateway/console defaults. A workspace
20
- checkout still defaults to localhost. `SUIPAY_GATEWAY_URL` and
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 Railway **suipay-dev**. Start the binary with `--local`
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 Railway **suipay-dev**. Start with `--local` for the laptop stack.
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-dev.up.railway.app` | `https://gateway-dev-ba84.up.railway.app` | no flag, or `--dev` |
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
- # Railway suipay-dev (default)
164
- npx @mysten-incubation/suipay-mcp@0.3.0-dev.34
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.34 --local
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 = Railway suipay-dev. --local uses localhost:3000 / 127.0.0.1:4340.
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.
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  main
4
- } from "../chunk-TCPF3ONF.js";
4
+ } from "../chunk-CEZ3NFAR.js";
5
5
  import {
6
6
  logError
7
- } from "../chunk-5S4MJN2A.js";
7
+ } from "../chunk-FUMH3XYC.js";
8
8
 
9
9
  // src/bin/suipay.ts
10
10
  main().catch((err) => {
@@ -5,7 +5,7 @@ import {
5
5
  loadMcpConfig,
6
6
  loadPaymentProfile,
7
7
  logError
8
- } from "./chunk-5S4MJN2A.js";
8
+ } from "./chunk-FUMH3XYC.js";
9
9
 
10
10
  // src/index.ts
11
11
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";