@cachly-dev/mcp-server 0.9.0 → 0.9.2

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/CHANGELOG.md CHANGED
@@ -7,22 +7,6 @@
7
7
 
8
8
  ---
9
9
 
10
- ## [0.9.0] – 2026-05-05
11
-
12
- ### ⚡ compact_recover + 🌱 brain_from_git — The two most-requested missing tools
13
-
14
- #### New Tools
15
-
16
- - **`compact_recover`** — Fast context recovery after Claude/Cursor/Copilot context window compaction. Call as the FIRST tool after any context limit hit. Returns: last checkpoint (task + files + next step), session handoff if any, top recalled lessons for the current focus. Unlike `session_start`, this is instant — no full brain scan, no streak logic. Designed to be the first line of every CLAUDE.md recovery protocol.
17
-
18
- - **`brain_from_git`** — Bootstrap the AI Brain from git history in one call. Scans the last N days of commits, extracts actionable knowledge (fixes, reverts, deploys, migrations), and bulk-loads them as lessons. Skips commits already in the Brain (safe to re-run). Supports author filtering for solo bootstrapping on team repos. The recommended first step for any new project: `brain_from_git(workspace_path=".", days=180)`.
19
-
20
- #### Why these were missing
21
-
22
- `compact_recover` was referenced in every CLAUDE.md template and Autopilot output but had no implementation — users were told to call it but it would fail silently. `brain_from_git` was the #1 marketed feature ("Turn your git history into an AI knowledge base") but only existed as ambient learning inside `session_end`. Both are now first-class MCP tools.
23
-
24
- ---
25
-
26
10
  ## [0.7.0] – 2026-05-04
27
11
 
28
12
  ### 🌐 Knowledge Syndication — The Global AI Brain
package/Dockerfile CHANGED
@@ -11,8 +11,6 @@ COPY package*.json ./
11
11
  RUN npm ci --omit=dev --ignore-scripts
12
12
  COPY --from=builder /app/dist/ ./dist/
13
13
  ENV NODE_ENV=production
14
- ENV CACHLY_JWT=""
15
- ENV CACHLY_BRAIN_INSTANCE_ID=""
16
- ENV CACHLY_NO_TELEMETRY=1
17
- ENV CACHLY_NO_UPDATE_CHECK=1
14
+ ENV PORT=3000
15
+ EXPOSE 3000
18
16
  ENTRYPOINT ["node", "dist/index.js"]
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # cachly — The World's First Cognitive Cache
1
+ # 🔮 cachly AI Brain — MCP Server
2
2
 
3
- > **A cache that thinks.**
4
- > Not just managed Redis. The universal AI memory layer — persistent, self-managing, cross-model.
5
- > One command. Your AI never forgets again.
3
+ > **Persistent memory for Claude Code, Cursor, GitHub Copilot, Windsurf, Cline & Zed.**
4
+ > Your AI remembers every lesson, every fix, every architecture decision — forever.
5
+ > **Now with Live 3D Brain Visualizer — watch your knowledge galaxy grow in real time.**
6
6
 
7
7
  <p align="center">
8
- <a href="https://github.com/cachly-dev/cachly-mcp/stargazers">
9
- <img src="https://img.shields.io/github/stars/cachly-dev/cachly-mcp?style=social" alt="GitHub Stars" />
8
+ <a href="https://github.com/cachly-dev/mcp-server/stargazers">
9
+ <img src="https://img.shields.io/github/stars/cachly-dev/mcp-server?style=social" alt="GitHub Stars" />
10
10
  </a>
11
11
  &nbsp;
12
12
  <a href="https://www.npmjs.com/package/@cachly-dev/mcp-server">
@@ -30,21 +30,19 @@
30
30
 
31
31
  ---
32
32
 
33
- ## 🆕 What is a Cognitive Cache?
33
+ ## 🆕 v0.6 — Cognitive Cache: Your AI Brain now *thinks* about what it knows
34
34
 
35
- Every cache stores data. cachly stores **meaning** — and now reasons over it.
35
+ > Redis stores bytes. LangChain stores text. **cachly v0.6 reasons over knowledge.**
36
36
 
37
- **Seven capabilities no other memory system has ever had:**
37
+ ### The 5 tools no other memory system has:
38
38
 
39
- | Capability | What it does | Why it matters |
40
- |-----------|-------------|----------------|
41
- | **`memory_consolidate`** | Garbage collection for knowledge — detect contradictions, merge duplicates, prune stale | Like `git gc` for your AI brain |
42
- | **`brain_diff`** | `git log` for your AI brain — what changed this week? | See your AI's learning velocity |
43
- | **`causal_trace`** | Root cause analysis through memory — problem → chain → fix | **No other system can do this** |
44
- | **`knowledge_decay`** | Confidence per lesson: `████░░░░ 40%` | Old knowledge rots. Now you know which. |
45
- | **`autopilot`** | Generates CLAUDE.md that makes any AI self-managing, forever | Zero manual calls. One command. Done. |
46
- | **`syndicate`** | Contribute verified lessons to the global AI Knowledge Commons | Anonymous (HMAC). Every AI learns. |
47
- | **`syndicate_search`** | Search solutions discovered by every AI brain on the planet | Community trust scores: `████████░░ ×47` |
39
+ | Tool | What it does | Why it's different |
40
+ |---|---|---|
41
+ | `memory_consolidate` | Weekly garbage collector — detects contradictions, merges duplicates, expires stale | Like `git gc` for knowledge |
42
+ | `brain_diff` | `git log` for your AI Brain — what changed this week? | See your AI's learning velocity |
43
+ | `causal_trace` | Root Cause Analysis through memory: problem → chain → solution | **No other system can do this** |
44
+ | `knowledge_decay` | Confidence score per lesson: `████░░░░ 40%` | Old knowledge rots. Now you know which |
45
+ | `autopilot` | Generates CLAUDE.md that makes any AI self-managing, forever | Zero manual calls. One command. Done. |
48
46
 
49
47
  **The `causal_trace` moment:**
50
48
  ```
@@ -63,7 +61,7 @@ causal_trace(problem="auth breaks after restart")
63
61
  Every morning, you open your AI coding assistant. It doesn't remember yesterday.
64
62
  You explain your architecture. You explain the deployment process. You explain the bug you fixed last week.
65
63
 
66
- **The average developer wastes 45 minutes/day re-establishing context.**
64
+ **The average developer wastes 45 minutes/day re-establishing context.** That's €15,000+ in lost productivity per engineer per year.
67
65
 
68
66
  ## The Fix — One Command
69
67
 
@@ -74,335 +72,230 @@ npx @cachly-dev/mcp-server@latest setup
74
72
  The interactive wizard:
75
73
  1. Signs you in (free, no credit card required)
76
74
  2. Picks or creates your AI Brain instance
77
- 3. **Auto-detects** Cursor, Windsurf, VS Code, Claude Code, Continue.dev, Cline & Zed
75
+ 3. **Auto-detects** Cursor, Windsurf, VS Code, Claude Code, Continue.dev, **Cline & Zed**
78
76
  4. Writes the correct MCP config for every detected editor
79
77
  5. Creates `CLAUDE.md` with memory rules pre-filled
78
+ 6. Shows your Brain Health snapshot right in the terminal
80
79
 
81
80
  **Index your project** into the Brain for instant semantic search:
82
81
  ```bash
83
82
  npx @cachly-dev/mcp-server@latest index .
84
83
  ```
85
84
 
86
- ---
87
-
88
- ## What it looks like
89
-
90
- Every session starts with a briefing instead of a blank slate:
91
-
92
- ```
93
- 🧠 Session Briefing
94
-
95
- 📅 Last session (2h ago): Fixed auth redirect loop in Next.js middleware
96
- Duration: 47 min · Files: middleware.ts, auth.config.ts, .env.local
97
-
98
- 📊 Brain: 23 lessons · 5 context entries · 38 recalls · ~9.5h saved
99
-
100
- 🎯 Relevant for "auth":
101
- ✅ next:middleware-auth — matcher must exclude /_next/static paths (negative lookahead)
102
- ✅ keycloak:refresh-token — use httpOnly cookie, not localStorage — Safari blocks third-party
103
- ❌ oauth:pkce — PKCE + CORS broken in Safari 16.3, still unresolved
104
-
105
- 🕐 Recent lessons:
106
- ✅ redis:pipeline-batching — pipeline() for N writes, 10× faster than sequential
107
- ✅ deploy:healthcheck — readinessProbe.failureThreshold must be ≥ 10 on cold starts
108
- ```
109
-
110
- Your AI arrives pre-briefed. No repeating yourself.
85
+ **Result:** Your AI remembers everything. Always.
111
86
 
112
87
  ---
113
88
 
114
- ## Cognitive Cache in Action
89
+ ## Quick Start (Manual)
115
90
 
116
- ### Root Cause Analysis Through Memory
91
+ **Step 1 — Get your free credentials** at [cachly.dev](https://cachly.dev) (25 MB free, forever, no credit card).
117
92
 
118
- ```
119
- causal_trace(problem="auth fails after namespace restart")
93
+ **Step 2 — Add to your editor's MCP config:**
120
94
 
121
- 🔍 Causal Trace — "auth fails after namespace restart"
95
+ <details>
96
+ <summary><b>Claude Code</b> (<code>~/.claude/mcp.json</code> or <code>.mcp.json</code>)</summary>
122
97
 
