@cmdoss/suipay-mcp 0.3.0-dev.1 → 0.3.0-dev.2

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.3.0-dev.1` in MCP config for the `latest` dist-tag.
8
+ Pin `@cmdoss/suipay-mcp@0.3.0-dev.2` 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.1
16
+ claude mcp add --scope user suipay -- npx -y @cmdoss/suipay-mcp@0.3.0-dev.2
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.1
156
+ npx @cmdoss/suipay-mcp@0.3.0-dev.2
157
157
 
158
158
  # Laptop stack
159
- npx @cmdoss/suipay-mcp@0.3.0-dev.1 --local
159
+ npx @cmdoss/suipay-mcp@0.3.0-dev.2 --local
160
160
  ```
161
161
 
162
162
  `SUIPAY_MCP_TARGET=local|dev` selects the same preset. Explicit
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  main
4
- } from "../chunk-W4RIN664.js";
4
+ } from "../chunk-BPDD27XX.js";
5
5
  import {
6
6
  logError
7
- } from "../chunk-FKDC22O6.js";
7
+ } from "../chunk-ETR3LOUH.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-FKDC22O6.js";
8
+ } from "./chunk-ETR3LOUH.js";
9
9
 
10
10
  // src/index.ts
11
11
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
@@ -2119,6 +2119,18 @@ var AUTH_CODES = {
2119
2119
  nextAction: "fix_request",
2120
2120
  user: { title: "Wrong key", message: "This key isn't the one your access was given to. Use the right key." }
2121
2121
  },
2122
+ "auth.spend_not_whitelisted": {
2123
+ surfaces: ["gateway"],
2124
+ status: 403,
2125
+ title: "Wallet is not allowed to spend",
2126
+ paymentState: "not_charged",
2127
+ retry: "never",
2128
+ nextAction: "contact_support",
2129
+ user: {
2130
+ title: "Wallet cannot spend",
2131
+ message: "Your wallet isn't allowed to spend yet. Ask an operator to allow it."
2132
+ }
2133
+ },
2122
2134
  "auth.token_invalid": {
2123
2135
  surfaces: ["gateway", "mcp_hosted"],
2124
2136
  status: 401,
@@ -3009,6 +3009,18 @@ declare const ERRORS: {
3009
3009
  readonly message: "This key isn't the one your access was given to. Use the right key.";
3010
3010
  };
3011
3011
  };
3012
+ readonly 'auth.spend_not_whitelisted': {
3013
+ readonly surfaces: readonly ["gateway"];
3014
+ readonly status: 403;
3015
+ readonly title: "Wallet is not allowed to spend";
3016
+ readonly paymentState: "not_charged";
3017
+ readonly retry: "never";
3018
+ readonly nextAction: "contact_support";
3019
+ readonly user: {
3020
+ readonly title: "Wallet cannot spend";
3021
+ readonly message: "Your wallet isn't allowed to spend yet. Ask an operator to allow it.";
3022
+ };
3023
+ };
3012
3024
  readonly 'auth.token_invalid': {
3013
3025
  readonly surfaces: readonly ["gateway", "mcp_hosted"];
3014
3026
  readonly status: 401;
package/dist/http.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { H as handleSuipayMcpHttpRequest } from './http-BCFfQFIg.js';
1
+ export { H as handleSuipayMcpHttpRequest } from './http-Y4pl8kN8.js';
2
2
  import '@modelcontextprotocol/sdk/server/index.js';
3
3
  import '@mysten/sui/keypairs/ed25519';
package/dist/http.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  handleSuipayMcpHttpRequest
3
- } from "./chunk-FKDC22O6.js";
3
+ } from "./chunk-ETR3LOUH.js";
4
4
  export {
5
5
  handleSuipayMcpHttpRequest
6
6
  };
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-BCFfQFIg.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-BCFfQFIg.js';
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-Y4pl8kN8.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-Y4pl8kN8.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-W4RIN664.js";
4
+ } from "./chunk-BPDD27XX.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-FKDC22O6.js";
29
+ } from "./chunk-ETR3LOUH.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.3.0-dev.1",
3
+ "version": "0.3.0-dev.2",
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-sdk": "0.1.0",
41
- "@cmdoss/suipay-core": "0.1.0"
40
+ "@cmdoss/suipay-core": "0.1.0",
41
+ "@cmdoss/suipay-sdk": "0.1.0"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsup",