@cmdoss/suipay-mcp 0.3.0-dev.2 → 0.3.0-dev.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 +4 -4
- package/dist/bin/suipay.js +2 -2
- package/dist/{chunk-BPDD27XX.js → chunk-5HVUGWWW.js} +1 -1
- package/dist/{chunk-ETR3LOUH.js → chunk-GXSMC2YQ.js} +13 -0
- package/dist/{http-Y4pl8kN8.d.ts → http-CXSCuxMx.d.ts} +13 -0
- package/dist/http.d.ts +1 -1
- package/dist/http.js +1 -1
- package/dist/index.d.ts +2 -2
- 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 `@cmdoss/suipay-mcp@0.3.0-dev.
|
|
8
|
+
Pin `@cmdoss/suipay-mcp@0.3.0-dev.3` 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.3.0-dev.
|
|
16
|
+
claude mcp add --scope user suipay -- npx -y @cmdoss/suipay-mcp@0.3.0-dev.3
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
`@dev` installs the Railway-dev gateway/console defaults. A workspace
|
|
@@ -153,10 +153,10 @@ Default is Railway **suipay-dev**. `--local` / `target: "local"` is laptop-only.
|
|
|
153
153
|
|
|
154
154
|
```bash
|
|
155
155
|
# Railway suipay-dev (default)
|
|
156
|
-
npx @cmdoss/suipay-mcp@0.3.0-dev.
|
|
156
|
+
npx @cmdoss/suipay-mcp@0.3.0-dev.3
|
|
157
157
|
|
|
158
158
|
# Laptop stack
|
|
159
|
-
npx @cmdoss/suipay-mcp@0.3.0-dev.
|
|
159
|
+
npx @cmdoss/suipay-mcp@0.3.0-dev.3 --local
|
|
160
160
|
```
|
|
161
161
|
|
|
162
162
|
`SUIPAY_MCP_TARGET=local|dev` selects the same preset. Explicit
|
package/dist/bin/suipay.js
CHANGED
|
@@ -2647,6 +2647,19 @@ var LIMIT_CODES = {
|
|
|
2647
2647
|
nextAction: "retry_later",
|
|
2648
2648
|
user: { title: "Fee cover limit reached", message: "You've used up your covered network fees for now. Try again later." }
|
|
2649
2649
|
},
|
|
2650
|
+
"limit.managed_daily_cap": {
|
|
2651
|
+
surfaces: ["gateway"],
|
|
2652
|
+
status: 503,
|
|
2653
|
+
title: "Managed service daily cap reached",
|
|
2654
|
+
paymentState: "not_charged",
|
|
2655
|
+
retry: "after_delay",
|
|
2656
|
+
retryAfterSeconds: 86400,
|
|
2657
|
+
nextAction: "retry_later",
|
|
2658
|
+
user: {
|
|
2659
|
+
title: "Temporarily unavailable",
|
|
2660
|
+
message: "This service isn't taking new payments right now. Try again after midnight UTC."
|
|
2661
|
+
}
|
|
2662
|
+
},
|
|
2650
2663
|
"limit.rate_limited": {
|
|
2651
2664
|
surfaces: ["gateway", "console_server"],
|
|
2652
2665
|
status: 429,
|
|
@@ -1246,6 +1246,19 @@ declare const ERRORS: {
|
|
|
1246
1246
|
readonly message: "You've used up your covered network fees for now. Try again later.";
|
|
1247
1247
|
};
|
|
1248
1248
|
};
|
|
1249
|
+
readonly 'limit.managed_daily_cap': {
|
|
1250
|
+
readonly surfaces: readonly ["gateway"];
|
|
1251
|
+
readonly status: 503;
|
|
1252
|
+
readonly title: "Managed service daily cap reached";
|
|
1253
|
+
readonly paymentState: "not_charged";
|
|
1254
|
+
readonly retry: "after_delay";
|
|
1255
|
+
readonly retryAfterSeconds: 86400;
|
|
1256
|
+
readonly nextAction: "retry_later";
|
|
1257
|
+
readonly user: {
|
|
1258
|
+
readonly title: "Temporarily unavailable";
|
|
1259
|
+
readonly message: "This service isn't taking new payments right now. Try again after midnight UTC.";
|
|
1260
|
+
};
|
|
1261
|
+
};
|
|
1249
1262
|
readonly 'limit.rate_limited': {
|
|
1250
1263
|
readonly surfaces: readonly ["gateway", "console_server"];
|
|
1251
1264
|
readonly status: 429;
|
package/dist/http.d.ts
CHANGED
package/dist/http.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SpendAccountSigningRequest, P as PaidHttpRequest, D as DelegatedKeySigner, G as GetObjectJson, a as DelegatedPayerSession, b as DelegatedPayerConfig, c as DelegatedPayerDeps, d as SpendIntent, e as DelegatedPayResult, f as DelegationScope, C as CodeFor, N as NextAction, g as GrantPolicyBinding, h as PaymentAttemptLedger, i as DelegatedPayerLog, j as PreparedSettlementTerms, X as X402PayProgress, O as Offer, M as McpConfig, k as McpAuthContext, l as McpTraceHooks, m as SpendAccountPayDeps, n as createReader } from './http-
|
|
2
|
-
export { A as AgentHeldResolver, o as AgentHeldSettlement, p as MCP_TARGET_PRESETS, q as McpEnvelope, r as McpEnvelopeEntry, s as McpServerOptions, t as McpTarget, u as McpTraceContext, v as McpTraceRuntime, w as PACKAGE_NAME, x as PreparedPayment, y as SpendAccountPrepareResult, z as SpendAccountPrepareSession, T as TOOLS, B as buildSpendAccountPayKind, E as canonicalMcpRequestId, F as createServer, H as handleSuipayMcpHttpRequest, I as inspectMcpEnvelope, J as loadMcpConfig, K as parseMcpTargetFlag, L as prepareSpendAccountPayment, Q as resetAgentHeldProcessLedger, R as resolveAgentHeldSettlement, U as resolveGrantTarget, V as resolveMcpTarget, W as sameMcpGateway, Y as traceMcpHttpRequest, Z as verifySpendAccountPayReconstructs } from './http-
|
|
1
|
+
import { S as SpendAccountSigningRequest, P as PaidHttpRequest, D as DelegatedKeySigner, G as GetObjectJson, a as DelegatedPayerSession, b as DelegatedPayerConfig, c as DelegatedPayerDeps, d as SpendIntent, e as DelegatedPayResult, f as DelegationScope, C as CodeFor, N as NextAction, g as GrantPolicyBinding, h as PaymentAttemptLedger, i as DelegatedPayerLog, j as PreparedSettlementTerms, X as X402PayProgress, O as Offer, M as McpConfig, k as McpAuthContext, l as McpTraceHooks, m as SpendAccountPayDeps, n as createReader } from './http-CXSCuxMx.js';
|
|
2
|
+
export { A as AgentHeldResolver, o as AgentHeldSettlement, p as MCP_TARGET_PRESETS, q as McpEnvelope, r as McpEnvelopeEntry, s as McpServerOptions, t as McpTarget, u as McpTraceContext, v as McpTraceRuntime, w as PACKAGE_NAME, x as PreparedPayment, y as SpendAccountPrepareResult, z as SpendAccountPrepareSession, T as TOOLS, B as buildSpendAccountPayKind, E as canonicalMcpRequestId, F as createServer, H as handleSuipayMcpHttpRequest, I as inspectMcpEnvelope, J as loadMcpConfig, K as parseMcpTargetFlag, L as prepareSpendAccountPayment, Q as resetAgentHeldProcessLedger, R as resolveAgentHeldSettlement, U as resolveGrantTarget, V as resolveMcpTarget, W as sameMcpGateway, Y as traceMcpHttpRequest, Z as verifySpendAccountPayReconstructs } from './http-CXSCuxMx.js';
|
|
3
3
|
import { SuiGrpcClient } from '@mysten/sui/grpc';
|
|
4
4
|
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
|
|
5
5
|
import { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadBootProfile,
|
|
3
3
|
main
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5HVUGWWW.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-GXSMC2YQ.js";
|
|
30
30
|
export {
|
|
31
31
|
MCP_TARGET_PRESETS,
|
|
32
32
|
PACKAGE_NAME,
|
package/package.json
CHANGED