@pionex/pionex-trade-mcp 0.1.0

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 ADDED
@@ -0,0 +1,30 @@
1
+ # @pionex/pionex-trade-mcp
2
+
3
+ MCP server for Pionex. Reads credentials from **~/.pionex/config.toml** (no env vars needed in client config).
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g @pionex/pionex-trade-mcp
9
+ ```
10
+
11
+ ## Setup
12
+
13
+ 1. Create config (if not done yet):
14
+ `pionex-ai-kit onboard` (from **@pionex/pionex-ai-kit**).
15
+
16
+ 2. Register with your AI client using the CLI:
17
+ ```bash
18
+ pionex-ai-kit setup --mcp=pionex-trade-mcp --client cursor
19
+ ```
20
+ Supported: `cursor`, `claude-desktop`, `windsurf`, `vscode`, `claude-code`, `open_claw`.
21
+
22
+ 3. Restart Cursor (or your client).
23
+
24
+ Credentials are read from `~/.pionex/config.toml` when the server starts; the client config (e.g. `~/.cursor/mcp.json`) only needs the command (e.g. `npx -y pionex-trade-mcp`), with no `env` for keys.
25
+
26
+ ## Tools
27
+
28
+ - **Market** (no auth): `pionex.market.get_depth`, `pionex.market.get_trades`, `pionex.market.get_symbol_info`
29
+ - **Account** (auth): `pionex.account.get_balance`
30
+ - **Orders** (auth): `pionex.orders.new_order`, `pionex.orders.get_order`, `pionex.orders.get_open_orders`, etc.