@openclawcash/mcp-server 0.1.5 → 0.1.10

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
@@ -1,6 +1,6 @@
1
1
  # OpenClawCash MCP Server
2
2
 
3
- This folder contains the public OpenClawCash stdio MCP server package that exposes OpenClawCash agent wallet operations as MCP tools.
3
+ This folder contains the public OpenClawCash stdio MCP server package, which exposes OpenClawCash agent operations as MCP tools.
4
4
 
5
5
  It is a thin adapter over the existing OpenClawCash agent API at `https://openclawcash.com/api/agent/*`.
6
6
 
@@ -8,18 +8,60 @@ Canonical docs page: `https://openclawcash.com/mcp`
8
8
 
9
9
  ## What It Exposes
10
10
 
11
+ Wallet and profile tools:
12
+
11
13
  - `wallets_list`
12
14
  - `wallet_get`
13
15
  - `transactions_list`
14
16
  - `balances_get`
15
17
  - `supported_tokens_list`
18
+ - `user_tag_get`
19
+ - `user_tag_set`
20
+ - `wallet_create`
21
+ - `wallet_import`
22
+
23
+ Trading and transfer tools:
24
+
16
25
  - `transfer_send`
17
26
  - `swap_quote`
18
27
  - `swap_execute`
19
- - `checkout_fund` (quick-pay first, swap fallback)
20
28
  - `approve_token`
21
- - `wallet_create`
22
- - `wallet_import`
29
+
30
+ Get Paid checkout tools:
31
+
32
+ - `checkout_payreq_create`
33
+ - `checkout_payreq_get`
34
+ - `checkout_escrow_get`
35
+ - `checkout_funding_confirm`
36
+ - `checkout_accept`
37
+ - `checkout_proof_submit`
38
+ - `checkout_dispute_open`
39
+ - `checkout_quick_pay`
40
+ - `checkout_swap_and_pay`
41
+ - `checkout_fund` (quick-pay first, swap fallback)
42
+ - `checkout_release`
43
+ - `checkout_refund`
44
+ - `checkout_cancel`
45
+ - `checkout_webhooks_list`
46
+ - `checkout_webhook_create`
47
+ - `checkout_webhook_update`
48
+ - `checkout_webhook_delete`
49
+
50
+ Polymarket tools:
51
+
52
+ - `polymarket_market_resolve`
53
+ - `polymarket_order_limit`
54
+ - `polymarket_order_market`
55
+ - `polymarket_account`
56
+ - `polymarket_orders`
57
+ - `polymarket_cancel_order`
58
+ - `polymarket_clear_integration`
59
+ - `polymarket_activity`
60
+ - `polymarket_positions`
61
+
62
+ Utility tool:
63
+
64
+ - `openclawcash-self-test`
23
65
 
24
66
  It also exposes two lightweight MCP resources:
25
67
 
@@ -7,7 +7,7 @@ import { fileURLToPath } from "node:url";
7
7
  import { z } from "zod";
8
8
 
9
9
  const SERVER_NAME = "openclawcash";
10
- const SERVER_VERSION = "0.1.9";
10
+ const SERVER_VERSION = "0.1.10";
11
11
  const PROTOCOL_VERSION = "2024-11-05";
12
12
  const DEFAULT_BASE_URL = "https://openclawcash.com";
13
13
 
@@ -118,6 +118,8 @@ const balancesArgsSchema = z
118
118
  const transferArgsSchema = walletSelectorBaseSchema
119
119
  .extend({
120
120
  to: z.string().min(1),
121
+ amountDisplay: z.string().min(1).optional(),
122
+ valueBaseUnits: z.string().min(1).optional(),
121
123
  amount: z.string().min(1).optional(),
122
124
  value: z.string().min(1).optional(),
123
125
  token: z.string().min(1).optional(),
@@ -126,8 +128,20 @@ const transferArgsSchema = walletSelectorBaseSchema
126
128
  .refine((data) => [data.walletId, data.walletLabel, data.walletAddress].filter((value) => value !== undefined).length === 1, {
127
129
  message: selectorDescription(),
128
130
  })
129
- .refine((data) => [data.amount, data.value].filter((value) => value !== undefined).length === 1, {
130
- message: "Provide exactly one of amount or value.",
131
+ .refine(
132
+ (data) => [data.amountDisplay, data.amount].filter((value) => value !== undefined).length <= 1,
133
+ { message: "Provide only one display amount field: amountDisplay (preferred) or amount." },
134
+ )
135
+ .refine(
136
+ (data) => [data.valueBaseUnits, data.value].filter((value) => value !== undefined).length <= 1,
137
+ { message: "Provide only one base-units field: valueBaseUnits (preferred) or value." },
138
+ )
139
+ .refine((data) => {
140
+ const hasDisplay = data.amountDisplay !== undefined || data.amount !== undefined;
141
+ const hasBaseUnits = data.valueBaseUnits !== undefined || data.value !== undefined;
142
+ return (hasDisplay ? 1 : 0) + (hasBaseUnits ? 1 : 0) === 1;
143
+ }, {
144
+ message: "Provide exactly one amount field: amountDisplay (human units) OR valueBaseUnits (base units).",
131
145
  });
132
146
 
133
147
  const swapQuoteArgsSchema = walletSelectorBaseSchema
@@ -565,8 +579,10 @@ const tools = [
565
579
  walletAddress: { type: "string" },
566
580
  chain: { type: "string", enum: ["evm", "solana"] },
567
581
  to: { type: "string" },
568
- amount: { type: "string", description: "Human-readable amount." },
569
- value: { type: "string", description: "Base-unit amount." },
582
+ amountDisplay: { type: "string", description: "Human-readable decimal amount (preferred)." },
583
+ valueBaseUnits: { type: "string", description: "Base-units integer amount (preferred)." },
584
+ amount: { type: "string", description: "DEPRECATED alias for amountDisplay." },
585
+ value: { type: "string", description: "DEPRECATED alias for valueBaseUnits." },
570
586
  token: { type: "string" },
571
587
  memo: { type: "string", description: "Solana-only memo." },
572
588
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openclawcash/mcp-server",
3
- "version": "0.1.5",
4
- "description": "OpenClawCash MCP server for managed agent wallets, balances, transfers, swaps, and approvals.",
3
+ "version": "0.1.10",
4
+ "description": "OpenClawCash MCP server for managed agent wallets, balances, transfers, swaps, approvals, Get Paid checkout escrow flows, and Polymarket market resolution/order tools.",
5
5
  "type": "module",
6
6
  "license": "Proprietary",
7
7
  "homepage": "https://openclawcash.com/mcp",