agentcanary-mcp 1.2.0 → 1.3.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/index.js +31 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -369,6 +369,37 @@ server.tool(
|
|
|
369
369
|
}
|
|
370
370
|
);
|
|
371
371
|
|
|
372
|
+
// --- Tool: get_open_interest (builder+) ---
|
|
373
|
+
// Live derivatives positioning across 43 tracked perps × 21 exchanges.
|
|
374
|
+
// Sourced from coinglass-v2; refreshes ~hourly upstream. Same atom that
|
|
375
|
+
// powers the OPEN INTEREST section of the pulse brief.
|
|
376
|
+
server.tool(
|
|
377
|
+
"get_open_interest",
|
|
378
|
+
"Get cross-exchange open-interest snapshot for crypto perps. Aggregate OI across 43 symbols + top-N by USD size + top-N by absolute 4h Δ% (intraday OI shifters). Useful for agents detecting positioning unwinds, new builds, leveraged crowding. Builder tier or above.",
|
|
379
|
+
{
|
|
380
|
+
view: z.string().optional().describe("View: 'top' (top symbols by OI USD), 'shifters' (top intraday OI movers by 4h Δ%). Omit for full snapshot (aggregate + top + shifters + envelope)."),
|
|
381
|
+
},
|
|
382
|
+
async ({ view }) => {
|
|
383
|
+
const endpoint = view ? `derivatives/oi/${view}` : "derivatives/oi";
|
|
384
|
+
const data = await acFetch(endpoint);
|
|
385
|
+
return { content: [{ type: "text", text: truncate(data) }] };
|
|
386
|
+
}
|
|
387
|
+
);
|
|
388
|
+
|
|
389
|
+
// --- Tool: get_liquidations (builder+) ---
|
|
390
|
+
// 24h aggregate + latest 4h breakdown with long/short USD split, per-side
|
|
391
|
+
// event counts, dominant-direction label. Same atom that powers the
|
|
392
|
+
// Liquidations line of the pulse brief.
|
|
393
|
+
server.tool(
|
|
394
|
+
"get_liquidations",
|
|
395
|
+
"Get crypto perp liquidations. 24h total + latest-4h breakdown with long/short USD split, per-side event counts, long%/short%, and dominant-direction label (long-dominant >=65%, short-dominant <=35%, balanced). Useful for agents detecting forced deleveraging direction. Builder tier or above.",
|
|
396
|
+
{},
|
|
397
|
+
async () => {
|
|
398
|
+
const data = await acFetch("derivatives/liquidations");
|
|
399
|
+
return { content: [{ type: "text", text: truncate(data) }] };
|
|
400
|
+
}
|
|
401
|
+
);
|
|
402
|
+
|
|
372
403
|
// ─── Start ───────────────────────────────────────────────────────
|
|
373
404
|
|
|
374
405
|
await detectTier();
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentcanary-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"mcpName": "io.github.MrCerq/agentcanary",
|
|
5
|
-
"description": "MCP server for AgentCanary market intelligence — briefs, indicators, regime, narratives, predictions, scoring",
|
|
5
|
+
"description": "MCP server for AgentCanary market intelligence — briefs, indicators, regime, narratives, predictions, scoring, plus live derivatives (open interest, liquidations)",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"bin": {
|