@mysten-incubation/suipay-mcp 0.3.0-dev.2 → 0.3.0-dev.20
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 +24 -4
- package/dist/bin/suipay.js +2 -2
- package/dist/{chunk-OAHWW4H7.js → chunk-4HWODHQ4.js} +1 -1
- package/dist/{chunk-HIBLRYTW.js → chunk-JHBXXJ6X.js} +745 -52
- package/dist/{http-BUaEV9I3.d.ts → http-BJFB-Yhm.d.ts} +73 -1
- package/dist/http.d.ts +1 -1
- package/dist/http.js +1 -1
- package/dist/index.d.ts +29 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
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.20` 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,7 +13,7 @@ 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.20
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
`@dev` installs the Railway-dev gateway/console defaults. A workspace
|
|
@@ -155,10 +155,10 @@ Default is Railway **suipay-dev**. `--local` / `target: "local"` is laptop-only.
|
|
|
155
155
|
|
|
156
156
|
```bash
|
|
157
157
|
# Railway suipay-dev (default)
|
|
158
|
-
npx @mysten-incubation/suipay-mcp@0.3.0-dev.
|
|
158
|
+
npx @mysten-incubation/suipay-mcp@0.3.0-dev.20
|
|
159
159
|
|
|
160
160
|
# Laptop stack
|
|
161
|
-
npx @mysten-incubation/suipay-mcp@0.3.0-dev.
|
|
161
|
+
npx @mysten-incubation/suipay-mcp@0.3.0-dev.20 --local
|
|
162
162
|
```
|
|
163
163
|
|
|
164
164
|
`SUIPAY_MCP_TARGET=local|dev` selects the same preset. Explicit
|
|
@@ -169,12 +169,32 @@ credential is bound yet. After a successful login, `credentials.json`
|
|
|
169
169
|
Rebind with `suipay_login({ target: "dev" | "local" })` (same key, new consent
|
|
170
170
|
if that stack has no live grant).
|
|
171
171
|
|
|
172
|
+
### Isolate connection environments
|
|
173
|
+
|
|
174
|
+
`SUIPAY_MCP_PROFILE` selects a separate agent-held key file at
|
|
175
|
+
`~/.suipay/profiles/<sha256-of-trimmed-profile>/credentials.json`. Unset or
|
|
176
|
+
blank keeps the existing `~/.suipay/credentials.json`. The profile is a local
|
|
177
|
+
storage selector, not an authorization grant or gateway override: set
|
|
178
|
+
`SUIPAY_GATEWAY_URL` and `SUIPAY_CONSOLE_URL` as well. Use the same stable profile
|
|
179
|
+
for the same environment. Login, status, discovery, pay, and logout all use
|
|
180
|
+
that profile; logout removes only its file. Files stay mode `0600` inside a
|
|
181
|
+
`0700` profile directory. Existing files are never copied, rebound, or deleted
|
|
182
|
+
when selecting a profile. A new profile requires fresh owner authorization.
|
|
183
|
+
|
|
184
|
+
The console's Connect Agent prompt uses its public gateway URL as the profile.
|
|
185
|
+
Install an MCP package that supports profiles before using this prompt, and
|
|
186
|
+
verify the returned login gateway matches the configured environment before
|
|
187
|
+
continuing. An older package may ignore the variable and reuse legacy
|
|
188
|
+
credentials. Stop on a mismatch; do not pay or delete the existing key.
|
|
189
|
+
|
|
172
190
|
## Client environment
|
|
173
191
|
|
|
174
192
|
```bash
|
|
175
193
|
# Optional. Unset = Railway suipay-dev. --local uses localhost:3000 / 127.0.0.1:4340.
|
|
176
194
|
SUIPAY_GATEWAY_URL=https://gateway.example
|
|
177
195
|
SUIPAY_CONSOLE_URL=https://console.example
|
|
196
|
+
# Optional. Unset/blank retains the legacy credentials file.
|
|
197
|
+
SUIPAY_MCP_PROFILE=https://gateway.example
|
|
178
198
|
SUIPAY_RPC_URL=https://your-testnet-rpc.example
|
|
179
199
|
SUIPAY_NETWORK=testnet
|
|
180
200
|
SUIPAY_MCP_TARGET=dev
|
package/dist/bin/suipay.js
CHANGED