@cachly-dev/mcp-server 0.6.0 โ†’ 0.6.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/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,204 @@
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:
32
+ ## The Problem
36
33
 
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 |
34
+ Every morning, you open your AI coding assistant. It doesn't remember yesterday.
35
+ You explain your architecture. You explain the deployment process. You explain the bug you fixed last week.
44
36
 
45
- This is not a tool you use. This is infrastructure that makes AI genuinely intelligent over time.
46
-
47
- ---
37
+ **The average developer wastes 45 minutes/day re-establishing context.** That's โ‚ฌ15,000+ in lost productivity per engineer per year.
48
38
 
49
- ## One command. Permanent memory. No copy-paste.
39
+ ## The Fix โ€” One Command
50
40
 
51
41
  ```bash
52
42
  npx @cachly-dev/mcp-server@latest setup
53
43
  ```
54
44
 
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.
57
-
58
- ---
59
-
60
- ## What it looks like
61
-
62
- Every session starts with this instead of a blank slate:
45
+ The interactive wizard:
46
+ 1. Signs you in (free, no credit card required)
47
+ 2. Picks or creates your AI Brain instance
48
+ 3. **Auto-detects** Cursor, Windsurf, VS Code, Claude Code, Continue.dev, **Cline & Zed**
49
+ 4. Writes the correct MCP config for every detected editor
50
+ 5. Creates `CLAUDE.md` with memory rules pre-filled
51
+ 6. Shows your Brain Health snapshot right in the terminal
63
52
 
64
- ```
65
- ๐Ÿง  Session Briefing
66
-
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
69
-
70
- ๐Ÿ“Š Brain: 23 lessons ยท 5 context entries ยท 38 recalls ยท ~9.5h saved
71
-
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
76
-
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
53
+ **Index your project** into the Brain for instant semantic search:
54
+ ```bash
55
+ npx @cachly-dev/mcp-server@latest index .
81
56
  ```
82
57
 
83
- Your AI arrives pre-briefed. No repeating yourself. No re-explaining the architecture.
58
+ **Result:** Your AI remembers everything. Always.
84
59
 
85
60
  ---
86
61
 
87
- ## The Cognitive Cache in Action
88
-
89
- ### Root Cause Analysis Through Memory
90
-
91
- ```
92
- causal_trace(problem="auth fails after namespace restart")
93
-
94
- ๐Ÿ” Causal Trace โ€” "auth fails after namespace restart"
95
-
96
- Found 7 related memories (3 failures ยท 1 partial ยท 2 fixes)
97
-
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
103
-
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
107
-
108
- ๐Ÿงฉ Likely causal chain:
109
- `k8s:namespace-terminating`
110
- โ†“ led to `keycloak:jwks-cache-race`
111
- โ†“ current symptom: auth fails after namespace restart
112
-
113
- ๐ŸŽฏ Recommended fix: apply `k8s:namespace-wait` solution
114
- ```
115
-
116
- ### Knowledge Decay โ€” Trust What's Still True
117
-
118
- ```
119
- knowledge_decay(threshold_days=30)
120
-
121
- โฑ๏ธ Knowledge Decay Analysis
122
-
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.
134
- ```
135
-
136
- ### Brain Diff โ€” See What You've Learned
137
-
138
- ```
139
- brain_diff(since_sessions=5)
140
-
141
- ๐Ÿ“Š Brain Diff โ€” knowledge delta over last 5 sessions
62
+ ## Quick Start (Manual)
142
63
 
