@catalyst-team/poly-mcp 0.1.2 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +25 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -177,6 +177,10 @@ pnpm -F @catalyst-team/poly-mcp build
177
177
  ```
178
178
 
179
179
  #### 交易模式 - 多钱包 (推荐)
180
+
181
+ **注意**: JSON 中的嵌套 JSON 需要转义,建议先在 shell 中设置环境变量,再在配置中引用。
182
+
183
+ **方式 1: 直接在配置中写 (需要转义引号)**
180
184
  ```json
181
185
  {
182
186
  "mcpServers": {
@@ -184,13 +188,33 @@ pnpm -F @catalyst-team/poly-mcp build
184
188
  "command": "npx",
185
189
  "args": ["@catalyst-team/poly-mcp"],
186
190
  "env": {
187
- "POLY_WALLETS": "{\"main\":\"0x...\",\"trading\":\"0x...\",\"arb\":\"0x...\"}"
191
+ "POLY_WALLETS": "{\"main\":\"0xYourMainWalletPrivateKey\",\"trading\":\"0xYourTradingWalletPrivateKey\",\"arb\":\"0xYourArbWalletPrivateKey\"}"
188
192
  }
189
193
  }
190
194
  }
191
195
  }
192
196
  ```
193
197
 
198
+ **方式 2: 使用 shell 环境变量 (更简洁)**
199
+
200
+ 先在 `~/.zshrc` 或 `~/.bashrc` 中添加:
201
+ ```bash
202
+ export POLY_WALLETS='{"main":"0xYourMainWalletPrivateKey","trading":"0xYourTradingWalletPrivateKey","arb":"0xYourArbWalletPrivateKey"}'
203
+ ```
204
+
205
+ 然后在 Claude Desktop 配置中:
206
+ ```json
207
+ {
208
+ "mcpServers": {
209
+ "polymarket": {
210
+ "command": "npx",
211
+ "args": ["@catalyst-team/poly-mcp"]
212
+ }
213
+ }
214
+ }
215
+ ```
216
+ (MCP Server 会自动读取系统环境变量)
217
+
194
218
  #### 本地开发
195
219
  ```json
196
220
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@catalyst-team/poly-mcp",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "description": "MCP (Model Context Protocol) server for Polymarket - enables AI agents to interact with prediction markets",
6
6
  "type": "module",