cryptoiz-mcp 4.16.13 → 4.16.15

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 CryptoIZ (https://cryptoiz.org)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,145 @@
1
1
  # cryptoiz-mcp
2
2
 
3
- CryptoIZ MCP Server - Solana DEX whale intelligence via Claude Desktop.
3
+ [![npm version](https://img.shields.io/npm/v/cryptoiz-mcp.svg)](https://www.npmjs.com/package/cryptoiz-mcp)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+ [![x402scan](https://img.shields.io/badge/x402scan-listed-blue)](https://x402scan.com/server/cbd8fff5-d636-4331-b22b-3291717a4e9e)
6
+ [![MCP Marketplace](https://img.shields.io/badge/MCP_Marketplace-listed-green)](https://mcp-marketplace.io/server/io-github-dadang11-cryptoiz)
4
7
 
5
- Setup: https://cryptoiz.org/McpLanding
8
+ **CryptoIZ MCP Server** — Solana DEX whale intelligence as a Model Context Protocol (MCP) server. 9 tools (7 paid + 2 free) for Claude Desktop, Cursor, Codex, and any agentcash-compatible client. Native Solana via x402 V2 + Dexter facilitator (gas-sponsored — no SOL needed, only USDC).
9
+
10
+ ## ⚡ Recommended Install (1 line)
11
+
12
+ ```bash
13
+ npx agentcash add https://mcp.cryptoiz.org
14
+ ```
15
+
16
+ That's it. agentcash auto-generates a Solana wallet at `~/.agentcash/wallet.json` (no private key in your Claude config). Fund with $1-5 USDC via `npx agentcash fund` and you're ready.
17
+
18
+ **Why agentcash:**
19
+ - ✅ No private key in Claude Desktop config
20
+ - ✅ Wallet auto-generated and isolated
21
+ - ✅ Gas sponsored by Dexter (zero SOL needed)
22
+ - ✅ Update tools without reinstalling client
23
+ - ✅ One wallet across ALL x402 services (CryptoIZ, HYRE, etc.)
24
+
25
+ ## 5 Specialized Sub-Agents
26
+
27
+ Pick what you need:
28
+
29
+ ```bash
30
+ npx agentcash add https://mcp.cryptoiz.org/agents/alpha # Whale alpha signals only
31
+ npx agentcash add https://mcp.cryptoiz.org/agents/btc # BTC regime + futures
32
+ npx agentcash add https://mcp.cryptoiz.org/agents/phases # Accumulation/Neutral/Distribution
33
+ npx agentcash add https://mcp.cryptoiz.org/agents/divergence # Divergence patterns
34
+ npx agentcash add https://mcp.cryptoiz.org/agents/deep-research # Token deep-dive combo
35
+ ```
36
+
37
+ ## Tools & Pricing
38
+
39
+ | Tool | Cost | Description |
40
+ |---|---|---|
41
+ | `get_whale_alpha` | $0.05 USDC | Top 20 alpha signals — whale/dolphin accumulation, entry timing |
42
+ | `get_whale_divergence` | $0.02 USDC | Hidden/breakout/classic divergence signals (4h/1d) |
43
+ | `get_whale_accumulation` | $0.02 USDC | Tokens with smart money accumulating |
44
+ | `get_whale_neutral` | $0.02 USDC | Tokens in transition phase |
45
+ | `get_whale_distribution` | $0.02 USDC | Tokens with whales selling (exit signal) |
46
+ | `get_btc_regime` | $0.01 USDC | BTC macro regime + sentiment + technicals |
47
+ | `get_btc_futures_signal` | $0.03 USDC | BTC futures multi-timeframe signal (54% WR) |
48
+ | `get_token_ca` | FREE | Look up Solana contract address by name |
49
+ | `get_status` | FREE | Server status, available tools, pricing |
50
+
51
+ All payments settle on Solana mainnet via [Dexter facilitator](https://x402.dexter.cash). Recipient: `DsKmdkYx49Xc1WhqMUAztwhdYPTqieyC98VmnnJdgpXX`.
52
+
53
+ ## Legacy Setup (Advanced — not recommended)
54
+
55
+ For users who prefer self-custody with their own Solana wallet:
56
+
57
+ ### 1. Install the package globally
58
+
59
+ ```bash
60
+ npm install -g cryptoiz-mcp
61
+ ```
62
+
63
+ ### 2. Get a Solana wallet private key (base58)
64
+
65
+ You need a Solana wallet with at least **$1 USDC** on mainnet. **No SOL needed** — Dexter sponsors all gas. Recommended: dedicated wallet, NOT your main wallet. Phantom: Settings > Security > Export Private Key.
66
+
67
+ ### 3. Edit Claude Desktop config
68
+
69
+ File: `%APPDATA%\Claude\claude_desktop_config.json` (Windows) or `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS).
70
+
71
+ ```json
72
+ {
73
+ "mcpServers": {
74
+ "cryptoiz": {
75
+ "command": "C:\\Program Files\\nodejs\\node.exe",
76
+ "args": ["C:\\Users\\<YOU>\\AppData\\Roaming\\npm\\node_modules\\cryptoiz-mcp\\index.js"],
77
+ "env": {
78
+ "SVM_PRIVATE_KEY": "<your_base58_solana_private_key>"
79
+ }
80
+ }
81
+ }
82
+ }
83
+ ```
84
+
85
+ ### 4. Restart Claude Desktop
86
+
87
+ Then ask Claude: `get cryptoiz status` — you should see version `v4.16.14` and the tool list.
88
+
89
+ ## Security
90
+
91
+ - **agentcash flow** (recommended): private key auto-generated and isolated, never in Claude config
92
+ - **Gas-sponsored**: Dexter facilitator pays all gas (you only pay USDC)
93
+ - **Server-side validation**: every payment verified via Dexter `/settle` before serving data
94
+ - **x402 V2 spec compliant**: open standard, no custom protocol
95
+ - **No tracking**: only on-chain transaction signature is recorded for replay protection
96
+ - **Dedicated wallet recommended** for legacy npm install (don't use your main wallet)
97
+
98
+ ## Listed at
99
+
100
+ - [MCP Marketplace](https://mcp-marketplace.io/server/io-github-dadang11-cryptoiz)
101
+ - [x402scan](https://x402scan.com/server/cbd8fff5-d636-4331-b22b-3291717a4e9e) — 94+ tx, $2.80+ volume
102
+ - [Official MCP Registry](https://github.com/modelcontextprotocol/registry)
103
+ - MPPscan (pending)
104
+
105
+ ## Architecture
106
+
107
+ ```
108
+ Claude Desktop / Cursor / Codex
109
+ │ (MCP)
110
+
111
+ agentcash CLI (or cryptoiz-mcp legacy npm)
112
+ │ (HTTP)
113
+
114
+ mcp.cryptoiz.org gateway (Cloudflare Worker + Supabase Edge Function)
115
+ │ (POST /settle)
116
+
117
+ Dexter facilitator (x402.dexter.cash)
118
+ │ (signs + broadcasts)
119
+
120
+ Solana mainnet
121
+ ```
122
+
123
+ ## Troubleshooting
124
+
125
+ ### "Transaction simulation failed"
126
+ Update to latest: `npx agentcash add https://mcp.cryptoiz.org` (or `npm install -g cryptoiz-mcp@latest` for legacy).
127
+
128
+ ### "Server disconnected" on Windows
129
+ Use absolute paths in Claude config (legacy npm only). agentcash flow doesn't have this issue.
130
+
131
+ ### Update notifications keep showing
132
+ Run `npm install -g cryptoiz-mcp@latest`, force-kill all `node.exe` processes via Task Manager, then restart Claude Desktop. Or switch to agentcash for auto-updates.
133
+
134
+ ## Links
135
+
136
+ - **Platform**: https://cryptoiz.org
137
+ - **Setup guide**: https://cryptoiz.org/McpLanding
138
+ - **Twitter**: [@cryptoiz_IDN](https://twitter.com/cryptoiz_IDN)
139
+ - **Telegram**: https://t.me/agus_artemiss
140
+ - **MCP Marketplace**: https://mcp-marketplace.io/server/io-github-dadang11-cryptoiz
141
+ - **x402scan**: https://x402scan.com/server/mcp.cryptoiz.org
142
+
143
+ ## License
144
+
145
+ MIT © CryptoIZ
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
- var VERSION = 'v4.16.13';
2
+ var VERSION = 'v4.16.15';
3
3
  var GATEWAY = 'https://rehqwsypjnjirhuiapqh.supabase.co/functions/v1/mcp-x402-gateway';
4
4
  // FIX v4.16.12: route ALL paid tools to gateway. Per-tool endpoints (mcp-alpha-scanner etc.)
5
5
  // have stale hardcoded fee payer that breaks after Dexter key rotation. Gateway has dynamic
@@ -165,7 +165,33 @@ function clientHeaders(extra) {
165
165
  return h;
166
166
  }
167
167
 
168
+ // v4.16.14: input validation per tool — defense in depth, server-side double-validates.
169
+ function validateArgs(toolName, args) {
170
+ if (args == null) return {}; // Empty args ok
171
+ if (typeof args !== 'object' || Array.isArray(args)) {
172
+ throw new Error('Invalid args: expected object, got ' + typeof args);
173
+ }
174
+ var clean = {};
175
+ if (toolName === 'get_whale_divergence') {
176
+ if (args.timeframe != null) {
177
+ if (typeof args.timeframe !== 'string') throw new Error('timeframe must be string');
178
+ if (args.timeframe !== '4h' && args.timeframe !== '1d') throw new Error("timeframe must be '4h' or '1d'");
179
+ clean.timeframe = args.timeframe;
180
+ }
181
+ } else if (toolName === 'get_token_ca') {
182
+ if (args.name == null) throw new Error('name is required for get_token_ca');
183
+ if (typeof args.name !== 'string') throw new Error('name must be string');
184
+ var trimmed = args.name.trim();
185
+ if (trimmed.length < 1 || trimmed.length > 64) throw new Error('name length must be 1-64 chars');
186
+ if (!/^[a-zA-Z0-9 _\-\$\.\u00c0-\uffff]+$/.test(trimmed)) throw new Error('name contains invalid chars');
187
+ clean.name = trimmed;
188
+ }
189
+ // Other tools accept no args — anything passed is silently dropped.
190
+ return clean;
191
+ }
192
+
168
193
  async function callTool(toolName, args) {
194
+ args = validateArgs(toolName, args);
169
195
  var queryParts = ['tool=' + toolName];
170
196
  if (toolName === 'get_whale_divergence' && args && args.timeframe) queryParts.push('tf=' + args.timeframe);
171
197
  if (toolName === 'get_token_ca' && args && args.name) queryParts.push('name=' + encodeURIComponent(args.name));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cryptoiz-mcp",
3
- "version": "4.16.13",
4
- "description": "CryptoIZ MCP Server - Solana DEX whale intelligence via Claude Desktop with x402 USDC micropayments",
3
+ "version": "4.16.15",
4
+ "description": "CryptoIZ MCP Server - Solana DEX whale intelligence (alpha, divergence, accumulation, BTC regime). Recommended install: npx agentcash add https://mcp.cryptoiz.org. x402 V2 + Dexter gas-sponsored payments.",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
7
7
  "bin": {
@@ -15,7 +15,7 @@
15
15
  "README.md"
16
16
  ],
17
17
  "dependencies": {
18
- "@modelcontextprotocol/sdk": "^1.0.4",
18
+ "@modelcontextprotocol/sdk": "^1.29.0",
19
19
  "@solana/web3.js": "^1.95.8",
20
20
  "bs58": "^6.0.0"
21
21
  },
@@ -27,5 +27,23 @@
27
27
  "repository": {
28
28
  "type": "git",
29
29
  "url": "git+https://github.com/dadang11/cryptoiz-mcp.git"
30
+ },
31
+ "keywords": [
32
+ "mcp",
33
+ "solana",
34
+ "whale-tracking",
35
+ "alpha-scanner",
36
+ "x402",
37
+ "dexter",
38
+ "agentcash",
39
+ "defi",
40
+ "smart-money",
41
+ "btc-regime",
42
+ "divergence",
43
+ "accumulation"
44
+ ],
45
+ "homepage": "https://cryptoiz.org/McpLanding",
46
+ "bugs": {
47
+ "url": "https://github.com/dadang11/cryptoiz-mcp/issues"
30
48
  }
31
- }
49
+ }
package/setup.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
- var VERSION = 'v4.16.7';
2
+ var VERSION = 'v4.16.15';
3
3
  var fs = require('fs');
4
4
  var os = require('os');
5
5
  var path = require('path');