@forgemeshlabs/anomaly-mcp 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 +1 -1
- package/dist/tools.d.ts +22 -0
- package/dist/tools.js +37 -0
- package/package.json +7 -3
- package/server.json +3 -3
package/dist/index.js
CHANGED
package/dist/tools.d.ts
CHANGED
|
@@ -241,5 +241,27 @@ export declare const tools: ({
|
|
|
241
241
|
};
|
|
242
242
|
required?: undefined;
|
|
243
243
|
};
|
|
244
|
+
} | {
|
|
245
|
+
name: string;
|
|
246
|
+
description: string;
|
|
247
|
+
inputSchema: {
|
|
248
|
+
type: "object";
|
|
249
|
+
properties: {
|
|
250
|
+
chain: {
|
|
251
|
+
type: string;
|
|
252
|
+
enum: string[];
|
|
253
|
+
description: string;
|
|
254
|
+
};
|
|
255
|
+
window?: undefined;
|
|
256
|
+
token?: undefined;
|
|
257
|
+
hours?: undefined;
|
|
258
|
+
address?: undefined;
|
|
259
|
+
protocol?: undefined;
|
|
260
|
+
region?: undefined;
|
|
261
|
+
days?: undefined;
|
|
262
|
+
repo?: undefined;
|
|
263
|
+
};
|
|
264
|
+
required?: undefined;
|
|
265
|
+
};
|
|
244
266
|
})[];
|
|
245
267
|
export declare function callTool(name: string, args: Record<string, unknown>): Promise<unknown>;
|
package/dist/tools.js
CHANGED
|
@@ -226,6 +226,35 @@ export const tools = [
|
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
+
},
|
|
230
|
+
// ── Real-time polling endpoints ──────────────────────────────────────────
|
|
231
|
+
{
|
|
232
|
+
name: "mempool_anomaly",
|
|
233
|
+
description: "Real-time mempool anomaly score — detects gas spikes, MEV signals, pending whale swaps, contract deploy bursts, and priority fee wars. Designed for 5-second polling. Returns a story label (e.g. 'MEV Attack', 'Gas Surge', 'Priority Fee War') and anomaly score. Costs $0.01 USDC on Base mainnet.",
|
|
234
|
+
inputSchema: {
|
|
235
|
+
type: "object",
|
|
236
|
+
properties: {
|
|
237
|
+
chain: {
|
|
238
|
+
type: "string",
|
|
239
|
+
enum: ["ethereum", "base"],
|
|
240
|
+
description: "Blockchain (default: ethereum). Only Ethereum and Base have RPC mempool access."
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
name: "depeg_monitor",
|
|
247
|
+
description: "Real-time stablecoin depeg detector — monitors USDC, USDT, DAI prices for micro-deviations from $1.00 peg, spread between stables, and volume spikes. Catches depegs before they become crises. Designed for 1-minute polling. Returns a story label (e.g. 'Single Coin Drift', 'Multi-Stablecoin Crisis', 'Depeg Event') and anomaly score. Costs $0.01 USDC on Base mainnet.",
|
|
248
|
+
inputSchema: {
|
|
249
|
+
type: "object",
|
|
250
|
+
properties: {
|
|
251
|
+
chain: {
|
|
252
|
+
type: "string",
|
|
253
|
+
enum: ["ethereum", "base", "arbitrum"],
|
|
254
|
+
description: "Blockchain (default: ethereum)"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
229
258
|
}
|
|
230
259
|
];
|
|
231
260
|
async function apiGet(path) {
|
|
@@ -333,6 +362,14 @@ export async function callTool(name, args) {
|
|
|
333
362
|
const cfDays = args.days || 7;
|
|
334
363
|
return apiGet(`/api/claude-feature-watch?days=${cfDays}`);
|
|
335
364
|
}
|
|
365
|
+
case "mempool_anomaly": {
|
|
366
|
+
const mpChain = args.chain || "ethereum";
|
|
367
|
+
return apiGet(`/api/mempool-anomaly?chain=${mpChain}`);
|
|
368
|
+
}
|
|
369
|
+
case "depeg_monitor": {
|
|
370
|
+
const dpChain = args.chain || "ethereum";
|
|
371
|
+
return apiGet(`/api/depeg-monitor?chain=${dpChain}`);
|
|
372
|
+
}
|
|
336
373
|
default:
|
|
337
374
|
return { error: `Unknown tool: ${name}` };
|
|
338
375
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forgemeshlabs/anomaly-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"mcpName": "io.github.forgemeshlabs/anomaly-mcp",
|
|
5
|
-
"description": "Multi-domain
|
|
5
|
+
"description": "Multi-domain real-time anomaly detection MCP server. Mempool (5s polling), stablecoin depeg (1min polling), blockchain, aviation, and GitHub anomalies via x402 micropayments.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
8
|
"anomaly-mcp": "dist/index.js"
|
|
@@ -40,7 +40,11 @@
|
|
|
40
40
|
"forgemesh",
|
|
41
41
|
"usdc",
|
|
42
42
|
"nasa",
|
|
43
|
-
"sequenceminer"
|
|
43
|
+
"sequenceminer",
|
|
44
|
+
"mempool",
|
|
45
|
+
"stablecoin",
|
|
46
|
+
"depeg",
|
|
47
|
+
"realtime"
|
|
44
48
|
],
|
|
45
49
|
"author": "forgemeshlabs",
|
|
46
50
|
"license": "MIT",
|
package/server.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
3
|
"name": "io.github.forgemeshlabs/anomaly-mcp",
|
|
4
|
-
"description": "Multi-domain
|
|
4
|
+
"description": "Multi-domain real-time anomaly detection — mempool, stablecoin depeg, blockchain, aviation, and GitHub. NASA-derived sequence mining via x402 micropayments.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/forgemeshlabs/anomaly-mcp",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.5.0",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@forgemeshlabs/anomaly-mcp",
|
|
14
|
-
"version": "0.
|
|
14
|
+
"version": "0.5.0",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|