@cachly-dev/mcp-server 0.6.0 โ†’ 0.7.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/README.md CHANGED
@@ -1,12 +1,11 @@
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.
6
5
 
7
6
  <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" />
7
+ <a href="https://github.com/cachly-dev/mcp-server/stargazers">
8
+ <img src="https://img.shields.io/github/stars/cachly-dev/mcp-server?style=social" alt="GitHub Stars" />
10
9
  </a>
11
10
  &nbsp;
12
11
  <a href="https://www.npmjs.com/package/@cachly-dev/mcp-server">
@@ -24,256 +23,278 @@
24
23
  <a href="https://cachly.dev/legal">
25
24
  <img src="https://img.shields.io/badge/GDPR-EU%20only-green" alt="GDPR: EU only" />
26
25
  </a>
26
+ &nbsp;
27
+ <img src="https://img.shields.io/badge/License-Apache--2.0-yellow" alt="License: Apache-2.0" />
27
28
  </p>
28
29
 
29
30
  ---
30
31
 
31
- ## What is a Cognitive Cache?
32
-
33
- Every cache stores data. cachly stores **meaning**.
34
-
35
- Five capabilities no other cache โ€” or AI memory tool โ€” has ever had:
36
-
37
- | Capability | What it does |
38
- |-----------|-------------|
39
- | **`memory_consolidate`** | Distill the entire knowledge base: detect contradictions, merge duplicates, prune stale memories โ€” like garbage collection for your AI's brain |
40
- | **`brain_diff`** | Git-style diff for AI knowledge โ€” shows exactly what was learned, forgotten, or updated across sessions |
41
- | **`causal_trace`** | Root cause analysis through memory โ€” given a problem, traces backwards through the knowledge graph to find what caused it |
42
- | **`knowledge_decay`** | Temporal confidence scoring โ€” every memory gets a freshness score that decays with time and rebounds with each recall |
43
- | **`autopilot`** | Zero-config AI memory โ€” generates a CLAUDE.md that makes any AI manage its own brain automatically, forever |
32
+ ## ๐Ÿ†• v0.6 โ€” Cognitive Cache: Your AI Brain now *thinks* about what it knows
44
33
 
45
- This is not a tool you use. This is infrastructure that makes AI genuinely intelligent over time.
34
+ > Redis stores bytes. LangChain stores text. **cachly v0.6 reasons over knowledge.**
46
35
 
47
- ---
36
+ ### The 5 tools no other memory system has:
48
37
 
49
- ## One command. Permanent memory. No copy-paste.
38
+ | Tool | What it does | Why it's different |
39
+ |---|---|---|
40
+ | `memory_consolidate` | Weekly garbage collector โ€” detects contradictions, merges duplicates, expires stale | Like `git gc` for knowledge |
41
+ | `brain_diff` | `git log` for your AI Brain โ€” what changed this week? | See your AI's learning velocity |
42
+ | `causal_trace` | Root Cause Analysis through memory: problem โ†’ chain โ†’ solution | **No other system can do this** |
43
+ | `knowledge_decay` | Confidence score per lesson: `โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘ 40%` | Old knowledge rots. Now you know which |
44
+ | `autopilot` | Generates CLAUDE.md that makes any AI self-managing, forever | Zero manual calls. One command. Done. |
50
45
 
51
- ```bash
52
- npx @cachly-dev/mcp-server@latest setup
46
+ **The `causal_trace` moment:**
53
47
  ```
48
+ causal_trace(problem="auth breaks after restart")
54
49
 
55
- Browser opens โ†’ sign in โ†’ Brain provisioned โ†’ every editor configured automatically.
56
- No dashboard visit. No API keys to copy. No instance IDs to manage.
50
+ โ†’ Root: k8s:namespace-terminating
51
+ โ†’ Via: keycloak:jwks-race
52
+ โ†’ Fix: PollUntilContextTimeout 3min โ† used this March 12, worked
53
+ ```
54
+ *30 minutes of git blame + log archaeology. In one call.*
57
55
 
58
56
  ---
59
57
 
60
- ## What it looks like
58
+ ## The Problem
61
59
 
62
- Every session starts with this instead of a blank slate:
60
+ Every morning, you open your AI coding assistant. It doesn't remember yesterday.
61
+ You explain your architecture. You explain the deployment process. You explain the bug you fixed last week.
63
62
 
64
- ```
65
- ๐Ÿง  Session Briefing
63
+ **The average developer wastes 45 minutes/day re-establishing context.** That's โ‚ฌ15,000+ in lost productivity per engineer per year.
66
64
 
