@cachly-dev/mcp-server 0.10.108 → 0.10.111
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 +25 -3
- package/dist/src/handlers/brain.js +23 -1
- package/dist/src/handlers/brain.js.map +1 -1
- package/dist/src/handlers/cache.js +94 -9
- package/dist/src/handlers/cache.js.map +1 -1
- package/dist/src/handlers/fedbrain.d.ts +6 -0
- package/dist/src/handlers/fedbrain.js +63 -1
- package/dist/src/handlers/fedbrain.js.map +1 -1
- package/dist/src/tools.d.ts +64 -0
- package/dist/src/tools.js +46 -0
- package/dist/src/tools.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<img src="https://img.shields.io/badge/GDPR-EU%20servers-green" alt="GDPR: EU servers" />
|
|
23
23
|
</a>
|
|
24
24
|
|
|
25
|
-
<img src="https://img.shields.io/badge/
|
|
25
|
+
<img src="https://img.shields.io/badge/136%20MCP%20tools-violet" alt="136 MCP tools" />
|
|
26
26
|
|
|
27
27
|
<img src="https://img.shields.io/badge/License-Apache--2.0-yellow" alt="License: Apache-2.0" />
|
|
28
28
|
</p>
|
|
@@ -246,7 +246,27 @@ npx @cachly-dev/mcp-server@latest learn-git # Auto-learn lessons from recent git
|
|
|
246
246
|
|
|
247
247
|
---
|
|
248
248
|
|
|
249
|
-
##
|
|
249
|
+
## CI integration — your pipeline teaches the Brain
|
|
250
|
+
|
|
251
|
+
Every CI run is a lesson: a red→green transition is a proven fix, a green→red one is a
|
|
252
|
+
known cause. Ready-to-paste templates live in
|
|
253
|
+
[`src/ci-integration/`](./src/ci-integration/):
|
|
254
|
+
|
|
255
|
+
- **GitHub Actions** — copy [`brain-from-ci-action.yml`](./src/ci-integration/brain-from-ci-action.yml)
|
|
256
|
+
into `.github/workflows/`. It triggers on `workflow_run` (completed) and pushes the
|
|
257
|
+
outcome to your Brain. Requires `CACHLY_JWT` + `CACHLY_BRAIN_INSTANCE_ID` secrets.
|
|
258
|
+
- **GitLab CI** — copy [`brain-from-ci-gitlab.yml`](./src/ci-integration/brain-from-ci-gitlab.yml)
|
|
259
|
+
into your pipeline: two `.post` jobs (`on_success` / `on_failure`) with `allow_failure: true`.
|
|
260
|
+
- **Anything else** — [`push-ci-outcome.mjs`](./src/ci-integration/push-ci-outcome.mjs) is a
|
|
261
|
+
standalone Node.js helper with zero dependencies. It always exits 0 — your CI never
|
|
262
|
+
fails because of a Brain push.
|
|
263
|
+
|
|
264
|
+
Already have months of CI history? Backfill it in one call with the **`brain_from_ci`**
|
|
265
|
+
MCP tool — bulk-ingests past outcomes the same way `brain_from_git` ingests commits.
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
## MCP Tools (136 total)
|
|
250
270
|
|
|
251
271
|
### 🧠 Session & Memory (most used)
|
|
252
272
|
|
|
@@ -286,6 +306,7 @@ npx @cachly-dev/mcp-server@latest learn-git # Auto-learn lessons from recent git
|
|
|
286
306
|
| **`causal_trace`** | Root-cause analysis through the Causal Knowledge Graph |
|
|
287
307
|
| **`brain_predict`** / `brain_predict_failures` | Predict likely failures before they happen |
|
|
288
308
|
| **`brain_from_git`** | Bootstrap people + files + lessons from git history — incremental |
|
|
309
|
+
| **`brain_from_ci`** | Bulk-ingest CI outcomes: red→green becomes a fix lesson + causal `fixes` edge, green→red a `causes` edge — `brain_from_git` for CI logs |
|
|
289
310
|
| `memory_consolidate` | Detect contradictions, merge duplicates, expire stale lessons |
|
|
290
311
|
| `ckg_inspect` | Inspect the causal graph around any concept |
|
|
291
312
|
|
|
@@ -305,7 +326,8 @@ npx @cachly-dev/mcp-server@latest learn-git # Auto-learn lessons from recent git
|
|
|
305
326
|
|------|-------------|
|
|
306
327
|
| `syndicate` / `fedbrain_search` | Contribute to / search the global Knowledge Commons |
|
|
307
328
|
| `brain_marketplace` / `brain_install` | Browse + install curated Domain Brains (Kubernetes, Auth, DB…) into your Brain |
|
|
308
|
-
| `cache_get` / `cache_set` / `semantic_search` / `index_project` | Cache + semantic ops |
|
|
329
|
+
| `cache_get` / `cache_set` / `semantic_search` / `index_project` | Cache + semantic ops — pass `org_id` on `cache_get`/`cache_set` to share the cache org-wide (writes mirror to `org:{org_id}:sem`, reads fall back to it on miss) |
|
|
330
|
+
| `cache_stats` / `cache_org_stats` | Tokenmaxxing ROI: hits, estimated USD saved + monthly projection — per instance or aggregated across your whole org. Zero hits yet? You get a day-1 ROI projection instead. |
|
|
309
331
|
| `list_instances` / `create_instance` / `delete_instance` | Manage Brain instances |
|
|
310
332
|
| `roadmap_add` / `roadmap_next` | Persistent project roadmap stored in the Brain |
|
|
311
333
|
|
|
@@ -7,8 +7,30 @@ 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.111';
|
|
11
11
|
const WHATS_NEW = {
|
|
12
|
+
'0.10.111': [
|
|
13
|
+
`🏢 **Org-wide ROI + GitLab CI — the CFO number, aggregated**`,
|
|
14
|
+
` 💰 \`cache_org_stats\` now shows **org-wide Tokenmaxxing ROI**: total savings summed across every instance in your org, monthly projection, top-5 instances by savings. One number for the whole team.`,
|
|
15
|
+
` 🔌 Backed by new API endpoint \`GET /api/v1/orgs/:id/savings\` (org members only)`,
|
|
16
|
+
` 🦊 GitLab CI integration: \`brain-from-ci-gitlab.yml\` — two \`.post\` jobs (on_success/on_failure), same helper script, pipeline never fails because of Brain push`,
|
|
17
|
+
` 🛠️ GitHub Action template fixed: \`secrets.*\` in job-level \`if\` is invalid — guard removed (helper script skips cleanly on missing secrets)`,
|
|
18
|
+
` 📊 136 MCP tools`,
|
|
19
|
+
],
|
|
20
|
+
'0.10.110': [
|
|
21
|
+
`🏢 **Zero friction: ROI-Projektor, Org-Shared-Cache, CI ready-to-paste**`,
|
|
22
|
+
` 📈 \`cache_stats\` — zero-hit projection calculator: shows expected monthly savings for 5/10/20-dev teams before a single cache hit lands. ROI visible from day 1.`,
|
|
23
|
+
` 🏢 New \`cache_org_stats\` — shared org-level cache stats across multiple instances. Convention-based (\`org:{id}:sem\`), zero API changes needed.`,
|
|
24
|
+
` 🔗 \`cache_set\`/\`cache_get\` now accept optional \`org_id\` — write to personal + org namespace, fall back to org on miss. Fully backwards-compatible.`,
|
|
25
|
+
` 📋 Copy-paste CI integration: \`brain-from-ci-action.yml\` → Brain self-calibrates confidence on every GitHub Actions run. No config beyond two repo secrets.`,
|
|
26
|
+
` 📊 136 MCP tools`,
|
|
27
|
+
],
|
|
28
|
+
'0.10.109': [
|
|
29
|
+
`💰 **Tokenmaxxing ROI + Closed-loop CI learning**`,
|
|
30
|
+
` 📊 \`cache_stats\` now shows a **Tokenmaxxing ROI** section — total tokens saved, monthly cost projection, and top 3 most-cached prompts. Finally a number you can show the CFO.`,
|
|
31
|
+
` 🔄 New \`brain_from_ci\` — bulk-ingest CI history into the Brain (red→green = learned fix, green→red = CKG causal edge). The brain_from_git equivalent for CI. Bootstrap the Brain from your CI logs in one call.`,
|
|
32
|
+
` 📊 134 MCP tools`,
|
|
33
|
+
],
|
|
12
34
|
'0.10.108': [
|
|
13
35
|
`🧠 **Focused briefing + trustworthy autopilot**`,
|
|
14
36
|
` 🎯 New \`session_start_summary\` — top-N focused briefing by topic. Scores lessons by relevance × confidence + recall_count + severity + recency. Use it for a quick pre-brief without loading the full Brain.`,
|