@cachly-dev/mcp-server 0.8.0 → 0.8.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/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +20 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cachly-dev/mcp-server",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"mcpName": "io.github.cachly-dev/mcp-server",
|
|
5
5
|
"description": "AI memory brain for Claude Code, Cursor, Copilot & Windsurf — persistent sessions, lessons learned, semantic search, team brain. 51 MCP tools.",
|
|
6
6
|
"type": "module",
|
package/src/index.ts
CHANGED
|
@@ -55,7 +55,7 @@ import { Redis } from 'ioredis';
|
|
|
55
55
|
const API_URL = process.env.CACHLY_API_URL ?? 'https://api.cachly.dev';
|
|
56
56
|
const JWT = process.env.CACHLY_JWT ?? '';
|
|
57
57
|
const EMBED_MODEL = process.env.CACHLY_EMBED_MODEL ?? '';
|
|
58
|
-
const CURRENT_VERSION = '0.8.
|
|
58
|
+
const CURRENT_VERSION = '0.8.1';
|
|
59
59
|
/**
|
|
60
60
|
* ┌──────────────────────────────────────────────────────────────────────┐
|
|
61
61
|
* │ EMBEDDING PROVIDER — pluggable, client-side first │
|
|
@@ -5333,6 +5333,25 @@ async function handleTool(name: string, args: Record<string, unknown>): Promise<
|
|
|
5333
5333
|
}
|
|
5334
5334
|
} catch { /* non-critical */ }
|
|
5335
5335
|
|
|
5336
|
+
// ── 🌍 Knowledge Commons — community stats banner ───────────────────────
|
|
5337
|
+
// Fetch syndication stats and show a 1-liner: total lessons + confirms + weekly growth.
|
|
5338
|
+
// Non-fatal: never blocks session start if the API call fails.
|
|
5339
|
+
try {
|
|
5340
|
+
const commonsStats = await apiFetch<{
|
|
5341
|
+
total_lessons: number;
|
|
5342
|
+
total_confirms: number;
|
|
5343
|
+
added_last_7_days: number;
|
|
5344
|
+
}>('/api/v1/syndication/stats');
|
|
5345
|
+
if (commonsStats.total_lessons > 0) {
|
|
5346
|
+
lines.push(
|
|
5347
|
+
`🌍 **Commons:** ${commonsStats.total_lessons.toLocaleString()} lessons · ` +
|
|
5348
|
+
`${commonsStats.total_confirms.toLocaleString()} confirms · ` +
|
|
5349
|
+
`+${commonsStats.added_last_7_days} this week`,
|
|
5350
|
+
);
|
|
5351
|
+
lines.push('');
|
|
5352
|
+
}
|
|
5353
|
+
} catch { /* non-critical — never block session start */ }
|
|
5354
|
+
|
|
5336
5355
|
return lines.join('\n');
|
|
5337
5356
|
}
|
|
5338
5357
|
|