mpp32-mcp-server 1.4.1 → 1.5.0
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/CHANGELOG.md +34 -0
- package/README.md +6 -0
- package/dist/index.js +60 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,40 @@ All notable changes to `mpp32-mcp-server` are documented here. The format
|
|
|
4
4
|
follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the
|
|
5
5
|
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [1.5.0] - 2026-06-01
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
* **`try_solana_token_intelligence_free` MCP tool — zero-friction preview.**
|
|
12
|
+
Hits the backend `/api/intelligence/demo` endpoint. Returns the same alpha
|
|
13
|
+
score, rug risk, whale activity, smart money signals, pump probability, and
|
|
14
|
+
market data payload as the paid endpoint, but requires no `MPP32_AGENT_KEY`
|
|
15
|
+
and no Solana private key. Rate-limited to 10 calls/minute per IP. Intended
|
|
16
|
+
as the first call new users (and Claude itself) make when evaluating MPP32 —
|
|
17
|
+
see the data quality, THEN configure paid access. This closes the
|
|
18
|
+
conversion-funnel gap where new agents previously hit a 402 wall on their
|
|
19
|
+
very first call before ever seeing the oracle's output.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
* **`get_solana_token_intelligence` description updated** to point new users
|
|
24
|
+
with no keys configured at `try_solana_token_intelligence_free` first.
|
|
25
|
+
* **`get_mpp32_diagnostics` output updated** to mention the free demo when
|
|
26
|
+
the user is not yet ready to pay end-to-end.
|
|
27
|
+
|
|
28
|
+
### Backend (server-side compatibility, no client action required)
|
|
29
|
+
|
|
30
|
+
* MPP32 backend now defaults to PayAI (`https://facilitator.payai.network`)
|
|
31
|
+
as the x402 facilitator, with Coinbase CDP as a documented fallback. PayAI
|
|
32
|
+
is the only public facilitator that supports Solana **mainnet**
|
|
33
|
+
(`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`); the previous default
|
|
34
|
+
(`x402.org/facilitator`) is testnet/devnet-only and was silently failing
|
|
35
|
+
every mainnet settlement. The backend now refuses to boot in production
|
|
36
|
+
if no configured facilitator supports the configured network — making this
|
|
37
|
+
exact regression class impossible. No MCP client change required: the
|
|
38
|
+
signer's network detection (`x402-signers.ts`) and protocol handling are
|
|
39
|
+
unchanged.
|
|
40
|
+
|
|
7
41
|
## [1.4.0] - 2026-05-21
|
|
8
42
|
|
|
9
43
|
### Added
|
package/README.md
CHANGED
|
@@ -22,6 +22,12 @@ One install. Pay any x402 endpoint on Solana from your agent. Browse a federated
|
|
|
22
22
|
|
|
23
23
|
The MCP server ships signers for both Solana and Base out of the box. When a paid call returns a 402, the server picks the network that matches the key you configured and settles the payment in one round trip.
|
|
24
24
|
|
|
25
|
+
## Try it free first (no keys, no setup)
|
|
26
|
+
|
|
27
|
+
The MCP server exposes a **`try_solana_token_intelligence_free`** tool that returns the full Intelligence Oracle payload (alpha score, rug risk, whale activity, smart money signals, 24h pump probability, market data) for any Solana token with **zero configuration** — no `MPP32_AGENT_KEY`, no Solana key, no payment. Rate-limited to 10 calls/minute per IP. Use it to evaluate the oracle, then switch to `get_solana_token_intelligence` for unlimited attributed usage at $0.008/query (M32 holders save up to 40%).
|
|
28
|
+
|
|
29
|
+
Just install the server and ask your agent: _"Use mpp32 to get a free intelligence preview for SOL."_
|
|
30
|
+
|
|
25
31
|
## Why this beats running your own integrations
|
|
26
32
|
|
|
27
33
|
Most agent stacks stop at "the model can call a function." That works until the function costs money. The moment your agent needs premium data, a paid model, a trading signal, or a token analytics call, you are back to building accounts, storing API keys, watching budgets, and writing custom 402 handlers for every provider.
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
3
3
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { signX402Payment } from "./x402-signers.js";
|
|
6
|
-
const SERVER_VERSION = "1.
|
|
6
|
+
const SERVER_VERSION = "1.5.0";
|
|
7
7
|
// ── Env loading: trim and sanitize aggressively ─────────────────────────────
|
|
8
8
|
// Copy-paste from Claude Desktop / Cursor / Windsurf JSON config UIs frequently
|
|
9
9
|
// adds trailing \n, \r, NBSP, BOM, or wraps the value in literal quotes. Any
|
|
@@ -252,7 +252,7 @@ server.tool("get_mpp32_diagnostics", "Report what the mpp32-mcp-server detected
|
|
|
252
252
|
`- x402 (USDC on Solana) payment: ${SOLANA_PRIVATE_KEY ? "yes" : "no — set MPP32_SOLANA_PRIVATE_KEY"}`,
|
|
253
253
|
`- x402 (USDC on Base/EVM) payment: ${PRIVATE_KEY ? "yes" : "no — set MPP32_PRIVATE_KEY"}`,
|
|
254
254
|
``,
|
|
255
|
-
`**Ready to pay end-to-end:** ${readyToPay ? "YES — try `get_solana_token_intelligence` with token=\"M32\" to confirm." : "NO — see the missing items above."}`,
|
|
255
|
+
`**Ready to pay end-to-end:** ${readyToPay ? "YES — try `get_solana_token_intelligence` with token=\"M32\" to confirm." : "NO — see the missing items above. Meanwhile, you can still call `try_solana_token_intelligence_free` (10/min/IP, no keys required) to evaluate the oracle."}`,
|
|
256
256
|
``,
|
|
257
257
|
`**If a variable shows NOT SET but you set it in claude_desktop_config.json:**`,
|
|
258
258
|
`1. Confirm the file path Claude Desktop actually reads:`,
|
|
@@ -450,7 +450,7 @@ server.tool("call_mpp32_endpoint", "Call any HTTP-callable service in the MPP32
|
|
|
450
450
|
return await callViaLegacyProxy(slug, method, parsedBody, query, path);
|
|
451
451
|
});
|
|
452
452
|
// ── Tool 3: get_solana_token_intelligence ───────────────────────────────────
|
|
453
|
-
server.tool("get_solana_token_intelligence", "Get real-time Solana token intelligence from the MPP32 Intelligence Oracle. Returns alpha score (0-100), rug risk assessment, whale activity, smart money signals, 24h pump probability, projected ROI ranges, and aggregated DexScreener/Jupiter/CoinGecko market data. Costs $0.008 per query, paid automatically via x402 (USDC on Solana) or Tempo (pathUSD on Eth L2). M32 token holders receive up to 40% discount once their wallet is signature-verified. Set MPP32_AGENT_KEY in config to attribute calls to your dashboard.", {
|
|
453
|
+
server.tool("get_solana_token_intelligence", "Get real-time Solana token intelligence from the MPP32 Intelligence Oracle. Returns alpha score (0-100), rug risk assessment, whale activity, smart money signals, 24h pump probability, projected ROI ranges, and aggregated DexScreener/Jupiter/CoinGecko market data. Costs $0.008 per query, paid automatically via x402 (USDC on Solana) or Tempo (pathUSD on Eth L2). M32 token holders receive up to 40% discount once their wallet is signature-verified. Set MPP32_AGENT_KEY in config to attribute calls to your dashboard. **New users with no keys configured: call `try_solana_token_intelligence_free` first** — it returns the same payload, rate-limited to 10/min, no payment or key required.", {
|
|
454
454
|
token: z
|
|
455
455
|
.string()
|
|
456
456
|
.describe("Solana token mint address or ticker symbol (e.g. SOL, BONK, JUP, M32, or full base58 address)."),
|
|
@@ -466,6 +466,63 @@ server.tool("get_solana_token_intelligence", "Get real-time Solana token intelli
|
|
|
466
466
|
// Legacy path — direct call to /api/intelligence with manual 402 handling.
|
|
467
467
|
return await legacyIntelligenceCall(token, walletAddress);
|
|
468
468
|
});
|
|
469
|
+
// ── Tool 3b: Free Intelligence Demo ────────────────────────────────────────
|
|
470
|
+
// No payment, no key. Hits /api/intelligence/demo, which is rate-limited per
|
|
471
|
+
// IP. Intended as the first call new users (and Claude itself) make when
|
|
472
|
+
// trying MPP32 — they see real alpha scores and signals BEFORE encountering
|
|
473
|
+
// any payment wall. This is the conversion funnel fix: agents today bounce
|
|
474
|
+
// off the 402, so we let them taste the product first.
|
|
475
|
+
server.tool("try_solana_token_intelligence_free", "FREE preview of the MPP32 Intelligence Oracle. No payment, no agent key, no Solana private key required. Returns the SAME payload as the paid endpoint (alpha score, rug risk, whale activity, smart money signals, pump probability, market data) for any Solana token. Rate-limited to 10 calls/minute per IP. Use this to evaluate the data quality. Once you're convinced, set MPP32_AGENT_KEY + a payment key and switch to `get_solana_token_intelligence` for unlimited, attributed usage and M32-holder discounts.", {
|
|
476
|
+
token: z
|
|
477
|
+
.string()
|
|
478
|
+
.describe("Solana token mint address or ticker symbol (e.g. SOL, BONK, JUP, M32, or full base58 address)."),
|
|
479
|
+
}, async ({ token }) => {
|
|
480
|
+
try {
|
|
481
|
+
const res = await fetchWithTimeout(`${API_URL}/api/intelligence/demo`, {
|
|
482
|
+
method: "POST",
|
|
483
|
+
headers: { "Content-Type": "application/json" },
|
|
484
|
+
body: JSON.stringify({ token }),
|
|
485
|
+
});
|
|
486
|
+
const text = await res.text();
|
|
487
|
+
let formatted;
|
|
488
|
+
try {
|
|
489
|
+
formatted = JSON.stringify(JSON.parse(text), null, 2);
|
|
490
|
+
}
|
|
491
|
+
catch {
|
|
492
|
+
formatted = text;
|
|
493
|
+
}
|
|
494
|
+
if (res.status === 429) {
|
|
495
|
+
return {
|
|
496
|
+
content: [{
|
|
497
|
+
type: "text",
|
|
498
|
+
text: `Demo rate limit reached (10 calls/minute per IP). Wait a minute and retry, or set up paid access for unlimited queries:\n\n1. Get an agent key: ${API_URL}/agent-console\n2. Add MPP32_AGENT_KEY + MPP32_SOLANA_PRIVATE_KEY to your MCP config\n3. Call \`get_solana_token_intelligence\` instead — $0.008/query, M32 holders save up to 40%.`,
|
|
499
|
+
}],
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
if (!res.ok) {
|
|
503
|
+
return {
|
|
504
|
+
content: [{
|
|
505
|
+
type: "text",
|
|
506
|
+
text: `Demo returned HTTP ${res.status}:\n\n\`\`\`json\n${formatted}\n\`\`\``,
|
|
507
|
+
}],
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
return {
|
|
511
|
+
content: [{
|
|
512
|
+
type: "text",
|
|
513
|
+
text: `**MPP32 Intelligence Oracle (FREE DEMO)** — \`${token}\`\n\n${formatted}\n\n---\n_Demo result. Same payload as the paid endpoint. Rate-limited to 10/min/IP. For unlimited usage and dashboard attribution, set MPP32_AGENT_KEY (get one at ${API_URL}/agent-console) and use \`get_solana_token_intelligence\`._`,
|
|
514
|
+
}],
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
catch (err) {
|
|
518
|
+
return {
|
|
519
|
+
content: [{
|
|
520
|
+
type: "text",
|
|
521
|
+
text: `Network error reaching ${API_URL}: ${err instanceof Error ? err.message : String(err)}`,
|
|
522
|
+
}],
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
});
|
|
469
526
|
// ── Tool 4: M32-gated Whale Tracker ───────────────────────────────────────
|
|
470
527
|
server.tool("get_m32_whale_tracker", "M32-gated whale analysis for any Solana token. Returns top 20 holders, concentration risk, holder distribution, and buy/sell pressure. Requires the caller to hold 1,000,000+ M32 tokens (balance verified on-chain via X-Wallet-Address header). Free for qualifying holders — no payment required. Returns 403 if the wallet holds insufficient M32.", {
|
|
471
528
|
token: z
|
package/package.json
CHANGED