123
- Found 7 related memories (3 failures · 1 partial · 2 fixes)
98
+ ```json
99
+ {
100
+ "mcpServers": {
101
+ "cachly": {
102
+ "type": "stdio",
103
+ "command": "npx",
104
+ "args": ["-y", "@cachly-dev/mcp-server@latest"],
105
+ "env": {
106
+ "CACHLY_JWT": "your-jwt-token",
107
+ "CACHLY_INSTANCE_ID": "your-instance-id"
124
108
 
125
- ❌ Root causes / similar failures:
126
- 1. [12.03.2025] 🔴 k8s:namespace-terminating (relevance 9/10)
127
- ↳ Cannot create resources in Terminating namespace — must wait for full deletion
128
- 2. [08.02.2025] 🟡 keycloak:jwks-cache-race (relevance 6/10)
129
- ↳ Concurrent JWKS map access panics under load — needs RWMutex
109
+ Every morning, you open your AI coding assistant. It doesn't remember yesterday.
110
+ You explain your architecture. You explain the deployment process. You explain the bug you fixed last week.
130
111
 
131
- ✅ What solved similar problems:
132
- • k8s:namespace-wait — PollUntilContextTimeout 3min loop until NotFound
133
- • auth:jwks-singleton — double-checked locking pattern, init once on startup
112
+ **The average developer wastes 45 minutes/day re-establishing context.** That's €15,000+ in lost productivity per engineer per year.
134
113
 
135
- 🧩 Likely causal chain:
136
- k8s:namespace-terminating
137
- ↓ led to keycloak:jwks-cache-race
138
- ↓ current symptom: auth fails after namespace restart
114
+ ## The Fix — One Command
139
115
 
140
- 🎯 Recommended fix: apply k8s:namespace-wait solution
116
+ ```bash
117
+ npx @cachly-dev/mcp-server@latest setup
141
118
  ```
142
119
 
143
- ### Knowledge Syndication — The Global AI Brain
120
+ The interactive wizard:
121
+ 1. Signs you in (free, no credit card required)
122
+ 2. Picks or creates your AI Brain instance
123
+ 3. **Auto-detects** Cursor, Windsurf, VS Code, Claude Code, Continue.dev, **Cline & Zed**
124
+ 4. Writes the correct MCP config for every detected editor
125
+ 5. Creates `CLAUDE.md` with memory rules pre-filled
126
+ 6. Shows your Brain Health snapshot right in the terminal
144
127
 
128
+ **Index your project** into the Brain for instant semantic search:
129
+ ```bash
130
+ npx @cachly-dev/mcp-server@latest index .
145
131
  ```
146
- syndicate_search(query="k8s namespace stuck terminating")
147
132
 
148
- 🌐 Global Knowledge Commons — "k8s namespace stuck terminating"
133
+ **Result:** Your AI remembers everything. Always.
149
134
 
150
- Found 3 community solutions (ranked by trust):
135
+ ---
151
136
 
152
- ████████░░ ×47 [VERIFIED] k8s:namespace-force-delete
153
- → kubectl get namespace <ns> -o json | jq '.spec.finalizers=[]' | kubectl replace --raw ...
154
- → Confirmed by 47 independent AI brains across 12 countries
137
+ ## Quick Start (Manual)
155
138
 
156
- ██████░░░░ ×23 [VERIFIED] k8s:namespace-finalizer-patch
157
- → PATCH /api/v1/namespaces/<ns>/finalize with empty finalizers array
158
- → 23 confirmations, 0 contradictions
139
+ **Step 1 — Get your free credentials** at [cachly.dev](https://cachly.dev) (25 MB free, forever, no credit card).
159
140
 
160
- ████░░░░░░ ×9 k8s:pvc-blocking-termination
161
- → PVCs with retain policy block namespace deletion
162
- → 9 confirmations
163
- ```
141
+ **Step 2 — Add to your editor's MCP config:**
164
142
 
165
- ### Knowledge Decay — Trust What's Still True
143
+ <details>
144
+ <summary><b>Claude Code</b> (<code>~/.claude/mcp.json</code> or <code>.mcp.json</code>)</summary>
166
145
 
146
+ ```json
147
+ {
148
+ "mcpServers": {
149
+ "cachly": {
150
+ "type": "stdio",
151
+ "command": "npx",
152
+ "args": ["-y", "@cachly-dev/mcp-server@latest"],
153
+ "env": {
154
+ "CACHLY_JWT": "your-jwt-token",
155
+ "CACHLY_INSTANCE_ID": "your-instance-id"
156
+ }
157
+ }
158
+ }
159
+ }
167
160
  ```
