@cachly-dev/mcp-server 0.9.8 โ 0.9.9
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 +30 -70
- package/Dockerfile +2 -4
- package/README.md +173 -310
- package/dist/index.js +22 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/server.json +1 -1
- package/src/index.ts +24 -8
- package/test-features.cjs +23 -0
- package/.github/workflows/publish.yml +0 -42
- package/LICENSE +0 -202
- package/glama.json +0 -6
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# cachly
|
|
1
|
+
# ๐ฎ cachly AI Brain โ MCP Server
|
|
2
2
|
|
|
3
|
-
> **
|
|
4
|
-
>
|
|
5
|
-
>
|
|
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/
|
|
9
|
-
<img src="https://img.shields.io/github/stars/cachly-dev/
|
|
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
|
|
|
12
12
|
<a href="https://www.npmjs.com/package/@cachly-dev/mcp-server">
|
|
@@ -30,21 +30,19 @@
|
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
|
33
|
-
## ๐
|
|
33
|
+
## ๐ v0.6 โ Cognitive Cache: Your AI Brain now *thinks* about what it knows
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
> Redis stores bytes. LangChain stores text. **cachly v0.6 reasons over knowledge.**
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
### The 5 tools no other memory system has:
|
|
38
38
|
|
|
39
|
-
|
|
|
40
|
-
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
|
|
|
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,367 +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
|
-
##
|
|
89
|
+
## Quick Start (Manual)
|
|
115
90
|
|
|
116
|
-
|
|
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
|
-
|
|
95
|
+
<details>
|
|
96
|
+
<summary><b>Claude Code</b> (<code>~/.claude/mcp.json</code> or <code>.mcp.json</code>)</summary>
|
|
122
97
|
|
|
123
|
-
|
|
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
|
-
|
|
126
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
116
|
+
```bash
|
|
117
|
+
npx @cachly-dev/mcp-server@latest setup
|
|
141
118
|
```
|
|
142
119
|
|
|
143
|
-
|
|
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
|
-
|
|
133
|
+
**Result:** Your AI remembers everything. Always.
|
|
149
134
|
|
|
150
|
-
|
|
135
|
+
---
|
|
151
136
|
|
|
152
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
169
|
-
|
|
170
|
-
โฑ๏ธ Knowledge Decay Analysis
|
|
161
|
+
</details>
|
|
171
162
|
|
|
172
|
-
|
|
163
|
+
<details>
|
|
164
|
+
<summary><b>Cursor / Windsurf / VS Code</b> (<code>.cursor/mcp.json</code> / <code>.mcp.json</code>)</summary>
|
|
173
165
|
|
|
174
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
194
|
+
## With vs. Without cachly
|
|
187
195
|
|
|
188
196
|
| Situation | Without cachly | With cachly |
|
|
189
197
|
|-----------|----------------|-------------|
|
|
190
|
-
| Session start | "What's your architecture?" |
|
|
191
|
-
|
|
|
192
|
-
|
|
|
193
|
-
|
|
|
194
|
-
|
|
|
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
|
-
##
|
|
206
|
+
## 51 MCP Tools
|
|
233
207
|
|
|
234
|
-
### ๐ง
|
|
208
|
+
### ๐ง Session & Memory (most used)
|
|
235
209
|
|
|
236
210
|
| Tool | What it does |
|
|
237
211
|
|------|-------------|
|
|
238
|
-
| **`
|
|
239
|
-
| **`
|
|
240
|
-
| **`
|
|
241
|
-
| **`
|
|
242
|
-
| **`
|
|
243
|
-
|
|
244
|
-
|
|
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
|
|
254
|
-
|
|
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
|
|
261
|
-
|
|
262
|
-
| Tool | What it does |
|
|
263
|
-
|------|-------------|
|
|
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
|
-
| **`
|
|
273
|
-
| **`
|
|
274
|
-
| **`list_remembered`**
|
|
275
|
-
| **`
|
|
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
|
-
###
|
|
279
|
-
|
|
280
|
-
Memory Crystals distill **everything** your AI brain has learned into a permanent, compact snapshot โ injected into every `session_start` automatically.
|
|
281
|
-
|
|
282
|
-
```
|
|
283
|
-
memory_crystalize(instance_id="...", label="May 2026")
|
|
284
|
-
|
|
285
|
-
๐ Memory Crystal created: May 2026
|
|
286
|
-
|
|
287
|
-
๐ Compressed: 47 sessions + 89 lessons โ 8 top patterns
|
|
288
|
-
|
|
289
|
-
Top patterns by category:
|
|
290
|
-
โข auth (12ร): Use httpOnly cookie for refresh token โ Safari blocks third-party localStorage
|
|
291
|
-
โข k8s (9ร): PollUntilContextTimeout 3min before namespace recreate
|
|
292
|
-
โข deploy (8ร): readinessProbe.failureThreshold must be โฅ 10 on cold starts
|
|
293
|
-
โข redis (6ร): pipeline() for N writes, 10ร faster than sequential
|
|
294
|
-
โฆand 4 more
|
|
295
|
-
|
|
296
|
-
๐ก This crystal will appear in every future session_start briefing.
|
|
297
|
-
๐ก Re-run memory_crystalize monthly to keep it fresh.
|
|
298
|
-
```
|
|
299
|
-
|
|
300
|
-
| Tool | What it does |
|
|
301
|
-
|------|-------------|
|
|
302
|
-
| **`memory_crystalize`** | Distill all sessions + lessons into a Crystal. Run monthly or after every major milestone. |
|
|
303
|
-
| **`crystal_view`** | Inspect the current Crystal: all patterns, freshness status, when to refresh. |
|
|
304
|
-
|
|
305
|
-
**`session_end` reminds you** automatically when the Crystal is missing or 30+ days old.
|
|
306
|
-
**`autopilot`** now generates CLAUDE.md with the monthly crystal schedule pre-wired.
|
|
307
|
-
|
|
308
|
-
---
|
|
309
|
-
|
|
310
|
-
### ๐บ๏ธ Roadmap
|
|
311
|
-
|
|
312
|
-
| Tool | What it does |
|
|
313
|
-
|------|-------------|
|
|
314
|
-
| **`roadmap_add`** | Add a feature/task to the persistent project roadmap |
|
|
315
|
-
| **`roadmap_update`** | Mark progress, change status, update priority |
|
|
316
|
-
| **`roadmap_list`** | View all roadmap items โ shown at every `session_start` |
|
|
317
|
-
| **`roadmap_next`** | Pick the highest-priority open item to work on next |
|
|
318
|
-
|
|
319
|
-
### ๐ฅ Team Brain
|
|
320
|
-
|
|
321
|
-
| Tool | What it does |
|
|
322
|
-
|------|-------------|
|
|
323
|
-
| **`team_learn`** / **`team_recall`** | Share lessons across the whole team on a shared instance |
|
|
324
|
-
| **`team_synthesize`** | Consolidate multiple lessons into one authoritative version |
|
|
325
|
-
| **`memory_crystalize`** | Distill all lessons into a Crystal snapshot for instant team context |
|
|
326
|
-
| **`brain_doctor`** | Health check: lesson quality, IQ boost %, open failures, recommendations |
|
|
327
|
-
| **`global_learn`** / **`global_recall`** | Cross-project universal lessons |
|
|
328
|
-
| **`publish_lesson`** / **`import_public_brain`** | Share/import community knowledge |
|
|
329
|
-
| **`trace_dependency`** | Find all lessons affected by a dependency change |
|
|
330
|
-
| **`list_orgs`** / **`create_org`** | Manage team organizations |
|
|
331
|
-
| **`invite_member`** / **`get_org_plan`** | Invite a developer to your org by email |
|
|
332
|
-
|
|
333
|
-
### ๐ Multilingual Brain โ Search in Any Language
|
|
227
|
+
### ๐ Multilingual Brain โ Search in Any Language
|
|
334
228
|
|
|
335
|
-
|
|
229
|
+
The Brain's search engine understands **11 languages natively** โ no configuration required.
|
|
336
230
|
|
|
337
231
|
| Script | Languages | Tokenization |
|
|
338
232
|
|--------|-----------|-------------|
|
|
339
233
|
| Latin | EN, DE, FR, ES, IT, PT | Whitespace + stopwords |
|
|
340
|
-
| CJK | Chinese, Japanese, Korean | Character bigrams |
|
|
341
|
-
| RTL | Arabic, Hebrew | Word tokenization +
|
|
234
|
+
| CJK | Chinese (ZH), Japanese (JA), Korean (KO) | Character bigrams |
|
|
235
|
+
| RTL | Arabic (AR), Hebrew (HE) | Word tokenization + light stemming |
|
|
342
236
|
|
|
343
|
-
**Romanization matching** โ store in Japanese, search in romaji:
|
|
237
|
+
**Romanization matching** โ store lessons in Japanese, search in romaji:
|
|
344
238
|
```
|
|
345
|
-
smart_recall("depuroi") โ finds ใใใญใค docs
|
|
346
239
|
smart_recall("kontena") โ finds ใณใณใใ docs
|
|
240
|
+
smart_recall("depuroi") โ finds ใใใญใค docs
|
|
347
241
|
```
|
|
348
242
|
|
|
349
243
|
**Cross-language retrieval** โ 130+ tech term synonyms ENโJAโZHโKOโARโHE:
|
|
350
244
|
```
|
|
351
|
-
smart_recall("deploy")
|
|
245
|
+
smart_recall("deploy") โ finds ใใใญใค, ้จ็ฝฒ, ๋ฐฐํฌ, ูุดุฑ, ืคืจืืกื
|
|
246
|
+
smart_recall("ใใใญใค") โ finds "deploy", "deployment"
|
|
247
|
+
smart_recall("ุฎุทุฃ") โ finds "error", ใจใฉใผ, ้่ฏฏ
|
|
352
248
|
```
|
|
353
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
|
+
|
|
354
259
|
### โ๏ธ Instance Management
|
|
355
260
|
|
|
356
261
|
| Tool | What it does |
|
|
357
262
|
|------|-------------|
|
|
358
|
-
| `list_instances`
|
|
359
|
-
| `
|
|
360
|
-
| `get_connection_string` | Get the `redis://` URL for your
|
|
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 |
|
|
361
268
|
|
|
362
269
|
### ๐๏ธ Cache Operations
|
|
363
270
|
|
|
364
271
|
| Tool | What it does |
|
|
365
272
|
|------|-------------|
|
|
366
273
|
| `cache_get` / `cache_set` / `cache_delete` | Standard cache operations |
|
|
367
|
-
| `cache_exists` / `cache_ttl` / `cache_keys` | Key inspection |
|
|
368
274
|
| `cache_mget` / `cache_mset` | Bulk pipeline (single round-trip) |
|
|
369
|
-
| `cache_stats` | Memory, hit rate, ops/sec, keyspace info |
|
|
370
275
|
| `cache_lock_acquire` / `cache_lock_release` | Distributed Redlock-lite |
|
|
371
|
-
| `cache_stream_set` / `cache_stream_get` |
|
|
372
|
-
| `cache_warmup` / `index_project` | Pre-warm cache or index a project directory |
|
|
276
|
+
| `cache_stream_set` / `cache_stream_get` | LLM token stream caching |
|
|
373
277
|
|
|
374
|
-
###
|
|
278
|
+
### ๐ Semantic Cache
|
|
375
279
|
|
|
376
280
|
| Tool | What it does |
|
|
377
281
|
|------|-------------|
|
|
378
282
|
| `semantic_search` | Find cached entries by meaning (pgvector HNSW, EU-hosted) |
|
|
283
|
+
| `semantic_warmup` | Pre-warm cache with prompt/response pairs |
|
|
379
284
|
| `detect_namespace` | Auto-classify prompt into code/qa/summary/translation/creative |
|
|
380
285
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
## Manual Setup
|
|
384
|
-
|
|
385
|
-
<details>
|
|
386
|
-
<summary>Claude Code (<code>~/.claude/mcp.json</code> or <code>.mcp.json</code>)</summary>
|
|
387
|
-
|
|
388
|
-
```json
|
|
389
|
-
{
|
|
390
|
-
"mcpServers": {
|
|
391
|
-
"cachly": {
|
|
392
|
-
"type": "stdio",
|
|
393
|
-
"command": "npx",
|
|
394
|
-
"args": ["-y", "@cachly-dev/mcp-server@latest"],
|
|
395
|
-
"env": {
|
|
396
|
-
"CACHLY_JWT": "your-api-key",
|
|
397
|
-
"CACHLY_BRAIN_INSTANCE_ID": "your-instance-id"
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
```
|
|
403
|
-
</details>
|
|
404
|
-
|
|
405
|
-
<details>
|
|
406
|
-
<summary>Cursor / Windsurf / VS Code (<code>.cursor/mcp.json</code> or <code>.mcp.json</code>)</summary>
|
|
407
|
-
|
|
408
|
-
```json
|
|
409
|
-
{
|
|
410
|
-
"servers": {
|
|
411
|
-
"cachly": {
|
|
412
|
-
"type": "stdio",
|
|
413
|
-
"command": "npx",
|
|
414
|
-
"args": ["-y", "@cachly-dev/mcp-server@latest"],
|
|
415
|
-
"env": {
|
|
416
|
-
"CACHLY_JWT": "your-api-key",
|
|
417
|
-
"CACHLY_BRAIN_INSTANCE_ID": "your-instance-id"
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
```
|
|
423
|
-
</details>
|
|
424
|
-
|
|
425
|
-
<details>
|
|
426
|
-
<summary>Autopilot CLAUDE.md (generated by <code>autopilot</code> tool)</summary>
|
|
286
|
+
### ๐ฅ Team Brain
|
|
427
287
|
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
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 |
|
|
438
299
|
|
|
439
300
|
---
|
|
440
301
|
|
|
@@ -442,13 +303,13 @@ smart_recall("deploy") โ finds ใใใญใค, ้จ็ฝฒ, ๋ฐฐํฌ, ูุดุฑ, ืคืจืืก
|
|
|
442
303
|
|
|
443
304
|
| Tier | RAM | Price | Best for |
|
|
444
305
|
|------|-----|-------|----------|
|
|
445
|
-
| **Free** | 25 MB | **โฌ0/mo forever** |
|
|
306
|
+
| **Free** | 25 MB | **โฌ0/mo forever** | Dev & side projects |
|
|
446
307
|
| **Dev** | 200 MB | โฌ19/mo | Individual developers |
|
|
447
|
-
| **Pro** | 900 MB | โฌ49/mo | Teams
|
|
448
|
-
| **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 |
|
|
449
310
|
| **Business** | 7 GB | โฌ199/mo | Scale-ups |
|
|
450
311
|
|
|
451
|
-
โ
All plans: **German servers ยท GDPR-compliant ยท 99.9% SLA ยท
|
|
312
|
+
โ
All plans: **German servers ยท GDPR-compliant ยท 99.9% SLA ยท No credit card for Free tier**
|
|
452
313
|
|
|
453
314
|
---
|
|
454
315
|
|
|
@@ -456,28 +317,30 @@ smart_recall("deploy") โ finds ใใใญใค, ้จ็ฝฒ, ๋ฐฐํฌ, ูุดุฑ, ืคืจืืก
|
|
|
456
317
|
|
|
457
318
|
| Variable | Default | Description |
|
|
458
319
|
|----------|---------|-------------|
|
|
459
|
-
| `CACHLY_JWT` | โ | **Required.** API
|
|
460
|
-
| `
|
|
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) |
|
|
461
322
|
| `CACHLY_API_URL` | `https://api.cachly.dev` | Override for self-hosted |
|
|
462
|
-
| `
|
|
463
|
-
| `
|
|
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 |
|
|
464
325
|
|
|
465
326
|
---
|
|
466
327
|
|
|
467
|
-
## Ecosystem
|
|
328
|
+
## ๐ ๏ธ Ecosystem
|
|
468
329
|
|
|
469
330
|
| Package | What it does |
|
|
470
331
|
|---------|-------------|
|
|
471
|
-
| **[`@cachly-dev/mcp-server`](https://www.npmjs.com/package/@cachly-dev/mcp-server)** | โ you are here โ
|
|
472
|
-
| **[
|
|
473
|
-
| **[`@cachly-dev/
|
|
474
|
-
| **[`@cachly-dev/
|
|
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 |
|
|
475
337
|
|
|
476
338
|
---
|
|
477
339
|
|
|
478
340
|
## Links
|
|
479
341
|
|
|
480
342
|
- ๐ [cachly.dev](https://cachly.dev) โ Dashboard & free signup
|
|
481
|
-
- ๐ [
|
|
482
|
-
- ๐ฌ [Issues](https://github.com/cachly-dev/
|
|
483
|
-
- โญ [Star on GitHub](https://github.com/cachly-dev/
|
|
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)
|