cryptoiz-mcp 4.15.14 → 4.16.1

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 (3) hide show
  1. package/index.js +16 -10
  2. package/package.json +54 -53
  3. package/server.json +30 -0
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
- #!/usr/bin/env node
2
- // CryptoIZ MCP Server v4.15.14
1
+ #!/usr/bin/env node
2
+ // CryptoIZ MCP Server v4.16.0
3
3
  // Whale Intelligence Suite: 6 paid tools + 2 free
4
4
  // x402 V2: Dexter facilitator (gas sponsored) + V1 backward compat
5
- // ZERO template literals Windows PowerShell safe
5
+ // ZERO template literals — Windows PowerShell safe
6
6
 
7
7
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
8
8
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
@@ -10,7 +10,7 @@ import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprot
10
10
  import { Connection, Keypair, PublicKey, Transaction, SystemProgram, VersionedTransaction, TransactionMessage } from '@solana/web3.js';
11
11
  import bs58 from 'bs58';
12
12
 
13
- var VERSION = 'v4.15.14';
13
+ var VERSION = 'v4.16.1';
14
14
  var GATEWAY = 'https://rehqwsypjnjirhuiapqh.supabase.co/functions/v1/mcp-x402-gateway';
15
15
  // Per-tool endpoints for Dexter settlement naming
