@pionex/pionex-trade-mcp 0.2.46 → 0.2.49

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
@@ -2,7 +2,11 @@
2
2
 
3
3
  MCP server for Pionex. Reads credentials from **~/.pionex/config.toml** (no env vars needed in client config).
4
4
 
5
- ## Install & Setup
5
+ ## Claude Desktop — One-Click Install
6
+
7
+ For Claude Desktop, a `.mcpb` one-click installer is available. Download `pionex-mcp.mcpb` from the [GitHub Releases page](https://github.com/pionex-official/pionex-ai-kit/releases/latest) and double-click to install.
8
+
9
+ ## Install & Setup (npm — Cursor, Windsurf, VS Code, etc.)
6
10
 
7
11
  1. Create config (if not done yet):
8
12
  `pionex-ai-kit onboard` (from **@pionex/pionex-ai-kit**).
@@ -37,6 +41,7 @@ Credentials are read from `~/.pionex/config.toml` when the server starts; the cl
37
41
 
38
42
  - **Market** (no auth): `pionex_market_get_depth`, `pionex_market_get_trades`, `pionex_market_get_symbol_info`, `pionex_market_get_tickers`, `pionex_market_get_book_tickers`, `pionex_market_get_klines`
39
43
  - **Account** (auth): `pionex_account_get_balance`
44
+ - **Wallet** (auth): `pionex_wallet_get_balance_full`
40
45
  - **Orders** (auth): `pionex_orders_new_order`, `pionex_orders_get_order`, `pionex_orders_get_order_by_client_order_id`, `pionex_orders_get_open_orders`, `pionex_orders_get_all_orders`, `pionex_orders_cancel_order`, `pionex_orders_get_fills`, `pionex_orders_get_fills_by_order_id`, `pionex_orders_cancel_all_orders`
41
46
  - **Bot / Futures Grid** (auth): `pionex_bot_futures_grid_get_order`, `pionex_bot_futures_grid_create`, `pionex_bot_futures_grid_adjust_params`, `pionex_bot_futures_grid_reduce`, `pionex_bot_futures_grid_cancel`
42
47
  - **Bot / Spot Grid** (auth): `pionex_bot_spot_grid_get_order`, `pionex_bot_spot_grid_get_ai_strategy`, `pionex_bot_spot_grid_create`, `pionex_bot_spot_grid_adjust_params`, `pionex_bot_spot_grid_invest_in`, `pionex_bot_spot_grid_cancel`, `pionex_bot_spot_grid_profit`
package/dist/index.js CHANGED
@@ -720,8 +720,8 @@ var CLIENT_NAMES = {
720
720
  };
721
721
  var SUPPORTED_CLIENTS = Object.keys(CLIENT_NAMES);
722
722
  var PIONEX_API_DEFAULT_BASE_URL = "https://api.pionex.com";
723
- var MODULES = ["market", "account", "orders", "bot", "earn_dual"];
724
- var DEFAULT_MODULES = ["market", "account", "orders", "bot", "earn_dual"];
723
+ var MODULES = ["market", "account", "wallet", "orders", "bot", "earn_dual"];
724
+ var DEFAULT_MODULES = ["market", "account", "wallet", "orders", "bot", "earn_dual"];
725
725
  var ConfigError = class extends Error {
726
726
  suggestion;
727
727
  constructor(message, suggestion) {
@@ -1061,6 +1061,27 @@ function registerAccountTools() {
1061
1061
  }
1062
1062
  ];
1063
1063
  }
1064
+ function registerWalletTools() {
1065
+ return [
1066
+ {
1067
+ name: "pionex_wallet_get_balance_full",
1068
+ module: "wallet",
1069
+ isWrite: false,
1070
+ description: "Query full account balance overview including spot (Bot Account) and futures (Trader Account), with per-coin price info and total USDT/BTC valuations. Requires authentication.",
1071
+ inputSchema: {
1072
+ type: "object",
1073
+ additionalProperties: false,
1074
+ properties: {
1075
+ appLang: { type: "string", description: "App language, e.g. 'en' or 'zh' (takes priority over sysLang)" },
1076
+ sysLang: { type: "string", description: "System language fallback when appLang is not set" }
1077
+ }
1078
+ },
1079
+ async handler(args, { client }) {
1080
+ return (await client.signedGet("/api/v1/wallet/balancesFull", args)).data;
1081
+ }
1082
+ }
1083
+ ];
1084
+ }
1064
1085
  function registerOrdersTools() {
1065
1086
  return [
1066
1087
  {
@@ -2737,7 +2758,7 @@ function registerEarnDualTools() {
2737
2758
  ];
2738
2759
  }
2739
2760
  function allToolSpecs() {
2740
- return [...registerMarketTools(), ...registerAccountTools(), ...registerOrdersTools(), ...registerBotTools(), ...registerEarnDualTools()];
2761
+ return [...registerMarketTools(), ...registerAccountTools(), ...registerWalletTools(), ...registerOrdersTools(), ...registerBotTools(), ...registerEarnDualTools()];
2741
2762
  }
2742
2763
  function buildTools(config) {
2743
2764
  const enabled = new Set(config.modules);