168
- knowledge_decay(threshold_days=30)
169
-
170
- ⏱️ Knowledge Decay Analysis
161
+ </details>
171
162
 
172
- 🧠 31 total memories · 24 healthy (avg 88% confidence) · 7 decaying
163
+ <details>
164
+ <summary><b>Cursor / Windsurf / VS Code</b> (<code>.cursor/mcp.json</code> / <code>.mcp.json</code>)</summary>
173
165
 
174
- ⚠️ 7 memories need re-verification:
166
+ ```json
167
+ {
168
+ "servers": {
169
+ "cachly": {
170
+ "type": "stdio",
171
+ "command": "npx",
172
+ "args": ["-y", "@cachly-dev/mcp-server@latest"],
173
+ "env": {
174
+ "CACHLY_JWT": "your-jwt-token",
175
+ "CACHLY_INSTANCE_ID": "your-instance-id"
176
+ }
177
+ }
178
+ }
179
+ }
180
+ ```
181
+ </details>
175
182
 
176
- ██████████ 100% — auth:jwt-refresh (3d old · recalled 5×)
177
- ████████░░ 80% 🟡 k8s:resource-limits (45d old · recalled 1×)
178
- █████░░░░░ 52% deploy:docker-compose (78d old · recalled 0×)
179
- ███░░░░░░░ 31% 🔴 stripe:webhook-secret (112d old · recalled 0×)
183
+ **Step 3 — Add to `CLAUDE.md` / `.github/copilot-instructions.md`:**
180
184
 
181
- 💡 Re-validate top decaying memories before critical tasks.
185
+ ```markdown
186
+ ## AI Brain Rules (cachly)
187
+ - Call session_start BEFORE reading any files or making changes
188
+ - Call learn_from_attempts AFTER every fix, deploy, or discovery
189
+ - Call session_end when closing the window
182
190
  ```
183
191
 
184
192
  ---
185
193
 
186
- ## Before vs. After
194
+ ## With vs. Without cachly
187
195
 
188
196
  | Situation | Without cachly | With cachly |
189
197
  |-----------|----------------|-------------|
190
- | Session start | "What's your architecture?" | Briefed in 2s — lessons, last session, open failures |
191
- | Bug hits again | Re-researches from scratch (20–40 min) | "You fixed this on March 12, exact command: `kubectl rollout restart`" |
192
- | "Why is X broken?" | Manual investigation | `causal_trace` traces root cause through memory in seconds |
193
- | "Can I trust this lesson?" | No way to know | `knowledge_decay` shows confidence % per memory |
194
- | Unknown bug | Google + Stack Overflow | `syndicate_search` — 47 AI brains already solved it |
195
- | After holiday | Context completely dead | Full context restored, team lessons visible |
196
- | New team member | Weeks to onboard | `session_start` gives full codebase context instantly |
197
- | Model switch | Start over | Brain is model-agnostic — Claude, GPT-4, Gemini share one brain |
198
-
199
- ---
200
-
201
- ## Bootstrap from Git History
202
-
203
- ```bash
204
- # As a CLI command
205
- npx @cachly-dev/mcp-server@latest index .
206
- ```
207
-
208
- Or call directly from any AI session via the `brain_from_git` MCP tool:
209
-
210
- ```
211
- brain_from_git(instance_id="...", workspace_path="/home/you/project", days=180)
212
- ```
213
-
214
- Either way, your git log is read and lessons are extracted automatically:
215
-
216
- ```
217
- 🧠 Brain bootstrapped from git history
218
-
219
- 📊 Scanned: 342 commits over last 180 days
220
- ✅ Success lessons: 28 ❌ Failure/revert lessons: 9
221
- 📁 Hotspot files tracked: 12
222
- 💾 Total stored: 31 new lessons
223
-
224
- Top lessons extracted:
225
- ✅🟡 auth:jwt-refresh-token — Use httpOnly cookie, not localStorage
226
- ❌🔴 deploy:docker-compose-detach — Reverted: "blocks SSH terminal"
227
- ✅🟡 redis:connection-pool-timeout — connectTimeout:5000 prevents hangs
228
- ```
198
+ | Session start | "What's your architecture?" | "Ready. 23 lessons, last session: deployed API." |
199
+ | Known bug hits again | Re-researches from scratch | "You fixed this on March 12, here's the exact command" |
200
+ | After holiday / team handoff | Context dead | Fully briefed in < 10 seconds |
201
+ | Repeated LLM patterns | Pays for each re-discovery | Cached by meaning, ~1,200 tokens saved per hit |
202
+ | New team member | Weeks to onboard | `session_start` gives full context instantly |
229
203
 
230
204
  ---
231
205
 
232
- ## 67 MCP Tools
233
-
234
- ### 🧠 Cognitive Cache
235
-
236
- | Tool | What it does |
237
- |------|-------------|
238
- | **`memory_consolidate`** | Distill knowledge base: contradictions, duplicates, pruned stale. Health score 0–100. |
239
- | **`brain_diff`** | Git-style diff — what was learned, updated, or went stale since N sessions |
240
- | **`causal_trace`** | Root cause analysis: given a problem, traces backwards through memory to find cause + fix |
241
- | **`knowledge_decay`** | Temporal confidence per memory — decay by age, recover by recall frequency |
242
- | **`autopilot`** | Generates and optionally writes CLAUDE.md that makes any AI fully self-managing |
243
-
244
- ### 🌐 Knowledge Syndication
245
-
246
- | Tool | What it does |
247
- |------|-------------|
248
- | **`syndicate`** | Contribute a verified lesson to the global Knowledge Commons (anonymous, HMAC-hashed) |
249
- | **`syndicate_search`** | Search solutions from every AI brain on the planet — ranked by `confirm_count` |
250
- | **`syndicate_stats`** | Your contribution stats to the global commons |
251
- | **`syndicate_trending`** | Most-confirmed lessons in the community this week |
252
-
253
- ### 🔁 Context Recovery
206
+ ## 51 MCP Tools
254
207
 
255
- | Tool | What it does |
256
- |------|-------------|
257
- | **`compact_recover`** | **Call first after any context limit hit.** Returns last checkpoint, pending tasks, and top lessons — instantly. No full scan. |
258
- | **`brain_from_git`** | Bootstrap brain from git history: `brain_from_git(workspace_path=".", days=180)` → stores months of team knowledge in one call. |
259
-
260
- ### 🧩 Session & Memory
208
+ ### 🧠 Session & Memory (most used)
261
209
 
262
210
  | Tool | What it does |
263
211
  |------|-------------|
264
- | **`session_start`** | Full briefing: last session, open failures, recent lessons, brain stats |
265
- | **`session_end`** | Save session + auto-extract lessons from ambient git log |
266
- | **`session_ping`** | Cross-provider checkpoint — switch Claude↔Copilot↔Cursor seamlessly |
267
- | **`session_handoff`** | Hand off remaining tasks to next window with full context |
268
- | **`auto_learn_session`** | Batch-store multiple observations at session end |
269
- | **`learn_from_attempts`** | Store lessons after any fix, deploy, or discovery |
270
- | **`recall_best_solution`** | Best known fix for a topic — with full success/failure history |
212
+ | **`session_start`** | Full briefing: last session summary, open failures, recent lessons, brain health |
213
+ | **`session_end`** | Save what you built, auto-extract lessons from summary + ambient git log |
214
+ | **`session_handoff`** | Hand off remaining tasks to next window, with context |
215
+ | **`auto_learn_session`** | Batch-learn from a list of observations |
216
+ | **`sync_file_changes`** | Sync changed files into brain index |
217
+ | **`learn_from_attempts`** | Store structured lessons after any fix, deploy, or discovery |
218
+ | **`recall_best_solution`** | Best known solution for a topic — with success/failure history |
271
219
  | **`recall_at`** | Recall a lesson at a specific point in time |
272
- | **`smart_recall`** | BM25+ full-text search across all brain data — 11 languages |
273
- | **`remember_context`** / **`recall_context`** | Cache/retrieve architecture findings, file summaries, ADRs |
274
- | **`list_remembered`** / **`forget_context`** | List/remove cached context entries |
275
- | **`sync_file_changes`** | Track file change history, surface related lessons per file |
220
+ | **`remember_context`** | Cache architecture findings, decisions, file summaries |
221
+ | **`recall_context`** | Get exact context by key (supports glob) |
222
+ | **`list_remembered`** | See all cached context entries |
223
+ | **`forget_context`** | Remove stale context |
224
+ | **`smart_recall`** | BM25+ full-text search across all brain data — multilingual: EN, DE, FR, ES, IT, PT, ZH, JA, KO, **AR, HE** |
276
225
  | **`setup_ai_memory`** | Interactive wizard to configure AI memory |
277
226
 
