cryptoiz-mcp 4.16.0 → 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.
- package/index.js +9 -9
- package/package.json +54 -53
- package/server.json +4 -4
- package/setup.js +0 -0
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
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
|
|
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.16.
|
|
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 = {
|
|
@@ -192,13 +192,13 @@ async function callTool(toolName, args) {
|
|
|
192
192
|
|
|
193
193
|
// Dev mode bypass
|
|
194
194
|
if (DEV_KEY) {
|
|
195
|
-
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 } });
|
|
196
196
|
var devData = await devResp.json();
|
|
197
197
|
return devData;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
// Step 1: Fetch gateway
|
|
201
|
-
var resp1 = await fetch(url);
|
|
200
|
+
// Step 1: Fetch gateway — expect 402 or 200 (free tools)
|
|
201
|
+
var resp1 = await fetch(url, { method: 'POST' });
|
|
202
202
|
|
|
203
203
|
if (resp1.status === 200) {
|
|
204
204
|
return await resp1.json();
|
|
@@ -209,7 +209,7 @@ async function callTool(toolName, args) {
|
|
|
209
209
|
throw new Error('Gateway error ' + resp1.status + ': ' + errText);
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
// Step 2: Parse 402 response
|
|
212
|
+
// Step 2: Parse 402 response — try V2 header first, fallback to body
|
|
213
213
|
var paymentRequirements = null;
|
|
214
214
|
var useV2 = false;
|
|
215
215
|
|
|
@@ -288,7 +288,7 @@ async function callTool(toolName, args) {
|
|
|
288
288
|
var headers2 = {};
|
|
289
289
|
headers2[headerName] = paymentHeader;
|
|
290
290
|
|
|
291
|
-
var resp2 = await fetch(url, { headers: headers2 });
|
|
291
|
+
var resp2 = await fetch(url, { method: 'POST', headers: headers2 });
|
|
292
292
|
|
|
293
293
|
// V2 settle failed? Auto-fallback to V1
|
|
294
294
|
if (resp2.status !== 200 && useV2) {
|
|
@@ -303,7 +303,7 @@ async function callTool(toolName, args) {
|
|
|
303
303
|
var v1FallbackPayload = { signature: fallbackSig };
|
|
304
304
|
var v1FallbackHeader = Buffer.from(JSON.stringify(v1FallbackPayload)).toString('base64');
|
|
305
305
|
|
|
306
|
-
resp2 = await fetch(url, { headers: { 'x-payment': v1FallbackHeader } });
|
|
306
|
+
resp2 = await fetch(url, { method: 'POST', headers: { 'x-payment': v1FallbackHeader } });
|
|
307
307
|
} catch(fallbackErr) {
|
|
308
308
|
console.error('[cryptoiz-mcp] V1 fallback also failed: ' + fallbackErr.message);
|
|
309
309
|
throw new Error('V2 failed (' + v2ErrBody.substring(0, 100) + '), V1 fallback also failed: ' + fallbackErr.message);
|
package/package.json
CHANGED
|
@@ -1,53 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
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
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-07-09/server.schema.json",
|
|
3
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
|
|
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
5
|
"status": "active",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "https://github.com/dadang11/cryptoiz-mcp",
|
|
8
8
|
"source": "github"
|
|
9
9
|
},
|
|
10
|
-
"version": "4.
|
|
10
|
+
"version": "4.16.1",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registry_type": "npm",
|
|
14
14
|
"registry_base_url": "https://registry.npmjs.org",
|
|
15
15
|
"identifier": "cryptoiz-mcp",
|
|
16
|
-
"version": "4.
|
|
16
|
+
"version": "4.16.1",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
},
|
package/setup.js
CHANGED
|
File without changes
|