cryptoiz-mcp 4.15.6 → 4.15.7

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/index.js +18 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -9,8 +9,15 @@ import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprot
9
9
  import { Connection, Keypair, PublicKey, Transaction, SystemProgram, VersionedTransaction, TransactionMessage } from '@solana/web3.js';
10
10
  import bs58 from 'bs58';
11
11
 
12
- var VERSION = 'v4.15.6';
12
+ var VERSION = 'v4.15.7';
13
13
  var GATEWAY = 'https://rehqwsypjnjirhuiapqh.supabase.co/functions/v1/mcp-x402-gateway';
14
+ // Per-tool endpoints for Dexter settlement naming
15
+ var TOOL_ENDPOINTS = {
16
+ get_alpha_scanner: 'https://rehqwsypjnjirhuiapqh.supabase.co/functions/v1/mcp-alpha-scanner',
17
+ get_divergence: 'https://rehqwsypjnjirhuiapqh.supabase.co/functions/v1/mcp-divergence',
18
+ get_accumulation: 'https://rehqwsypjnjirhuiapqh.supabase.co/functions/v1/mcp-accumulation',
19
+ get_btc_regime: 'https://rehqwsypjnjirhuiapqh.supabase.co/functions/v1/mcp-btc-regime',
20
+ };
14
21
  var RECIPIENT = 'DsKmdkYx49Xc1WhqMUAztwhdYPTqieyC98VmnnJdgpXX';
15
22
  var USDC_MINT = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
16
23
  var DEXTER_FEE_PAYER = 'DEXVS3su4dZQWTvvPnLDJLRK1CeeKG6K3QqdzthgAkNV';
@@ -170,8 +177,15 @@ async function sendUSDC(amount) {
170
177
 
171
178
  // ===== TOOL CALL HANDLER =====
172
179
  async function callTool(toolName, args) {
173
- var toolParam = toolName;
174
- var queryParts = ['tool=' + toolParam];
180
+ var queryParts = [];
181
+
182
+ // Use per-tool endpoint if available, otherwise gateway
183
+ var baseUrl = TOOL_ENDPOINTS[toolName] || GATEWAY;
184
+
185
+ if (!TOOL_ENDPOINTS[toolName]) {
186
+ // Free tools go to gateway with tool param
187
+ queryParts.push('tool=' + toolName);
188
+ }
175
189
 
176
190
  if (toolName === 'get_divergence' && args && args.timeframe) {
177
191
  queryParts.push('tf=' + args.timeframe);
@@ -180,7 +194,7 @@ async function callTool(toolName, args) {
180
194
  queryParts.push('name=' + encodeURIComponent(args.name));
181
195
  }
182
196
 
183
- var url = GATEWAY + '?' + queryParts.join('&');
197
+ var url = queryParts.length > 0 ? baseUrl + '?' + queryParts.join('&') : baseUrl;
184
198
 
185
199
  // Dev mode bypass
186
200
  if (DEV_KEY) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cryptoiz-mcp",
3
- "version": "4.15.6",
3
+ "version": "4.15.7",
4
4
  "description": "CryptoIZ MCP Server - Solana DEX trading signals via Claude Desktop with x402 USDC micropayments (V2 Dexter facilitator)",
5
5
  "main": "index.js",
6
6
  "type": "module",