@cmdoss/suipay-mcp 0.2.2-dev.25 → 0.2.2-dev.26
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 `@cmdoss/suipay-mcp@0.2.2-dev.
|
|
8
|
+
Pin `@cmdoss/suipay-mcp@0.2.2-dev.26` in MCP config for the `latest` dist-tag.
|
|
9
9
|
`npx -y @cmdoss/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 @cmdoss/suipay-mcp@0.2.2-dev.
|
|
16
|
+
claude mcp add --scope user suipay -- npx -y @cmdoss/suipay-mcp@0.2.2-dev.26
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
`@dev` installs the Railway-dev gateway/console defaults. A workspace
|
|
@@ -154,10 +154,10 @@ Default is Railway **suipay-dev**. `--local` / `target: "local"` is laptop-only.
|
|
|
154
154
|
|
|
155
155
|
```bash
|
|
156
156
|
# Railway suipay-dev (default)
|
|
157
|
-
npx @cmdoss/suipay-mcp@0.2.2-dev.
|
|
157
|
+
npx @cmdoss/suipay-mcp@0.2.2-dev.26
|
|
158
158
|
|
|
159
159
|
# Laptop stack
|
|
160
|
-
npx @cmdoss/suipay-mcp@0.2.2-dev.
|
|
160
|
+
npx @cmdoss/suipay-mcp@0.2.2-dev.26 --local
|
|
161
161
|
```
|
|
162
162
|
|
|
163
163
|
`SUIPAY_MCP_TARGET=local|dev` selects the same preset. Explicit
|
package/dist/bin/suipay.js
CHANGED
|
@@ -3311,7 +3311,7 @@ var ACCOUNT_CODES = {
|
|
|
3311
3311
|
user: { title: "Access not allowed", message: "Your agent's access doesn't cover this payment. Approve access for it." }
|
|
3312
3312
|
},
|
|
3313
3313
|
"account.grant_expired": {
|
|
3314
|
-
surfaces: ["gateway", "sdk"],
|
|
3314
|
+
surfaces: ["gateway", "sdk", "browser"],
|
|
3315
3315
|
status: 403,
|
|
3316
3316
|
title: "Grant has expired",
|
|
3317
3317
|
paymentState: "not_charged",
|
|
@@ -3586,7 +3586,10 @@ var AUTH_CODES = {
|
|
|
3586
3586
|
user: { title: "Access expired", message: "Your agent's access has expired. Approve access again to continue." }
|
|
3587
3587
|
},
|
|
3588
3588
|
"auth.connection_not_found": {
|
|
3589
|
-
|
|
3589
|
+
// Also `browser`: a consent link with no request id is this same state,
|
|
3590
|
+
// observed locally rather than from a gateway lookup — the user copy and
|
|
3591
|
+
// next action (reconnect) hold either way.
|
|
3592
|
+
surfaces: ["gateway", "mcp_hosted", "browser"],
|
|
3590
3593
|
status: 404,
|
|
3591
3594
|
title: "Agent connection not found",
|
|
3592
3595
|
paymentState: "not_charged",
|
|
@@ -3884,6 +3887,15 @@ var CLIENT_CODES = {
|
|
|
3884
3887
|
nextAction: "fix_request",
|
|
3885
3888
|
user: { title: "Check the form", message: "Some fields need fixing. Check the highlighted fields and try again." }
|
|
3886
3889
|
},
|
|
3890
|
+
"client.key_already_active": {
|
|
3891
|
+
surfaces: ["browser"],
|
|
3892
|
+
status: null,
|
|
3893
|
+
title: "Edit asked to change a key that is already active",
|
|
3894
|
+
paymentState: "not_charged",
|
|
3895
|
+
retry: "never",
|
|
3896
|
+
nextAction: "fix_request",
|
|
3897
|
+
user: { title: "Key already active", message: "Nothing changed. To change this key's limits, revoke it and set it up again." }
|
|
3898
|
+
},
|
|
3887
3899
|
"client.key_invalid": {
|
|
3888
3900
|
surfaces: ["browser", "mcp_local"],
|
|
3889
3901
|
status: null,
|
|
@@ -3930,6 +3942,15 @@ var CLIENT_CODES = {
|
|
|
3930
3942
|
nextAction: "retry_later",
|
|
3931
3943
|
user: { title: "You're offline", message: "Check your internet connection." }
|
|
3932
3944
|
},
|
|
3945
|
+
"client.page_stale": {
|
|
3946
|
+
surfaces: ["browser"],
|
|
3947
|
+
status: null,
|
|
3948
|
+
title: "Page state is missing data a reload restores",
|
|
3949
|
+
paymentState: "not_charged",
|
|
3950
|
+
retry: "never",
|
|
3951
|
+
nextAction: "fix_request",
|
|
3952
|
+
user: { title: "Page out of date", message: "This page is out of date. Reload it and try again." }
|
|
3953
|
+
},
|
|
3933
3954
|
"client.payer_misconfigured": {
|
|
3934
3955
|
surfaces: ["sdk", "mcp_local", "browser"],
|
|
3935
3956
|
status: null,
|
|
@@ -3975,6 +3996,15 @@ var CLIENT_CODES = {
|
|
|
3975
3996
|
nextAction: "contact_support",
|
|
3976
3997
|
user: { title: "Something went wrong", message: "If it keeps happening, contact support." }
|
|
3977
3998
|
},
|
|
3999
|
+
"client.wallet_not_connected": {
|
|
4000
|
+
surfaces: ["browser"],
|
|
4001
|
+
status: null,
|
|
4002
|
+
title: "Action needs a connected, signed-in owner wallet",
|
|
4003
|
+
paymentState: "not_charged",
|
|
4004
|
+
retry: "never",
|
|
4005
|
+
nextAction: "sign_in",
|
|
4006
|
+
user: { title: "Connect your wallet", message: "Connect your wallet and sign in to continue." }
|
|
4007
|
+
},
|
|
3978
4008
|
"client.wallet_rejected": {
|
|
3979
4009
|
surfaces: ["browser", "sdk"],
|
|
3980
4010
|
status: null,
|
|
@@ -5085,7 +5115,10 @@ var SERVICE_CODES = {
|
|
|
5085
5115
|
user: { title: "Something went wrong", message: "If it keeps happening, contact support with the code below." }
|
|
5086
5116
|
},
|
|
5087
5117
|
"service.unavailable": {
|
|
5088
|
-
|
|
5118
|
+
// Also `browser`: a directory page that only got a pass/fail boolean off
|
|
5119
|
+
// a server-side fetch restates this exact condition locally — the user
|
|
5120
|
+
// copy is equally true regardless of which layer noticed.
|
|
5121
|
+
surfaces: ["gateway", "console_server", "mcp_hosted", "browser"],
|
|
5089
5122
|
status: 503,
|
|
5090
5123
|
title: "Service temporarily unavailable",
|
|
5091
5124
|
paymentState: "not_charged",
|
package/dist/http.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadBootProfile,
|
|
3
3
|
main
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IH6HQD2V.js";
|
|
5
5
|
import {
|
|
6
6
|
MCP_TARGET_PRESETS,
|
|
7
7
|
PACKAGE_NAME,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
settlePreparedMcpPayment,
|
|
27
27
|
traceMcpHttpRequest,
|
|
28
28
|
verifySpendAccountPayReconstructs
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-YMOMYFKL.js";
|
|
30
30
|
export {
|
|
31
31
|
MCP_TARGET_PRESETS,
|
|
32
32
|
PACKAGE_NAME,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmdoss/suipay-mcp",
|
|
3
|
-
"version": "0.2.2-dev.
|
|
3
|
+
"version": "0.2.2-dev.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "SuiPay MCP — pay MPP-gated APIs from a spend-account grant with an agent-held delegate key.",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"tsup": "^8.0.0",
|
|
38
38
|
"typescript": "^6.0.3",
|
|
39
39
|
"vitest": "^4.1.10",
|
|
40
|
-
"@cmdoss/suipay-
|
|
41
|
-
"@cmdoss/suipay-
|
|
40
|
+
"@cmdoss/suipay-core": "0.1.0",
|
|
41
|
+
"@cmdoss/suipay-sdk": "0.1.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsup",
|