16
16
  var TOOL_ENDPOINTS = {
@@ -20,6 +20,7 @@ var TOOL_ENDPOINTS = {
20
20
  get_whale_neutral: 'https://rehqwsypjnjirhuiapqh.supabase.co/functions/v1/mcp-neutral',
21
21
  get_whale_distribution: 'https://rehqwsypjnjirhuiapqh.supabase.co/functions/v1/mcp-distribution',
22
22
  get_btc_regime: 'https://rehqwsypjnjirhuiapqh.supabase.co/functions/v1/mcp-btc-regime',
23
+ get_btc_futures_signal: 'https://rehqwsypjnjirhuiapqh.supabase.co/functions/v1/mcp-btc-futures',
23
24
  // Backward compat: old names -> same proxy endpoints
24
25
  get_alpha_scanner: 'https://rehqwsypjnjirhuiapqh.supabase.co/functions/v1/mcp-alpha-scanner',
25
26
  get_divergence: 'https://rehqwsypjnjirhuiapqh.supabase.co/functions/v1/mcp-divergence',
@@ -191,13 +192,13 @@ async function callTool(toolName, args) {
191
192
 
192
193
  // Dev mode bypass
193
194
  if (DEV_KEY) {
194
- var devResp = await fetch(url, { headers: { 'x-dev-key': DEV_KEY } });
195
+ var devResp = await fetch(url, { method: 'POST', headers: { 'x-dev-key': DEV_KEY } });
195
196
  var devData = await devResp.json();
196
197
  return devData;
197
198
  }
198
199
 
199
- // Step 1: Fetch gateway expect 402 or 200 (free tools)
200
- var resp1 = await fetch(url);
200
+ // Step 1: Fetch gateway — expect 402 or 200 (free tools)
201
+ var resp1 = await fetch(url, { method: 'POST' });
201
202
 
202
203
  if (resp1.status === 200) {
203
204
  return await resp1.json();
@@ -208,7 +209,7 @@ async function callTool(toolName, args) {
208
209
  throw new Error('Gateway error ' + resp1.status + ': ' + errText);
209
210
  }
210
211
 
211
- // Step 2: Parse 402 response try V2 header first, fallback to body
212
+ // Step 2: Parse 402 response — try V2 header first, fallback to body
212
213
  var paymentRequirements = null;
213
214
  var useV2 = false;
214
215
 
@@ -287,7 +288,7 @@ async function callTool(toolName, args) {
287
288
  var headers2 = {};
288
289
  headers2[headerName] = paymentHeader;
289
290
 
290
- var resp2 = await fetch(url, { headers: headers2 });
291
+ var resp2 = await fetch(url, { method: 'POST', headers: headers2 });
291
292
 
292
293
  // V2 settle failed? Auto-fallback to V1
293
294
  if (resp2.status !== 200 && useV2) {
@@ -302,7 +303,7 @@ async function callTool(toolName, args) {
302
303
  var v1FallbackPayload = { signature: fallbackSig };
303
304
  var v1FallbackHeader = Buffer.from(JSON.stringify(v1FallbackPayload)).toString('base64');
304
305
 
305
- resp2 = await fetch(url, { headers: { 'x-payment': v1FallbackHeader } });
306
+ resp2 = await fetch(url, { method: 'POST', headers: { 'x-payment': v1FallbackHeader } });
306
307
  } catch(fallbackErr) {
307
308
  console.error('[cryptoiz-mcp] V1 fallback also failed: ' + fallbackErr.message);
308
309
  throw new Error('V2 failed (' + v2ErrBody.substring(0, 100) + '), V1 fallback also failed: ' + fallbackErr.message);
@@ -366,6 +367,11 @@ var TOOLS = [
366
367
  description: 'Get Bitcoin macro regime, fear/greed index, futures signals, and technicals (RSI, EMA, MACD). Cost: $0.01 USDC.',
367
368
  inputSchema: { type: 'object', properties: {}, required: [] },
368
369
  },
370
+ {
371
+ name: 'get_btc_futures_signal',
372
+ description: 'BTC futures scalping signal (35x leverage). Multi-timeframe: 4h regime filter (bull/bear) + 5m RSI entry trigger. Returns direction, entry, TP, SL, leverage recommendation, conviction score. Backtested 54% WR, PF 1.67, Sharpe 5.0 on 90d. Cost: $0.03 USDC.',
373
+ inputSchema: { type: 'object', properties: {}, required: [] },
374
+ },
369
375
  {
370
376
  name: 'get_token_ca',
371
377
  description: 'Look up a Solana token contract address by name. FREE - no payment required.',
package/package.json CHANGED
@@ -1,53 +1,54 @@
1
- {
2
- "name": "cryptoiz-mcp",
3
- "version": "4.15.14",
4
- "mcpName": "io.github.dadang11/cryptoiz",
5
- "description": "CryptoIZ MCP Server - Solana DEX whale intelligence via Claude Desktop with x402 USDC micropayments (V2 Dexter facilitator)",
6
- "main": "index.js",
7
- "type": "module",
8
- "bin": {
9
- "cryptoiz-mcp": "./index.js",
10
- "cryptoiz-mcp-setup": "./setup.js"
11
- },
12
- "files": [
13
- "index.js",
14
- "setup.js",
15
- "package.json",
16
- "README.md"
17
- ],
18
- "dependencies": {
19
- "@modelcontextprotocol/sdk": "^1.0.4",
20
- "@solana/web3.js": "^1.95.8",
21
- "bs58": "^6.0.0"
22
- },
23
- "engines": {
24
- "node": ">=18.0.0"
25
- },
26
- "keywords": [
27
- "mcp",
28
- "mcp-server",
29
- "claude",
30
- "solana",
31
- "crypto",
32
- "trading",
33
- "x402",
34
- "usdc",
35
- "dexter",
36
- "whale-tracking",
37
- "whale-intelligence",
38
- "smart-money",
39
- "alpha-signals",
40
- "divergence",
41
- "accumulation",
42
- "distribution",
43
- "defi",
44
- "dex"
45
- ],
46
- "author": "CryptoIZ",
47
- "license": "MIT",
48
- "homepage": "https://cryptoiz.org/McpLanding",
49
- "repository": {
50
- "type": "git",
51
- "url": "https://github.com/dadang11/cryptoiz-mcp"
52
- }
53
- }
1
+ {
2
+ "name": "cryptoiz-mcp",
3
+ "version": "4.16.1",
4
+ "mcpName": "io.github.dadang11/cryptoiz",
5
+ "description": "CryptoIZ MCP Server - Solana DEX whale intelligence via Claude Desktop with x402 USDC micropayments (V2 Dexter facilitator)",
6
+ "main": "index.js",
7
+ "type": "module",
8
+ "bin": {
9
+ "cryptoiz-mcp-setup": "./setup.js",
10
+ "cryptoiz-mcp": "./index.js"
11
+ },
12
+ "files": [
13
+ "index.js",
14
+ "setup.js",
15
+ "package.json",
16
+ "README.md",
17
+ "server.json"
18
+ ],
19
+ "dependencies": {
20
+ "@modelcontextprotocol/sdk": "^1.0.4",
21
+ "@solana/web3.js": "^1.95.8",
22
+ "bs58": "^6.0.0"
23
+ },
24
+ "engines": {
25
+ "node": "\u003e=18.0.0"
26
+ },
27
+ "keywords": [
28
+ "mcp",
29
+ "mcp-server",
30
+ "claude",
31
+ "solana",
32
+ "crypto",
33
+ "trading",
34
+ "x402",
35
+ "usdc",
36
+ "dexter",
37
+ "whale-tracking",
38
+ "whale-intelligence",
39
+ "smart-money",
40
+ "alpha-signals",
41
+ "divergence",
42
+ "accumulation",
43
+ "distribution",
44
+ "defi",
45
+ "dex"
46
+ ],
47
+ "author": "CryptoIZ",
48
+ "license": "MIT",
49
+ "homepage": "https://cryptoiz.org/McpLanding",
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "https://github.com/dadang11/cryptoiz-mcp"
53
+ }
54
+ }
package/server.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-07-09/server.schema.json",
3
+ "name": "io.github.dadang11/cryptoiz",
4
+ "description": "AI-powered Solana DEX smart money signals. Get whale/dolphin accumulation alerts, price-volume divergence detection, alpha scanner with 20 top-scoring tokens, and BTC macro regime analysis. Pay-per-call via x402 USDC on Solana — no subscription, no API key needed.",
5
+ "status": "active",
6
+ "repository": {
7
+ "url": "https://github.com/dadang11/cryptoiz-mcp",
8
+ "source": "github"
9
+ },
10
+ "version": "4.16.1",
11
+ "packages": [
12
+ {
13
+ "registry_type": "npm",
14
+ "registry_base_url": "https://registry.npmjs.org",
15
+ "identifier": "cryptoiz-mcp",
16
+ "version": "4.16.1",
17
+ "transport": {
18
+ "type": "stdio"
19
+ },
20
+ "environment_variables": [
21
+ {
22
+ "name": "SVM_PRIVATE_KEY",
23
+ "description": "Your Solana wallet private key (base58) for x402 USDC payments",
24
+ "isRequired": true,
25
+ "isSecret": true
26
+ }
27
+ ]
28
+ }
29
+ ]
30
+ }