278
- ### 🗺️ Roadmap
279
-
280
- | Tool | What it does |
281
- |------|-------------|
282
- | **`roadmap_add`** | Add a feature/task to the persistent project roadmap |
283
- | **`roadmap_update`** | Mark progress, change status, update priority |
284
- | **`roadmap_list`** | View all roadmap items — shown at every `session_start` |
285
- | **`roadmap_next`** | Pick the highest-priority open item to work on next |
286
-
287
- ### 👥 Team Brain
288
-
289
- | Tool | What it does |
290
- |------|-------------|
291
- | **`team_learn`** / **`team_recall`** | Share lessons across the whole team on a shared instance |
292
- | **`team_synthesize`** | Consolidate multiple lessons into one authoritative version |
293
- | **`memory_crystalize`** | Distill all lessons into a Crystal snapshot for instant team context |
294
- | **`brain_doctor`** | Health check: lesson quality, IQ boost %, open failures, recommendations |
295
- | **`global_learn`** / **`global_recall`** | Cross-project universal lessons |
296
- | **`publish_lesson`** / **`import_public_brain`** | Share/import community knowledge |
297
- | **`trace_dependency`** | Find all lessons affected by a dependency change |
298
- | **`list_orgs`** / **`create_org`** | Manage team organizations |
299
- | **`invite_member`** / **`get_org_plan`** | Invite a developer to your org by email |
300
-
301
- ### 🔍 Multilingual Brain — Search in Any Language
227
+ ### 🌍 Multilingual Brain — Search in Any Language
302
228
 
303
- `smart_recall` understands **11 languages natively** — no configuration required.
229
+ The Brain's search engine understands **11 languages natively** — no configuration required.
304
230
 
305
231
  | Script | Languages | Tokenization |
306
232
  |--------|-----------|-------------|
307
233
  | Latin | EN, DE, FR, ES, IT, PT | Whitespace + stopwords |
308
- | CJK | Chinese, Japanese, Korean | Character bigrams |
309
- | RTL | Arabic, Hebrew | Word tokenization + Arabic light stemming |
234
+ | CJK | Chinese (ZH), Japanese (JA), Korean (KO) | Character bigrams |
235
+ | RTL | Arabic (AR), Hebrew (HE) | Word tokenization + light stemming |
310
236
 
311
- **Romanization matching** — store in Japanese, search in romaji:
237
+ **Romanization matching** — store lessons in Japanese, search in romaji:
312
238
  ```
313
- smart_recall("depuroi") → finds デプロイ docs
314
239
  smart_recall("kontena") → finds コンテナ docs
240
+ smart_recall("depuroi") → finds デプロイ docs
315
241
  ```
316
242
 
317
243
  **Cross-language retrieval** — 130+ tech term synonyms EN↔JA↔ZH↔KO↔AR↔HE:
318
244
  ```
319
- smart_recall("deploy") → finds デプロイ, 部署, 배포, نشر, פריסה
245
+ smart_recall("deploy") → finds デプロイ, 部署, 배포, نشر, פריסה
246
+ smart_recall("デプロイ") → finds "deploy", "deployment"
247
+ smart_recall("خطأ") → finds "error", エラー, 错误
320
248
  ```
321
249
 
250
+ ### 💡 Legendary Brain Features
251
+
252
+ | Feature | How it works |
253
+ |---------|-------------|
254
+ | **Team Telepathy** | Multi-dev Brain: the `author` param on `learn_from_attempts` shares fixes across the whole team. Every `session_start` shows colleagues' lessons. |
255
+ | **Ambient Git Learning** | Pass `workspace_path` to `session_end` — it auto-reads `git log`, stores recent commits as Brain lessons. Zero extra calls. |
256
+ | **Memory Crystals** | `memory_crystalize` distills all lessons into a compact Crystal injected at every `session_start`. AI arrives pre-loaded with team knowledge. |
257
+ | **IQ Boost** | `brain_doctor` reports `iq_boost_pct` — how much smarter your AI gets vs. baseline from cached lessons. |
258
+
322
259
  ### ⚙️ Instance Management
323
260
 
324
261
  | Tool | What it does |
325
262
  |------|-------------|
326
- | `list_instances` / `create_instance` | List or spin up cache instances |
327
- | `get_instance` / `delete_instance` | Get details or remove an instance |
328
- | `get_connection_string` | Get the `redis://` URL for your own app |
263
+ | `list_instances` | List all your cache instances |
264
+ | `create_instance` | Spin up a new instance (free or paid) |
265
+ | `get_connection_string` | Get the `redis://` URL for your app |
266
+ | `delete_instance` | Remove an instance |
267
+ | `get_real_time_stats` | Memory, hit rate, ops/sec |
329
268
 
330
269
  ### 🗄️ Cache Operations
331
270
 
332
271
  | Tool | What it does |
333
272
  |------|-------------|
334
273
  | `cache_get` / `cache_set` / `cache_delete` | Standard cache operations |
335
- | `cache_exists` / `cache_ttl` / `cache_keys` | Key inspection |
336
274
  | `cache_mget` / `cache_mset` | Bulk pipeline (single round-trip) |
337
- | `cache_stats` | Memory, hit rate, ops/sec, keyspace info |
338
275
  | `cache_lock_acquire` / `cache_lock_release` | Distributed Redlock-lite |
