mcp-server-madeonsol 0.4.0 → 0.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/dist/index.js +25 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -157,6 +157,29 @@ function registerTools(server) {
|
|
|
157
157
|
}, readOnlyAnnotations, async ({ period, min_kols, limit }) => ({
|
|
158
158
|
content: [{ type: "text", text: await query("/api/x402/kol/tokens/hot", { period, min_kols, limit }) }],
|
|
159
159
|
}));
|
|
160
|
+
server.tool("madeonsol_kol_pnl", "Deep per-wallet PnL breakdown — realized PnL, win rate, profit factor, max drawdown, daily equity curve, closed/open positions. BASIC: summary only. PRO: + curve + closed. ULTRA: + open positions.", {
|
|
161
|
+
wallet: z.string().describe("KOL wallet address (base58)"),
|
|
162
|
+
period: z.enum(["7d", "30d", "90d", "180d"]).default("30d").describe("Time period for PnL calculation"),
|
|
163
|
+
}, readOnlyAnnotations, async ({ wallet, period }) => {
|
|
164
|
+
const hasRestAuth = authMode === "madeonsol" || authMode === "rapidapi";
|
|
165
|
+
if (hasRestAuth) {
|
|
166
|
+
const headers = { ...apiKeyHeaders() };
|
|
167
|
+
const res = await fetch(`${BASE_URL}/api/v1/kol/${wallet}/pnl?period=${period}`, { headers });
|
|
168
|
+
if (!res.ok) {
|
|
169
|
+
const body = await res.text().catch(() => "");
|
|
170
|
+
return { content: [{ type: "text", text: `Error ${res.status}: ${body}` }] };
|
|
171
|
+
}
|
|
172
|
+
return { content: [{ type: "text", text: JSON.stringify(await res.json(), null, 2) }] };
|
|
173
|
+
}
|
|
174
|
+
return { content: [{ type: "text", text: "KOL PnL requires API key or RapidAPI key auth." }] };
|
|
175
|
+
});
|
|
176
|
+
server.tool("madeonsol_kol_trending_tokens", "Tokens ranked by KOL buy volume — pure capital-flow signal. Sub-hour periods (5m/15m/30m) require PRO/ULTRA.", {
|
|
177
|
+
period: z.enum(["5m", "15m", "30m", "1h", "2h", "4h", "12h"]).default("1h").describe("Time window"),
|
|
178
|
+
min_kols: z.number().min(1).max(20).default(1).describe("Minimum KOL buyers"),
|
|
179
|
+
limit: z.number().min(1).max(50).default(20).describe("Number of trending tokens to return"),
|
|
180
|
+
}, readOnlyAnnotations, async ({ period, min_kols, limit }) => ({
|
|
181
|
+
content: [{ type: "text", text: await query("/api/x402/kol/tokens/trending", { period, min_kols, limit }) }],
|
|
182
|
+
}));
|
|
160
183
|
server.tool("madeonsol_discovery", "List all available MadeOnSol API endpoints with prices and parameter docs. Free, no auth required.", {}, { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false }, async () => {
|
|
161
184
|
const res = await fetch(new URL("/api/x402", BASE_URL).toString());
|
|
162
185
|
const data = await res.json();
|
|
@@ -268,6 +291,8 @@ async function main() {
|
|
|
268
291
|
{ name: "madeonsol_kol_timing", description: "KOL entry/exit timing profile. Pro/Ultra." },
|
|
269
292
|
{ name: "madeonsol_deployer_trajectory", description: "Deployer skill curve — streaks, trend. Pro/Ultra." },
|
|
270
293
|
{ name: "madeonsol_kol_hot_tokens", description: "KOL momentum tokens — accelerating buy interest." },
|
|
294
|
+
{ name: "madeonsol_kol_pnl", description: "Deep per-wallet PnL: equity curve, risk metrics, positions." },
|
|
295
|
+
{ name: "madeonsol_kol_trending_tokens", description: "Tokens ranked by KOL buy volume (5m–12h windows)." },
|
|
271
296
|
{ name: "madeonsol_discovery", description: "List all available endpoints with prices. Free." },
|
|
272
297
|
{ name: "madeonsol_create_webhook", description: "Register a webhook for real-time push notifications. Pro/Ultra." },
|
|
273
298
|
{ name: "madeonsol_list_webhooks", description: "List your registered webhooks. Pro/Ultra." },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-server-madeonsol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"mcpName": "io.github.lambopoewert/madeonsol",
|
|
5
5
|
"description": "MCP server for MadeOnSol Solana KOL intelligence API \u00e2\u20ac\u201d use from Claude, Cursor, or any MCP client",
|
|
6
6
|
"type": "module",
|