@openclawcash/mcp-server 0.1.10 → 0.1.11

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
@@ -50,6 +50,7 @@ Get Paid checkout tools:
50
50
  Polymarket tools:
51
51
 
52
52
  - `polymarket_market_resolve`
53
+ - `polymarket_market_search`
53
54
  - `polymarket_order_limit`
54
55
  - `polymarket_order_market`
55
56
  - `polymarket_account`
@@ -173,6 +174,27 @@ Typical config shape:
173
174
  }
174
175
  ```
175
176
 
177
+ ## OpenAI Codex Example
178
+
179
+ If your OpenAI Codex environment supports MCP server configuration, use the same local stdio command pattern:
180
+
181
+ ```json
182
+ {
183
+ "mcpServers": {
184
+ "openclawcash": {
185
+ "command": "npx",
186
+ "args": ["-y", "@openclawcash/mcp-server"],
187
+ "env": {
188
+ "OPENCLAWCASH_AGENT_KEY": "occ_your_api_key_here",
189
+ "OPENCLAWCASH_BASE_URL": "https://openclawcash.com"
190
+ }
191
+ }
192
+ }
193
+ }
194
+ ```
195
+
196
+ If your Codex setup expects a different config file location or wrapper schema, keep the same `command`, `args`, and `env` values and adapt only the surrounding structure required by that client.
197
+
176
198
  ## Cursor Example
177
199
 
178
200
  You can print a config snippet with:
@@ -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.10";
10
+ const SERVER_VERSION = "0.1.11";
11
11
  const PROTOCOL_VERSION = "2024-11-05";
12
12
  const DEFAULT_BASE_URL = "https://openclawcash.com";
13
13
 
@@ -283,6 +283,11 @@ const polymarketMarketResolveArgsSchema = z
283
283
  message: "Provide exactly one of marketUrl or slug.",
284
284
  });
285
285
 
286
+ const polymarketMarketSearchArgsSchema = z.object({
287
+ query: z.string().min(2),
288
+ limit: z.number().int().positive().max(50).optional(),
289
+ });
290
+
286
291
  const checkoutEscrowIdArgsSchema = z.object({
287
292
  id: z.string().min(1),
288
293
  });
@@ -1223,6 +1228,26 @@ const tools = [
1223
1228
  query: args,
1224
1229
  }),
1225
1230
  },
1231
+ {
1232
+ name: "polymarket_market_search",
1233
+ description: "Search Polymarket markets by query text. Use this when market_resolve returns market_not_found.",
1234
+ inputSchema: {
1235
+ type: "object",
1236
+ properties: {
1237
+ query: { type: "string", description: "Search string for market slug/question." },
1238
+ limit: { type: "number", description: "Optional max results (1-50)." },
1239
+ },
1240
+ required: ["query"],
1241
+ additionalProperties: false,
1242
+ },
1243
+ parse: (args) => polymarketMarketSearchArgsSchema.parse(args ?? {}),
1244
+ execute: async (args) =>
1245
+ callAgentApi({
1246
+ method: "GET",
1247
+ pathName: "/api/agent/venues/polymarket/market/search",
1248
+ query: args,
1249
+ }),
1250
+ },
1226
1251
  {
1227
1252
  name: "polymarket_order_limit",
1228
1253
  description: withWriteSafety("Place a Polymarket limit order from a configured polygon-mainnet wallet. Use this for explicit target-price orders; for close-position intent, prefer market SELL unless a limit price is explicitly requested."),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclawcash/mcp-server",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
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",