339
- | `cache_stream_set` / `cache_stream_get` | Cache streaming LLM responses in chunks |
340
- | `cache_warmup` / `index_project` | Pre-warm cache or index a project directory |
276
+ | `cache_stream_set` / `cache_stream_get` | LLM token stream caching |
341
277
 
342
- ### 🔭 Semantic Search
278
+ ### 🔍 Semantic Cache
343
279
 
344
280
  | Tool | What it does |
345
281
  |------|-------------|
346
282
  | `semantic_search` | Find cached entries by meaning (pgvector HNSW, EU-hosted) |
283
+ | `semantic_warmup` | Pre-warm cache with prompt/response pairs |
347
284
  | `detect_namespace` | Auto-classify prompt into code/qa/summary/translation/creative |
348
285
 
349
- ---
350
-
351
- ## Manual Setup
352
-
353
- <details>
354
- <summary>Claude Code (<code>~/.claude/mcp.json</code> or <code>.mcp.json</code>)</summary>
355
-
356
- ```json
357
- {
358
- "mcpServers": {
359
- "cachly": {
360
- "type": "stdio",
361
- "command": "npx",
362
- "args": ["-y", "@cachly-dev/mcp-server@latest"],
363
- "env": {
364
- "CACHLY_JWT": "your-api-key",
365
- "CACHLY_BRAIN_INSTANCE_ID": "your-instance-id"
366
- }
367
- }
368
- }
369
- }
370
- ```
371
- </details>
372
-
373
- <details>
374
- <summary>Cursor / Windsurf / VS Code (<code>.cursor/mcp.json</code> or <code>.mcp.json</code>)</summary>
375
-
376
- ```json
377
- {
378
- "servers": {
379
- "cachly": {
380
- "type": "stdio",
381
- "command": "npx",
382
- "args": ["-y", "@cachly-dev/mcp-server@latest"],
383
- "env": {
384
- "CACHLY_JWT": "your-api-key",
385
- "CACHLY_BRAIN_INSTANCE_ID": "your-instance-id"
386
- }
387
- }
388
- }
389
- }
390
- ```
391
- </details>
392
-
393
- <details>
394
- <summary>Autopilot CLAUDE.md (generated by <code>autopilot</code> tool)</summary>
286
+ ### 👥 Team Brain
395
287
 
396
- ```markdown
397
- ## AI Brain Rules (cachly Autopilot)
398
- - If context was compacted: call compact_recover FIRST before anything else
399
- - Call session_start BEFORE reading any files or making changes
400
- - Call learn_from_attempts AFTER every fix, deploy, or discovery
401
- - Call causal_trace BEFORE long debugging sessions
402
- - Call syndicate_search BEFORE investigating any unknown error
403
- - Call session_end when closing the window
404
- ```
405
- </details>
288
+ | Tool | What it does |
289
+ |------|-------------|
290
+ | `team_learn` / `team_recall` | Share lessons across the team |
291
+ | `team_synthesize` | Consolidate multiple lessons into one authoritative version |
292
+ | `memory_crystalize` | Distill all lessons into a Crystal snapshot for instant team context |
293
+ | `brain_doctor` | Health check: lesson count, IQ boost %, open failures, quality score |
294
+ | `global_learn` / `global_recall` | Cross-project universal lessons |
295
+ | `publish_lesson` / `import_public_brain` | Share/import community knowledge |
296
+ | `trace_dependency` | Causal chain — find lessons affected by a dependency change |
297
+ | `list_orgs` / `create_org` | Manage team organizations |
298
+ | `invite_member` / `get_org_plan` | Invite a developer to your org by email |
406
299
 
407
300
  ---
408
301
 
@@ -410,13 +303,13 @@ smart_recall("deploy") → finds デプロイ, 部署, 배포, نشر, פריס
410
303
 
411
304
  | Tier | RAM | Price | Best for |
412
305
  |------|-----|-------|----------|
413
- | **Free** | 25 MB | **€0/mo forever** | Side projects & solo devs |
306
+ | **Free** | 25 MB | **€0/mo forever** | Dev & side projects |
414
307
  | **Dev** | 200 MB | €19/mo | Individual developers |
415
- | **Pro** | 900 MB | €49/mo | Teams (shared brain) |
416
- | **Speed** | 900 MB + Dragonfly + Semantic | €79/mo | AI-heavy workloads |
308
+ | **Pro** | 900 MB | €49/mo | Teams |
309
+ | **Speed** | 900 MB + Dragonfly + Semantic Cache | €79/mo | AI-heavy workloads |
417
310
  | **Business** | 7 GB | €199/mo | Scale-ups |
418
311
 
