@pionex/pionex-trade-mcp 0.2.47 → 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**).
@@ -36,7 +40,8 @@ Credentials are read from `~/.pionex/config.toml` when the server starts; the cl
36
40
  ## Tools
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
- - **Account** (auth): `pionex_account_get_balance`, `pionex_account_get_balance_full`
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) {
@@ -1058,10 +1058,14 @@ function registerAccountTools() {
1058
1058
  async handler(_args, { client }) {
1059
1059
  return (await client.signedGet("/api/v1/account/balances")).data;
1060
1060
  }
1061
- },
1061
+ }
1062
+ ];
1063
+ }
1064
+ function registerWalletTools() {
1065
+ return [
1062
1066
  {
1063
- name: "pionex_account_get_balance_full",
1064
- module: "account",
1067
+ name: "pionex_wallet_get_balance_full",
1068
+ module: "wallet",
1065
1069
  isWrite: false,
1066
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.",
1067
1071
  inputSchema: {
@@ -2754,7 +2758,7 @@ function registerEarnDualTools() {
2754
2758
  ];
2755
2759
  }
2756
2760
  function allToolSpecs() {
2757
- return [...registerMarketTools(), ...registerAccountTools(), ...registerOrdersTools(), ...registerBotTools(), ...registerEarnDualTools()];
2761
+ return [...registerMarketTools(), ...registerAccountTools(), ...registerWalletTools(), ...registerOrdersTools(), ...registerBotTools(), ...registerEarnDualTools()];
2758
2762
  }
2759
2763
  function buildTools(config) {
2760
2764
  const enabled = new Set(config.modules);