@cachly-dev/mcp-server 0.10.79 → 0.10.81
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/README.md +12 -1
- package/dist/src/handlers/brain.js +22 -1
- package/dist/src/handlers/brain.js.map +1 -1
- package/dist/src/handlers/share.d.ts +3 -1
- package/dist/src/handlers/share.js +102 -0
- package/dist/src/handlers/share.js.map +1 -1
- package/dist/src/index.js +17 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/starter-corpus.d.ts +28 -0
- package/dist/src/starter-corpus.js +165 -0
- package/dist/src/starter-corpus.js.map +1 -0
- package/dist/src/tools.d.ts +28 -0
- package/dist/src/tools.js +19 -0
- package/dist/src/tools.js.map +1 -1
- package/package.json +2 -1
- package/server.json +3 -3
package/README.md
CHANGED
|
@@ -239,6 +239,7 @@ npx @cachly-dev/mcp-server@latest setup # Wire up all your AI editors (1–5
|
|
|
239
239
|
npx @cachly-dev/mcp-server@latest health # Check token, API, editors, git hook
|
|
240
240
|
npx @cachly-dev/mcp-server@latest digest # Weekly Brain summary — shareable
|
|
241
241
|
npx @cachly-dev/mcp-server@latest share # Generate a shareable stats card + tweet
|
|
242
|
+
npx @cachly-dev/mcp-server@latest publish # Publish your Brain as an importable link (--public)
|
|
242
243
|
npx @cachly-dev/mcp-server@latest badge # Get a live README badge for your Brain
|
|
243
244
|
npx @cachly-dev/mcp-server@latest invite # Invite a teammate to share your Brain
|
|
244
245
|
npx @cachly-dev/mcp-server@latest index . # Index a project's code into the Brain (CI-friendly)
|
|
@@ -251,7 +252,7 @@ npx @cachly-dev/mcp-server@latest learn-git # Auto-learn lessons from recent git
|
|
|
251
252
|
|
|
252
253
|
---
|
|
253
254
|
|
|
254
|
-
## MCP Tools (
|
|
255
|
+
## MCP Tools (113 total)
|
|
255
256
|
|
|
256
257
|
### 🧠 Session & Memory (most used)
|
|
257
258
|
|
|
@@ -289,6 +290,16 @@ npx @cachly-dev/mcp-server@latest learn-git # Auto-learn lessons from recent git
|
|
|
289
290
|
| `memory_consolidate` | Detect contradictions, merge duplicates, expire stale lessons |
|
|
290
291
|
| `ckg_inspect` | Inspect the causal graph around any concept |
|
|
291
292
|
|
|
293
|
+
### 🌐 Shareable & Public Brains
|
|
294
|
+
|
|
295
|
+
| Tool | What it does |
|
|
296
|
+
|------|-------------|
|
|
297
|
+
| **`brain_seed_starter`** | Seed 16 universal lessons so your **first** `smart_recall` hits — auto-runs on a fresh repo |
|
|
298
|
+
| **`brain_share`** | Export a Brain snapshot as a shareable link (public or unlisted) |
|
|
299
|
+
| **`brain_import`** | Import any shared Brain into yours — `topic_prefix`, `min_confidence`, `dry_run` |
|
|
300
|
+
| `brain_share_list` / `brain_unshare` | List your shares · revoke a share (link goes dead) |
|
|
301
|
+
| **`brain_discover`** | Search the Brain marketplace for ready-made knowledge bases |
|
|
302
|
+
|
|
292
303
|
### 🌍 Knowledge Commons · ⚙️ Infrastructure · 📋 Roadmap
|
|
293
304
|
|
|
294
305
|
| Tool | What it does |
|
|
@@ -7,8 +7,24 @@ import { keywordSearch, tokenize, splitMultiQuery, levenshtein, indexVocab as _i
|
|
|
7
7
|
import { rerankByQuality } from '../rerank.js';
|
|
8
8
|
import { computeEmbedding, hasEmbedProvider } from '../embeddings.js';
|
|
9
9
|
// ── Changelog (shown once per version in session_start) ──────────────────────
|
|
10
|
-
const MCP_VERSION = '0.10.
|
|
10
|
+
const MCP_VERSION = '0.10.81';
|
|
11
11
|
const WHATS_NEW = {
|
|
12
|
+
'0.10.81': [
|
|
13
|
+
`⏱️ **Onboarding-Bench — time-to-first-recall, now measured**`,
|
|
14
|
+
` 📐 \`npm run bench:onboarding\` — cold (empty) vs seeded (starter) first-query hit rate via the real search engine`,
|
|
15
|
+
` 📊 Result: first-query hit@1 **0% → 87.5%**, hit@3 **0% → 100%**, MRR **0% → 93.8%**`,
|
|
16
|
+
` 🛡️ CI-defended in \`onboarding-bench.test.ts\` (cold must answer 0%, seeded thresholds enforced)`,
|
|
17
|
+
` 📋 \`PLAN-DASHBOARD.md\` — full build spec for the external Team-Knowledge-Reuse dashboard (separate repo)`,
|
|
18
|
+
],
|
|
19
|
+
'0.10.80': [
|
|
20
|
+
`🌱 **Starter corpus — first recall in seconds, not sessions**`,
|
|
21
|
+
` 📚 \`brain_seed_starter(instance_id)\` — seed 16 curated universal lessons (Docker cache, JWT skew, K8s OOM, N+1, cache stampede…)`,
|
|
22
|
+
` 🚀 Auto-seeds on first session when git history is empty/shallow — your first \`smart_recall\` returns a real hit`,
|
|
23
|
+
` 🛡️ Tagged \`source:"starter"\`, idempotent, never overrides your own lessons`,
|
|
24
|
+
` ⏱️ Directly attacks time-to-first-recall (<2 min goal); stamps \`born_at\` on seed`,
|
|
25
|
+
` 🧪 18 new tests: seeding, idempotency, topic_filter, force, user-lesson protection`,
|
|
26
|
+
` 📊 113 MCP tools`,
|
|
27
|
+
],
|
|
12
28
|
'0.10.79': [
|
|
13
29
|
`🌐 **Brain Marketplace — full shareable Brain lifecycle**`,
|
|
14
30
|
` 📋 \`brain_share_list(instance_id)\` — see all your public shares with lesson counts + share IDs`,
|
|
@@ -1090,6 +1106,11 @@ export async function handleBrainTool(name, args, getConnection, apiFetch) {
|
|
|
1090
1106
|
lines.push(' • End each session → `session_end(summary="What I did")` — auto-learns from git commits');
|
|
1091
1107
|
lines.push(' • After fixing bugs → `learn_from_attempts(topic="...", outcome="success", what_worked="...")`');
|
|
1092
1108
|
lines.push('');
|
|
1109
|
+
lines.push('🌱 **Want answers right now?** Seed 16 universal engineering lessons so your first');
|
|
1110
|
+
lines.push(' `smart_recall` returns a hit instead of nothing:');
|
|
1111
|
+
lines.push(` \`brain_seed_starter(instance_id="${instance_id}")\``);
|
|
1112
|
+
lines.push(' _(Docker cache, JWT skew, K8s OOM, N+1 queries, cache stampede… — never overrides your own lessons.)_');
|
|
1113
|
+
lines.push('');
|
|
1093
1114
|
lines.push('💡 Run `brain_doctor` for a health-check and personalised tips.');
|
|
1094
1115
|
lines.push('');
|
|
1095
1116
|
}
|