419
- ✅ All plans: **German servers · GDPR-compliant · 99.9% SLA · no credit card for Free**
312
+ ✅ All plans: **German servers · GDPR-compliant · 99.9% SLA · No credit card for Free tier**
420
313
 
421
314
  ---
422
315
 
@@ -424,28 +317,30 @@ smart_recall("deploy") → finds デプロイ, 部署, 배포, نشر, פריס
424
317
 
425
318
  | Variable | Default | Description |
426
319
  |----------|---------|-------------|
427
- | `CACHLY_JWT` | — | **Required.** API key from [cachly.dev](https://cachly.dev) |
428
- | `CACHLY_BRAIN_INSTANCE_ID` | — | Default instance UUID — set once, works in all tools |
320
+ | `CACHLY_JWT` | — | **Required.** Your API token from [cachly.dev](https://cachly.dev) |
321
+ | `CACHLY_INSTANCE_ID` | — | Default instance UUID (optional if you pass per-call) |
429
322
  | `CACHLY_API_URL` | `https://api.cachly.dev` | Override for self-hosted |
430
- | `CACHLY_EMBED_PROVIDER` | auto-detect | `openai` \| `gemini` \| `mistral` \| `cohere` \| `ollama` \| `cachly` |
431
- | `CACHLY_NO_TELEMETRY` | unset | Set to `1` to opt out of anonymous usage pings |
323
+ | `CACHLY_NO_TELEMETRY` | unset | Set to `1` to disable anonymous usage pings |
324
+ | `CACHLY_NO_UPDATE_CHECK` | unset | Set to `1` to disable the version-check on startup |
432
325
 
433
326
  ---
434
327
 
435
- ## Ecosystem
328
+ ## 🛠️ Ecosystem
436
329
 
437
330
  | Package | What it does |
438
331
  |---------|-------------|
439
- | **[`@cachly-dev/mcp-server`](https://www.npmjs.com/package/@cachly-dev/mcp-server)** | ← you are here — Cognitive Cache MCP for Claude, Cursor, Copilot, Windsurf |
440
- | **[`cachly-brain` (VS Code)](https://marketplace.visualstudio.com/items?itemName=cachly.cachly-brain)** | VS Code extension — status bar, CodeLens lessons, one-click setup |
441
- | **[`@cachly-dev/openclaw`](https://www.npmjs.com/package/@cachly-dev/openclaw)** | JS/TS SDK — cut LLM costs 60–90% with semantic cache in your own app |
442
- | **[`@cachly-dev/sdk`](https://www.npmjs.com/package/@cachly-dev/sdk)** | Node.js SDK — managed Redis, semantic cache & AI memory in your app |
332
+ | **[`@cachly-dev/mcp-server`](https://www.npmjs.com/package/@cachly-dev/mcp-server)** | ← you are here — AI Brain MCP tools for Claude Code, Cursor, Copilot, Windsurf |
333
+ | **[`@cachly-dev/openclaw`](https://www.npmjs.com/package/@cachly-dev/openclaw)** | JS/TS SDK — cut LLM costs 60–90% with semantic cache + BM25 in your own app, 3 lines of code |
334
+ | **[`@cachly-dev/init`](https://www.npmjs.com/package/@cachly-dev/init)** | One-command setup wizard: auto-detects all your editors and writes the correct MCP config — `npx @cachly-dev/init` |
335
+ | **[`@cachly-dev/cli`](https://www.npmjs.com/package/@cachly-dev/cli)** | Terminal CLI — manage instances, cache data, brain lessons: `npm i -g @cachly-dev/cli` |
336
+ | **[`@cachly-dev/sdk`](https://www.npmjs.com/package/@cachly-dev/sdk)** | Node.js/TypeScript SDK — use managed Redis, semantic cache & AI memory directly in your app |
443
337
 
444
338
  ---
445
339
 
446
340
  ## Links
447
341
 
448
342
  - 🌐 [cachly.dev](https://cachly.dev) — Dashboard & free signup
449
- - 📖 [Docs](https://cachly.dev/docs/ai-memory) — Full documentation
450
- - 💬 [Issues](https://github.com/cachly-dev/cachly-mcp/issues) — Bug reports & feature requests
451
- - ⭐ [Star on GitHub](https://github.com/cachly-dev/cachly-mcp) — If cachly saves you time, a star means a lot!
343
+ - 📖 [AI Brain docs](https://cachly.dev/docs/ai-memory) — Full documentation
344
+ - 💬 [GitHub Issues](https://github.com/cachly-dev/mcp-server/issues) — Bug reports & feature requests
345
+ - ⭐ [Star on GitHub](https://github.com/cachly-dev/mcp-server) — If cachly saves you time, a star means a lot!
346
+ - 📦 [npm](https://www.npmjs.com/package/@cachly-dev/mcp-server)