67
- ๐Ÿ“… Last session (2h ago): Fixed auth redirect loop in Next.js middleware
68
- Duration: 47 min ยท Files: middleware.ts, auth.config.ts, .env.local
65
+ ## The Fix โ€” One Command
69
66
 
70
- ๐Ÿ“Š Brain: 23 lessons ยท 5 context entries ยท 38 recalls ยท ~9.5h saved
67
+ ```bash
68
+ npx @cachly-dev/mcp-server@latest setup
69
+ ```
71
70
 
72
- ๐ŸŽฏ Relevant for "auth":
73
- โœ… next:middleware-auth โ€” matcher must exclude /_next/static paths (negative lookahead)
74
- โœ… keycloak:refresh-token โ€” use httpOnly cookie, not localStorage โ€” Safari blocks third-party
75
- โŒ oauth:pkce โ€” PKCE + CORS broken in Safari 16.3, still unresolved
71
+ The interactive wizard:
72
+ 1. Signs you in (free, no credit card required)
73
+ 2. Picks or creates your AI Brain instance
74
+ 3. **Auto-detects** Cursor, Windsurf, VS Code, Claude Code, Continue.dev, **Cline & Zed**
75
+ 4. Writes the correct MCP config for every detected editor
76
+ 5. Creates `CLAUDE.md` with memory rules pre-filled
77
+ 6. Shows your Brain Health snapshot right in the terminal
76
78
 
77
- ๐Ÿ• Recent lessons:
78
- โœ… redis:pipeline-batching โ€” pipeline() for N writes, 10ร— faster than sequential
79
- โœ… deploy:healthcheck โ€” readinessProbe.failureThreshold must be โ‰ฅ 10 on cold starts
80
- โœ… typescript:strictNullChecks โ€” enable in tsconfig, catches 30% of runtime errors at compile time
79
+ **Index your project** into the Brain for instant semantic search:
80
+ ```bash
81
+ npx @cachly-dev/mcp-server@latest index .
81
82
  ```
82
83
 
83
- Your AI arrives pre-briefed. No repeating yourself. No re-explaining the architecture.
84
+ **Result:** Your AI remembers everything. Always.
84
85
 
85
86
  ---
86
87
 