143
- ๐Ÿง  Total: 31 lessons ยท +12 new ยท 19 pre-existing
64
+ **Step 1 โ€” Get your free credentials** at [cachly.dev](https://cachly.dev) (25 MB free, forever, no credit card).
144
65
 
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
66
+ **Step 2 โ€” Add to your editor's MCP config:**
149
67
 
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
68
+ <details>
69
+ <summary><b>Claude Code</b> (<code>~/.claude/mcp.json</code> or <code>.mcp.json</code>)</summary>
156
70
 
157
- ๐Ÿ“š 19 lessons unchanged (stable knowledge base)
71
+ ```json
72
+ {
73
+ "mcpServers": {
74
+ "cachly": {
75
+ "type": "stdio",
76
+ "command": "npx",
77
+ "args": ["-y", "@cachly-dev/mcp-server@latest"],
78
+ "env": {
79
+ "CACHLY_JWT": "your-jwt-token",
80
+ "CACHLY_INSTANCE_ID": "your-instance-id"
81
+ }
82
+ }
83
+ }
84
+ }
158
85
  ```
86
+ </details>
159
87
 
160
- ### Autopilot โ€” Zero-Config Forever Memory
88
+ <details>
89
+ <summary><b>Cursor / Windsurf / VS Code</b> (<code>.cursor/mcp.json</code> / <code>.mcp.json</code>)</summary>
161
90
 
91
+ ```json
92
+ {
93
+ "servers": {
94
+ "cachly": {
95
+ "type": "stdio",
96
+ "command": "npx",
97
+ "args": ["-y", "@cachly-dev/mcp-server@latest"],
98
+ "env": {
99
+ "CACHLY_JWT": "your-jwt-token",
100
+ "CACHLY_INSTANCE_ID": "your-instance-id"
101
+ }
102
+ }
103
+ }
104
+ }
162
105
  ```
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โ€ฆ`
106
+ </details>
168
107
 
169
- โœ… Written to:
170
- โ€ข /home/you/myproject/CLAUDE.md
171
- โ€ข /home/you/myproject/.github/copilot-instructions.md
108
+ **Step 3 โ€” Add to `CLAUDE.md` / `.github/copilot-instructions.md`:**
172
109
 
173
- ๐ŸŽฏ Autopilot is live. This AI โ€” and any other AI on this project โ€”
174
- will now manage memory automatically.
110
+ ```markdown
111
+ ## AI Brain Rules (cachly)
112
+ - Call session_start BEFORE reading any files or making changes
113
+ - Call learn_from_attempts AFTER every fix, deploy, or discovery
114
+ - Call session_end when closing the window
175
115
  ```
176
116
 
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
117
  ---
180
118
 
181
- ## Before vs. After
119
+ ## With vs. Without cachly
182
120
 
183
121
  | Situation | Without cachly | With cachly |
184
122
  |-----------|----------------|-------------|
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 |
123
+ | Session start | "What's your architecture?" | "Ready. 23 lessons, last session: deployed API." |
124
+ | Known bug hits again | Re-researches from scratch | "You fixed this on March 12, here's the exact command" |
125
+ | After holiday / team handoff | Context dead | Fully briefed in < 10 seconds |
126
+ | Repeated LLM patterns | Pays for each re-discovery | Cached by meaning, ~1,200 tokens saved per hit |
127
+ | New team member | Weeks to onboard | `session_start` gives full context instantly |
193
128
 
194
129
  ---
195
130
 
196
- ## Bootstrap from Git History
131
+ ## 51 MCP Tools
197
132
 
198
- ```bash
199
- npx @cachly-dev/mcp-server@latest learn
200
- ```
201
-
202
- **One command. 2 years of team knowledge. 30 seconds.**
133
+ ### ๐Ÿง  Session & Memory (most used)
203
134
 
204
- `brain_from_git` reads your git log and extracts lessons automatically:
135
+ | Tool | What it does |
136
+ |------|-------------|
137
+ | **`session_start`** | Full briefing: last session summary, open failures, recent lessons, brain health |
138
+ | **`session_end`** | Save what you built, auto-extract lessons from summary + ambient git log |
139
+ | **`session_handoff`** | Hand off remaining tasks to next window, with context |
140
+ | **`auto_learn_session`** | Batch-learn from a list of observations |
141
+ | **`sync_file_changes`** | Sync changed files into brain index |
142
+ | **`learn_from_attempts`** | Store structured lessons after any fix, deploy, or discovery |
143
+ | **`recall_best_solution`** | Best known solution for a topic โ€” with success/failure history |
144
+ | **`recall_at`** | Recall a lesson at a specific point in time |
145
+ | **`remember_context`** | Cache architecture findings, decisions, file summaries |
146
+ | **`recall_context`** | Get exact context by key (supports glob) |
147
+ | **`list_remembered`** | See all cached context entries |
148
+ | **`forget_context`** | Remove stale context |
149
+ | **`smart_recall`** | BM25+ full-text search across all brain data โ€” multilingual: EN, DE, FR, ES, IT, PT, ZH, JA, KO, **AR, HE** |
150
+ | **`setup_ai_memory`** | Interactive wizard to configure AI memory |
151
+
152
+ ### ๐ŸŒ Multilingual Brain โ€” Search in Any Language
153
+
154
+ The Brain's search engine understands **11 languages natively** โ€” no configuration required.
155
+
156
+ | Script | Languages | Tokenization |
157
+ |--------|-----------|-------------|
158
+ | Latin | EN, DE, FR, ES, IT, PT | Whitespace + stopwords |
159
+ | CJK | Chinese (ZH), Japanese (JA), Korean (KO) | Character bigrams |
160
+ | RTL | Arabic (AR), Hebrew (HE) | Word tokenization + light stemming |
161
+
162
+ **Romanization matching** โ€” store lessons in Japanese, search in romaji:
163
+ ```
164
+ smart_recall("kontena") โ†’ finds ใ‚ณใƒณใƒ†ใƒŠ docs
165
+ smart_recall("depuroi") โ†’ finds ใƒ‡ใƒ—ใƒญใ‚ค docs
166
+ ```
205
167
 
168
+ **Cross-language retrieval** โ€” 130+ tech term synonyms ENโ†”JAโ†”ZHโ†”KOโ†”ARโ†”HE:
206
169
  ```
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
170
+ smart_recall("deploy") โ†’ finds ใƒ‡ใƒ—ใƒญใ‚ค, ้ƒจ็ฝฒ, ๋ฐฐํฌ, ู†ุดุฑ, ืคืจื™ืกื”
171
+ smart_recall("ใƒ‡ใƒ—ใƒญใ‚ค") โ†’ finds "deploy", "deployment"
172
+ smart_recall("ุฎุทุฃ") โ†’ finds "error", ใ‚จใƒฉใƒผ, ้”™่ฏฏ
219
173
  ```
220
174
 
221
- ---
175
+ ### ๐Ÿ’ก Legendary Brain Features
222
176
 
223
- ## Full Tool Reference
177
+ | Feature | How it works |
178
+ |---------|-------------|
179
+ | **Team Telepathy** | Multi-dev Brain: the `author` param on `learn_from_attempts` shares fixes across the whole team. Every `session_start` shows colleagues' lessons. |
180
+ | **Ambient Git Learning** | Pass `workspace_path` to `session_end` โ€” it auto-reads `git log`, stores recent commits as Brain lessons. Zero extra calls. |
181
+ | **Memory Crystals** | `memory_crystalize` distills all lessons into a compact Crystal injected at every `session_start`. AI arrives pre-loaded with team knowledge. |
182
+ | **IQ Boost** | `brain_doctor` reports `iq_boost_pct` โ€” how much smarter your AI gets vs. baseline from cached lessons. |
224
183
 
225
- ### Cognitive Cache (v0.6 โ€” new)
184
+ ### โš™๏ธ Instance Management
226
185
 
227
186
  | Tool | What it does |
228
187
  |------|-------------|
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 |
188
+ | `list_instances` | List all your cache instances |
189
+ | `create_instance` | Spin up a new instance (free or paid) |
190
+ | `get_connection_string` | Get the `redis://` URL for your app |
191
+ | `delete_instance` | Remove an instance |
192
+ | `get_real_time_stats` | Memory, hit rate, ops/sec |
234
193
 
235
- ### Session & Memory
194
+ ### ๐Ÿ—„๏ธ Cache Operations
236
195
 
237
196
  | Tool | What it does |
238
197
  |------|-------------|
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
198
+ | `cache_get` / `cache_set` / `cache_delete` | Standard cache operations |
199
+ | `cache_mget` / `cache_mset` | Bulk pipeline (single round-trip) |
200
+ | `cache_lock_acquire` / `cache_lock_release` | Distributed Redlock-lite |
201
+ | `cache_stream_set` / `cache_stream_get` | LLM token stream caching |
202
+
203
+ ### ๐Ÿ” Semantic Cache
254
204
 
255
205
  | Tool | What it does |
256
206
  |------|-------------|
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 |
207
+ | `semantic_search` | Find cached entries by meaning (pgvector HNSW, EU-hosted) |
208
+ | `semantic_warmup` | Pre-warm cache with prompt/response pairs |
209
+ | `detect_namespace` | Auto-classify prompt into code/qa/summary/translation/creative |
264
210
 
265
- ### Cache & Infrastructure
211
+ ### ๐Ÿ‘ฅ Team Brain
266
212
 
267
213
  | Tool | What it does |
268
214
  |------|-------------|
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 |
215
+ | `team_learn` / `team_recall` | Share lessons across the team |
216
+ | `team_synthesize` | Consolidate multiple lessons into one authoritative version |
217
+ | `memory_crystalize` | Distill all lessons into a Crystal snapshot for instant team context |
218
+ | `brain_doctor` | Health check: lesson count, IQ boost %, open failures, quality score |
219
+ | `global_learn` / `global_recall` | Cross-project universal lessons |
220
+ | `publish_lesson` / `import_public_brain` | Share/import community knowledge |
221
+ | `trace_dependency` | Causal chain โ€” find lessons affected by a dependency change |
222
+ | `list_orgs` / `create_org` | Manage team organizations |
223
+ | `invite_member` / `get_org_plan` | Invite a developer to your org by email |
277
224
 
278
225
  ---
279
226
 
@@ -281,82 +228,13 @@ Top lessons extracted:
281
228
 
282
229
  | Tier | RAM | Price | Best for |
283
230
  |------|-----|-------|----------|
284
- | **Free** | 25 MB | **โ‚ฌ0/mo forever** | Side projects & solo devs |
231
+ | **Free** | 25 MB | **โ‚ฌ0/mo forever** | Dev & side projects |
285
232
  | **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 |
233
+ | **Pro** | 900 MB | โ‚ฌ49/mo | Teams |
234
+ | **Speed** | 900 MB + Dragonfly + Semantic Cache | โ‚ฌ79/mo | AI-heavy workloads |
288
235
  | **Business** | 7 GB | โ‚ฌ199/mo | Scale-ups |
289
236
 
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>
237
+ โœ… All plans: **German servers ยท GDPR-compliant ยท 99.9% SLA ยท No credit card for Free tier**
360
238
 
361
239
  ---
362
240
 
@@ -364,27 +242,30 @@ mcp__cachly__session_end({"instance_id":"...","summary":"<one sentence>","files_
364
242
 
365
243
  | Variable | Default | Description |
366
244
  |----------|---------|-------------|
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 |
245
+ | `CACHLY_JWT` | โ€” | **Required.** Your API token from [cachly.dev](https://cachly.dev) |
246
+ | `CACHLY_INSTANCE_ID` | โ€” | Default instance UUID (optional if you pass per-call) |
369
247
  | `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 |
248
+ | `CACHLY_NO_TELEMETRY` | unset | Set to `1` to disable anonymous usage pings |
249
+ | `CACHLY_NO_UPDATE_CHECK` | unset | Set to `1` to disable the version-check on startup |
372
250
 
373
251
  ---
374
252
 
375
- ## Ecosystem
253
+ ## ๐Ÿ› ๏ธ Ecosystem
376
254
 
377
255
  | Package | What it does |
378
256
  |---------|-------------|
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 |
257
+ | **[`@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 |
258
+ | **[`@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 |
259
+ | **[`@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` |
260
+ | **[`@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` |
261
+ | **[`@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
262
 
384
263
  ---
385
264
 
386
265
  ## Links
387
266
 
388
267
  - ๐ŸŒ [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
268
+ - ๐Ÿ“– [AI Brain docs](https://cachly.dev/docs/ai-memory) โ€” Full documentation
269
+ - ๐Ÿ’ฌ [GitHub Issues](https://github.com/cachly-dev/mcp-server/issues) โ€” Bug reports & feature requests
270
+ - โญ [Star on GitHub](https://github.com/cachly-dev/mcp-server) โ€” If cachly saves you time, a star means a lot!
271
+ - ๐Ÿ“ฆ [npm](https://www.npmjs.com/package/@cachly-dev/mcp-server)
@@ -0,0 +1 @@
1
+ export {};