87
- ## The Cognitive Cache in Action
88
-
89
- ### Root Cause Analysis Through Memory
90
-
91
- ```
92
- causal_trace(problem="auth fails after namespace restart")
88
+ ## Quick Start (Manual)
93
89
 
94
- ๐Ÿ” Causal Trace โ€” "auth fails after namespace restart"
90
+ **Step 1 โ€” Get your free credentials** at [cachly.dev](https://cachly.dev) (25 MB free, forever, no credit card).
95
91
 
96
- Found 7 related memories (3 failures ยท 1 partial ยท 2 fixes)
92
+ **Step 2 โ€” Add to your editor's MCP config:**
97
93
 
98
- โŒ Root causes / similar failures:
99
- 1. [12.03.2025] ๐Ÿ”ด `k8s:namespace-terminating` (relevance 9/10)
100
- โ†ณ Cannot create resources in Terminating namespace โ€” must wait for full deletion
101
- 2. [08.02.2025] ๐ŸŸก `keycloak:jwks-cache-race` (relevance 6/10)
102
- โ†ณ Concurrent JWKS map access panics under load โ€” needs RWMutex
94
+ <details>
95
+ <summary><b>Claude Code</b> (<code>~/.claude/mcp.json</code> or <code>.mcp.json</code>)</summary>
103
96
 
104
- โœ… What solved similar problems:
105
- โ€ข `k8s:namespace-wait` โ€” PollUntilContextTimeout 3min loop until NotFound
106
- โ€ข `auth:jwks-singleton` โ€” double-checked locking pattern, init once on startup
97
+ ```json
98
+ {
99
+ "mcpServers": {
100
+ "cachly": {
101
+ "type": "stdio",
102
+ "command": "npx",
103
+ "args": ["-y", "@cachly-dev/mcp-server@latest"],
104
+ "env": {
105
+ "CACHLY_JWT": "your-jwt-token",
106
+ "CACHLY_INSTANCE_ID": "your-instance-id"
107
107
 
108
- ๐Ÿงฉ Likely causal chain:
109
- `k8s:namespace-terminating`
110
- โ†“ led to `keycloak:jwks-cache-race`
111
- โ†“ current symptom: auth fails after namespace restart
108
+ Every morning, you open your AI coding assistant. It doesn't remember yesterday.
109
+ You explain your architecture. You explain the deployment process. You explain the bug you fixed last week.
112
110
 
113
- ๐ŸŽฏ Recommended fix: apply `k8s:namespace-wait` solution
114
- ```
111
+ **The average developer wastes 45 minutes/day re-establishing context.** That's โ‚ฌ15,000+ in lost productivity per engineer per year.
115
112
 
116
- ### Knowledge Decay โ€” Trust What's Still True
113
+ ## The Fix โ€” One Command
117
114
 
115
+ ```bash
116
+ npx @cachly-dev/mcp-server@latest setup
118
117
  ```
119
- knowledge_decay(threshold_days=30)
120
118
 
121
- โฑ๏ธ Knowledge Decay Analysis
119
+ The interactive wizard:
120
+ 1. Signs you in (free, no credit card required)
121
+ 2. Picks or creates your AI Brain instance
122
+ 3. **Auto-detects** Cursor, Windsurf, VS Code, Claude Code, Continue.dev, **Cline & Zed**
123
+ 4. Writes the correct MCP config for every detected editor
124
+ 5. Creates `CLAUDE.md` with memory rules pre-filled
125
+ 6. Shows your Brain Health snapshot right in the terminal
122
126
 
123
- ๐Ÿง  31 total memories ยท 24 healthy (avg 88% confidence) ยท 7 decaying
124
-
125
- โš ๏ธ 7 memories need re-verification:
126
-
127
- โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 100% โ€” `auth:jwt-refresh` (3d old ยท recalled 5ร—)
128
- โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘ 80% ๐ŸŸก `k8s:resource-limits` (45d old ยท recalled 1ร—)
129
- โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘ 52% `deploy:docker-compose` (78d old ยท recalled 0ร—)
130
- โ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 31% ๐Ÿ”ด `stripe:webhook-secret` (112d old ยท recalled 0ร—)
131
- โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 22% `react:concurrent-mode` (140d old ยท recalled 0ร—)
132
-
133
- ๐Ÿ’ก Re-validate top decaying memories before critical tasks.
127
+ **Index your project** into the Brain for instant semantic search:
128
+ ```bash
129
+ npx @cachly-dev/mcp-server@latest index .
134
130
  ```
135
131
 
136
- ### Brain Diff โ€” See What You've Learned
132
+ **Result:** Your AI remembers everything. Always.
137
133
 
138
- ```
139
- brain_diff(since_sessions=5)
134
+ ---
140
135
 
141
- ๐Ÿ“Š Brain Diff โ€” knowledge delta over last 5 sessions
136
+ ## Quick Start (Manual)
142
137
 
143
- ๐Ÿง  Total: 31 lessons ยท +12 new ยท 19 pre-existing
138
+ **Step 1 โ€” Get your free credentials** at [cachly.dev](https://cachly.dev) (25 MB free, forever, no credit card).
144
139
 
145
- ๐Ÿ“… Sessions covered:
146
- โ€ข 04.05.2026 (23m) โ€” Fixed auth redirect loop + pushed to main
147
- โ€ข 03.05.2026 (61m) โ€” K8s provisioner: namespace termination wait
148
- โ€ข 02.05.2026 (34m) โ€” Token refresh + JWKS race condition
140
+ **Step 2 โ€” Add to your editor's MCP config:**
149
141
 
150
- โž• 12 new lessons learned:
151
- โœ… ๐Ÿ”ด `auth:token-refresh` โ€” Store refresh token in JWT callback, refresh at <60s TTL
152
- โœ… ๐ŸŸก `k8s:namespace-terminating` โ€” Wait 3min via PollUntilContextTimeout before recreate
153
- โœ… ๐ŸŸก `api:status-codes` โ€” Always 201 for paid tier; checkout_url in body is the signal
154
- โŒ `stripe:402-redirect` โ€” 402 blocks fetch(), use 201 + JSON body for checkout flow
155
- โ€ฆand 8 more
142
+ <details>
143
+ <summary><b>Claude Code</b> (<code>~/.claude/mcp.json</code> or <code>.mcp.json</code>)</summary>
156
144
 
157
- ๐Ÿ“š 19 lessons unchanged (stable knowledge base)
145
+ ```json
146
+ {
147
+ "mcpServers": {
148
+ "cachly": {
149
+ "type": "stdio",
150
+ "command": "npx",
151
+ "args": ["-y", "@cachly-dev/mcp-server@latest"],
152
+ "env": {
153
+ "CACHLY_JWT": "your-jwt-token",
154
+ "CACHLY_INSTANCE_ID": "your-instance-id"
155
+ }
156
+ }
157
+ }
158
+ }
158
159
  ```
160
+ </details>
159
161
 
160
- ### Autopilot โ€” Zero-Config Forever Memory
162
+ <details>
163
+ <summary><b>Cursor / Windsurf / VS Code</b> (<code>.cursor/mcp.json</code> / <code>.mcp.json</code>)</summary>
161
164
 
165
+ ```json
166
+ {
167
+ "servers": {
168
+ "cachly": {
169
+ "type": "stdio",
170
+ "command": "npx",
171
+ "args": ["-y", "@cachly-dev/mcp-server@latest"],
172
+ "env": {
173
+ "CACHLY_JWT": "your-jwt-token",
174
+ "CACHLY_INSTANCE_ID": "your-instance-id"
175
+ }
176
+ }
177
+ }
178
+ }
162
179
  ```
163
- autopilot(instance_id="...", project_dir="/home/you/myproject", write=true)
164
-
165
- ๐Ÿค– cachly Autopilot โ€” zero-config AI memory for myproject
166
-
167
- Brain: 31 lessons stored ยท Instance: `a1b2c3d4โ€ฆ`
180
+ </details>
168
181
 
169
- โœ… Written to:
170
- โ€ข /home/you/myproject/CLAUDE.md
171
- โ€ข /home/you/myproject/.github/copilot-instructions.md
182
+ **Step 3 โ€” Add to `CLAUDE.md` / `.github/copilot-instructions.md`:**
172
183
 
173
- ๐ŸŽฏ Autopilot is live. This AI โ€” and any other AI on this project โ€”
174
- will now manage memory automatically.
184
+ ```markdown
185
+ ## AI Brain Rules (cachly)
186
+ - Call session_start BEFORE reading any files or making changes
187
+ - Call learn_from_attempts AFTER every fix, deploy, or discovery
188
+ - Call session_end when closing the window
175
189
  ```
176
190
 
177
- From that point on: no manual `session_start`, no manual `learn_from_attempts`, no manual `session_end`. The AI does it all, every time, forever.
178
-
179
191
  ---
180
192
 
181
- ## Before vs. After
193
+ ## With vs. Without cachly
182
194
 
183
195
  | Situation | Without cachly | With cachly |
184
196
  |-----------|----------------|-------------|
185
- | Session start | "What's your architecture?" | Briefed in 2s โ€” lessons, last session, open failures |
186
- | Bug hits again | Re-researches from scratch (20โ€“40 min) | "You fixed this on March 12, exact command: `kubectl rollout restart`" |
187
- | "Why is X broken?" | Manual investigation from scratch | `causal_trace` traces root cause through memory in seconds |
188
- | "Can I trust this lesson?" | No way to know | `knowledge_decay` shows confidence % per memory |
189
- | After holiday | Context completely dead | Full context restored, team lessons visible |
190
- | New team member | Weeks to onboard | `session_start` gives full codebase context instantly |
191
- | Model switch | Start over with new AI | Brain is model-agnostic โ€” Claude, GPT-4, Gemini, all share one brain |
192
- | Context limit | Lose everything | `compact_recover` restores checkpoint + lessons in one call |
197
+ | Session start | "What's your architecture?" | "Ready. 23 lessons, last session: deployed API." |
198
+ | Known bug hits again | Re-researches from scratch | "You fixed this on March 12, here's the exact command" |
199
+ | After holiday / team handoff | Context dead | Fully briefed in < 10 seconds |
200
+ | Repeated LLM patterns | Pays for each re-discovery | Cached by meaning, ~1,200 tokens saved per hit |
201
+ | New team member | Weeks to onboard | `session_start` gives full context instantly |
193
202
 
194
203
  ---
195
204
 
196
- ## Bootstrap from Git History
197
-
198
- ```bash
199
- npx @cachly-dev/mcp-server@latest learn
200
- ```
205
+ ## 51 MCP Tools
201
206
 
202
- **One command. 2 years of team knowledge. 30 seconds.**
207
+ ### ๐Ÿง  Session & Memory (most used)
203
208
 
204
- `brain_from_git` reads your git log and extracts lessons automatically:
209
+ | Tool | What it does |
210
+ |------|-------------|
211
+ | **`session_start`** | Full briefing: last session summary, open failures, recent lessons, brain health |
212
+ | **`session_end`** | Save what you built, auto-extract lessons from summary + ambient git log |
213
+ | **`session_handoff`** | Hand off remaining tasks to next window, with context |
214
+ | **`auto_learn_session`** | Batch-learn from a list of observations |
215
+ | **`sync_file_changes`** | Sync changed files into brain index |
216
+ | **`learn_from_attempts`** | Store structured lessons after any fix, deploy, or discovery |
217
+ | **`recall_best_solution`** | Best known solution for a topic โ€” with success/failure history |
218
+ | **`recall_at`** | Recall a lesson at a specific point in time |
219
+ | **`remember_context`** | Cache architecture findings, decisions, file summaries |
220
+ | **`recall_context`** | Get exact context by key (supports glob) |
221
+ | **`list_remembered`** | See all cached context entries |
222
+ | **`forget_context`** | Remove stale context |
223
+ | **`smart_recall`** | BM25+ full-text search across all brain data โ€” multilingual: EN, DE, FR, ES, IT, PT, ZH, JA, KO, **AR, HE** |
224
+ | **`setup_ai_memory`** | Interactive wizard to configure AI memory |
225
+
226
+ ### ๐ŸŒ Multilingual Brain โ€” Search in Any Language
227
+
228
+ The Brain's search engine understands **11 languages natively** โ€” no configuration required.
229
+
230
+ | Script | Languages | Tokenization |
231
+ |--------|-----------|-------------|
232
+ | Latin | EN, DE, FR, ES, IT, PT | Whitespace + stopwords |
233
+ | CJK | Chinese (ZH), Japanese (JA), Korean (KO) | Character bigrams |
234
+ | RTL | Arabic (AR), Hebrew (HE) | Word tokenization + light stemming |
235
+
236
+ **Romanization matching** โ€” store lessons in Japanese, search in romaji:
237
+ ```
238
+ smart_recall("kontena") โ†’ finds ใ‚ณใƒณใƒ†ใƒŠ docs
239
+ smart_recall("depuroi") โ†’ finds ใƒ‡ใƒ—ใƒญใ‚ค docs
240
+ ```
205
241
 
242
+ **Cross-language retrieval** โ€” 130+ tech term synonyms ENโ†”JAโ†”ZHโ†”KOโ†”ARโ†”HE:
206
243
  ```
207
- ๐Ÿง  Brain bootstrapped from git history
208
-
209
- ๐Ÿ“Š Scanned: 342 commits over last 180 days
210
- โœ… Success lessons: 28 โŒ Failure/revert lessons: 9
211
- ๐Ÿ“ Hotspot files tracked: 12
212
- ๐Ÿ’พ Total stored: 31 new lessons
213
-
214
- Top lessons extracted:
215
- โœ…๐ŸŸก `auth:jwt-refresh-token` โ€” Use httpOnly cookie, not localStorage โ€” Safari blocks third-party
216
- โŒ๐Ÿ”ด `deploy:docker-compose-detach` โ€” Reverted: "docker compose up without -d blocks SSH terminal"
217
- โœ…๐ŸŸก `redis:connection-pool-timeout` โ€” connectTimeout:5000 + retryStrategy:null prevents hangs
218
- โŒ๐Ÿ”ด `auth:pkce-safari-16` โ€” PKCE flow broken Safari 16.3, still unresolved
244
+ smart_recall("deploy") โ†’ finds ใƒ‡ใƒ—ใƒญใ‚ค, ้ƒจ็ฝฒ, ๋ฐฐํฌ, ู†ุดุฑ, ืคืจื™ืกื”
245
+ smart_recall("ใƒ‡ใƒ—ใƒญใ‚ค") โ†’ finds "deploy", "deployment"
246
+ smart_recall("ุฎุทุฃ") โ†’ finds "error", ใ‚จใƒฉใƒผ, ้”™่ฏฏ
219
247
  ```
220
248
 
221
- ---
249
+ ### ๐Ÿ’ก Legendary Brain Features
222
250
 
223
- ## Full Tool Reference
251
+ | Feature | How it works |
252
+ |---------|-------------|
253
+ | **Team Telepathy** | Multi-dev Brain: the `author` param on `learn_from_attempts` shares fixes across the whole team. Every `session_start` shows colleagues' lessons. |
254
+ | **Ambient Git Learning** | Pass `workspace_path` to `session_end` โ€” it auto-reads `git log`, stores recent commits as Brain lessons. Zero extra calls. |
255
+ | **Memory Crystals** | `memory_crystalize` distills all lessons into a compact Crystal injected at every `session_start`. AI arrives pre-loaded with team knowledge. |
256
+ | **IQ Boost** | `brain_doctor` reports `iq_boost_pct` โ€” how much smarter your AI gets vs. baseline from cached lessons. |
224
257
 
225
- ### Cognitive Cache (v0.6 โ€” new)
258
+ ### โš™๏ธ Instance Management
226
259
 
227
260
  | Tool | What it does |
228
261
  |------|-------------|
229
- | **`memory_consolidate`** | Distill knowledge base: detect contradictions, merge duplicates, prune stale. Knowledge health score 0โ€“100. |
230
- | **`brain_diff`** | Git-style diff for AI knowledge โ€” what was learned, updated, or went stale since N sessions |
231
- | **`causal_trace`** | Root cause analysis: given a problem, traces backwards through memory to find cause + recommended fix |
232
- | **`knowledge_decay`** | Temporal confidence per memory โ€” decay by age, recover by recall frequency |
233
- | **`autopilot`** | Generates and optionally writes CLAUDE.md that makes any AI fully self-managing |
262
+ | `list_instances` | List all your cache instances |
263
+ | `create_instance` | Spin up a new instance (free or paid) |
264
+ | `get_connection_string` | Get the `redis://` URL for your app |
265
+ | `delete_instance` | Remove an instance |
266
+ | `get_real_time_stats` | Memory, hit rate, ops/sec |
234
267
 
235
- ### Session & Memory
268
+ ### ๐Ÿ—„๏ธ Cache Operations
236
269
 
237
270
  | Tool | What it does |
238
271
  |------|-------------|
239
- | **`session_start`** | Full briefing: last session, open TODOs, checkpoint, lessons, brain stats |
240
- | **`session_end`** | Save session + auto-refresh CLAUDE.md with top lessons inline |
241
- | **`session_ping`** | Cross-provider checkpoint โ€” switch Claudeโ†”Copilotโ†”Cursor seamlessly |
242
- | **`compact_recover`** | One call after context compaction โ€” restores checkpoint + TODOs + critical lessons |
243
- | **`brain_from_git`** | Bootstrap brain from git history โ€” no manual lesson writing required |
244
- | **`learn_from_attempts`** | Store lessons after any fix, deploy, or discovery |
245
- | **`recall_best_solution`** | Best known fix for a topic โ€” with full success/failure history |
246
- | **`smart_recall`** | Full-text search across all brain data (BM25+) |
247
- | **`todo_add`** / **`todo_done`** | Persistent TODOs โ€” survive sessions, compaction, provider switches |
248
- | **`refresh_claude_md`** | Embed top lessons inline in CLAUDE.md โ€” ambient brain without tool calls |
249
- | **`remember_context`** / **`recall_context`** | Save/restore architecture findings, file summaries, ADRs |
250
- | **`auto_learn_session`** | Batch-store multiple observations at session end |
251
- | **`sync_file_changes`** | Track file change history, surface related lessons per file |
252
-
253
- ### Team Brain
272
+ | `cache_get` / `cache_set` / `cache_delete` | Standard cache operations |
273
+ | `cache_mget` / `cache_mset` | Bulk pipeline (single round-trip) |
274
+ | `cache_lock_acquire` / `cache_lock_release` | Distributed Redlock-lite |
275
+ | `cache_stream_set` / `cache_stream_get` | LLM token stream caching |
276
+
277
+ ### ๐Ÿ” Semantic Cache
254
278
 
255
279
  | Tool | What it does |
256
280
  |------|-------------|
257
- | **`team_learn`** / **`team_recall`** | Share lessons across the whole team on a shared instance |
258
- | **`invite_link`** | Generate `npx ... join <token>` โ€” teammate connects in one command |
259
- | **`global_learn`** / **`global_recall`** | Cross-project global knowledge base |
260
- | **`publish_lesson`** / **`import_public_brain`** | Share knowledge with the community |
261
- | **`brain_stats`** | Dashboard: lessons, recalls, time saved, top topics, team authors |
262
- | **`export_brain`** | Full Markdown export โ€” share, archive, or import |
263
- | **`brain_doctor`** | Health check: lesson quality, open failures, recommendations |
281
+ | `semantic_search` | Find cached entries by meaning (pgvector HNSW, EU-hosted) |
282
+ | `semantic_warmup` | Pre-warm cache with prompt/response pairs |
283
+ | `detect_namespace` | Auto-classify prompt into code/qa/summary/translation/creative |
264
284
 
265
- ### Cache & Infrastructure
285
+ ### ๐Ÿ‘ฅ Team Brain
266
286
 
267
287
  | Tool | What it does |
268
288
  |------|-------------|
269
- | `cache_get` / `cache_set` / `cache_delete` | Standard Redis/Valkey operations |
270
- | `cache_mget` / `cache_mset` | Bulk pipeline (single round-trip) |
271
- | `cache_stats` | Memory, hit rate, ops/sec, keyspace info |
272
- | `semantic_search` | Find cached entries by meaning (vector search, EU-hosted) |
273
- | `cache_warmup` | Pre-warm cache from file or URL list |
274
- | `cache_lock_acquire` / `cache_lock_release` | Distributed locking |
275
- | `cache_stream_set` / `cache_stream_get` | Cache streaming LLM responses in chunks |
276
- | `get_connection_string` | Get the `redis://` URL for your own app |
289
+ | `team_learn` / `team_recall` | Share lessons across the team |
290
+ | `team_synthesize` | Consolidate multiple lessons into one authoritative version |
291
+ | `memory_crystalize` | Distill all lessons into a Crystal snapshot for instant team context |
292
+ | `brain_doctor` | Health check: lesson count, IQ boost %, open failures, quality score |
293
+ | `global_learn` / `global_recall` | Cross-project universal lessons |
294
+ | `publish_lesson` / `import_public_brain` | Share/import community knowledge |
295
+ | `trace_dependency` | Causal chain โ€” find lessons affected by a dependency change |
296
+ | `list_orgs` / `create_org` | Manage team organizations |
297
+ | `invite_member` / `get_org_plan` | Invite a developer to your org by email |
277
298
 
278
299
  ---
279
300
 
@@ -281,82 +302,13 @@ Top lessons extracted:
281
302
 
282
303
  | Tier | RAM | Price | Best for |
283
304
  |------|-----|-------|----------|
284
- | **Free** | 25 MB | **โ‚ฌ0/mo forever** | Side projects & solo devs |
305
+ | **Free** | 25 MB | **โ‚ฌ0/mo forever** | Dev & side projects |
285
306
  | **Dev** | 200 MB | โ‚ฌ19/mo | Individual developers |
286
- | **Pro** | 900 MB | โ‚ฌ49/mo | Teams (shared brain) |
287
- | **Speed** | 900 MB + Dragonfly + Semantic | โ‚ฌ79/mo | AI-heavy workloads |
307
+ | **Pro** | 900 MB | โ‚ฌ49/mo | Teams |
308
+ | **Speed** | 900 MB + Dragonfly + Semantic Cache | โ‚ฌ79/mo | AI-heavy workloads |
288
309
  | **Business** | 7 GB | โ‚ฌ199/mo | Scale-ups |
289
310
 
290
- โœ… All plans: **German servers ยท GDPR-compliant ยท 99.9% SLA ยท no credit card for Free**
291
-
292
- ---
293
-
294
- ## Manual Setup
295
-
296
- <details>
297
- <summary>Claude Code (<code>~/.claude/mcp.json</code> or <code>.mcp.json</code>)</summary>
298
-
299
- ```json
300
- {
301
- "mcpServers": {
302
- "cachly": {
303
- "type": "stdio",
304
- "command": "npx",
305
- "args": ["-y", "@cachly-dev/mcp-server@latest"],
306
- "env": {
307
- "CACHLY_JWT": "your-api-key",
308
- "CACHLY_BRAIN_INSTANCE_ID": "your-instance-id"
309
- }
310
- }
311
- }
312
- }
313
- ```
314
- </details>
315
-
316
- <details>
317
- <summary>Cursor / Windsurf (<code>.cursor/mcp.json</code> or <code>.mcp.json</code>)</summary>
318
-
319
- ```json
320
- {
321
- "servers": {
322
- "cachly": {
323
- "type": "stdio",
324
- "command": "npx",
325
- "args": ["-y", "@cachly-dev/mcp-server@latest"],
326
- "env": {
327
- "CACHLY_JWT": "your-api-key",
328
- "CACHLY_BRAIN_INSTANCE_ID": "your-instance-id"
329
- }
330
- }
331
- }
332
- }
333
- ```
334
- </details>
335
-
336
- <details>
337
- <summary>Autopilot CLAUDE.md (generated by <code>autopilot</code> tool)</summary>
338
-
339
- ```markdown
340
- # My Project โ€” cachly AI Brain (Autopilot)
341
-
342
- > Brain instance: `your-instance-id` ยท 31 lessons stored
343
-
344
- ## Memory Protocol โ€” follow these rules automatically, every session
345
-
346
- ### SESSION START (before any work)
347
- mcp__cachly__compact_recover({"instance_id":"..."})
348
- mcp__cachly__smart_recall({"instance_id":"...","query":"<describe your task>"})
349
-
350
- ### WHEN SOMETHING WORKS
351
- mcp__cachly__learn_from_attempts({"instance_id":"...","topic":"<topic>","outcome":"success","what_worked":"<solution>","severity":"major"})
352
-
353
- ### ROOT CAUSE ANALYSIS
354
- mcp__cachly__causal_trace({"instance_id":"...","problem":"<symptom>"})
355
-
356
- ### SESSION END (always)
357
- mcp__cachly__session_end({"instance_id":"...","summary":"<one sentence>","files_changed":["..."]})
358
- ```
359
- </details>
311
+ โœ… All plans: **German servers ยท GDPR-compliant ยท 99.9% SLA ยท No credit card for Free tier**
360
312
 
361
313
  ---
362
314
 
@@ -364,27 +316,30 @@ mcp__cachly__session_end({"instance_id":"...","summary":"<one sentence>","files_
364
316
 
365
317
  | Variable | Default | Description |
366
318
  |----------|---------|-------------|
367
- | `CACHLY_JWT` | โ€” | **Required.** API key or JWT from the setup wizard |
368
- | `CACHLY_BRAIN_INSTANCE_ID` | โ€” | Default instance UUID โ€” set once, works in all tools |
319
+ | `CACHLY_JWT` | โ€” | **Required.** Your API token from [cachly.dev](https://cachly.dev) |
320
+ | `CACHLY_INSTANCE_ID` | โ€” | Default instance UUID (optional if you pass per-call) |
369
321
  | `CACHLY_API_URL` | `https://api.cachly.dev` | Override for self-hosted |
370
- | `CACHLY_EMBED_PROVIDER` | auto-detect | `openai` \| `gemini` \| `mistral` \| `cohere` \| `ollama` \| `cachly` |
371
- | `CACHLY_NO_TELEMETRY` | unset | Set to `1` to opt out of anonymous usage pings |
322
+ | `CACHLY_NO_TELEMETRY` | unset | Set to `1` to disable anonymous usage pings |
323
+ | `CACHLY_NO_UPDATE_CHECK` | unset | Set to `1` to disable the version-check on startup |
372
324
 
373
325
  ---
374
326
 
375
- ## Ecosystem
327
+ ## ๐Ÿ› ๏ธ Ecosystem
376
328
 
377
329
  | Package | What it does |
378
330
  |---------|-------------|
379
- | **[`@cachly-dev/mcp-server`](https://www.npmjs.com/package/@cachly-dev/mcp-server)** | โ† you are here โ€” Cognitive Cache MCP for Claude, Cursor, Copilot, Windsurf |
380
- | **[`cachly-brain` (VS Code)](https://marketplace.visualstudio.com/items?itemName=cachly.cachly-brain)** | VS Code extension โ€” status bar, CodeLens lessons, one-click setup |
381
- | **[`@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 |
382
- | **[`@cachly-dev/sdk`](https://www.npmjs.com/package/@cachly-dev/sdk)** | Node.js SDK โ€” managed Redis, semantic cache & AI memory in your app |
331
+ | **[`@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 |
332
+ | **[`@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 |
333
+ | **[`@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` |
334
+ | **[`@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` |
335
+ | **[`@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 |
383
336
 
384
337
  ---
385
338
 
386
339
  ## Links
387
340
 
388
341
  - ๐ŸŒ [cachly.dev](https://cachly.dev) โ€” Dashboard & free signup
389
- - ๐Ÿ“– [Docs](https://cachly.dev/docs/ai-memory) โ€” Full documentation
390
- - ๐Ÿ’ฌ [Issues](https://github.com/cachly-dev/cachly-mcp/issues) โ€” Bug reports & feature requests
342
+ - ๐Ÿ“– [AI Brain docs](https://cachly.dev/docs/ai-memory) โ€” Full documentation
343
+ - ๐Ÿ’ฌ [GitHub Issues](https://github.com/cachly-dev/mcp-server/issues) โ€” Bug reports & feature requests
344
+ - โญ [Star on GitHub](https://github.com/cachly-dev/mcp-server) โ€” If cachly saves you time, a star means a lot!
345
+ - ๐Ÿ“ฆ [npm](https://www.npmjs.com/package/@cachly-dev/mcp-server)
@@ -0,0 +1 @@
1
+ export {};