@cachly-dev/mcp-server 0.8.2 โ 0.9.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/.github/workflows/publish.yml +42 -0
- package/CHANGELOG.md +16 -0
- package/Dockerfile +4 -2
- package/LICENSE +202 -0
- package/README.md +278 -172
- package/dist/index.js +262 -43
- package/dist/index.js.map +1 -1
- package/glama.json +6 -0
- package/package.json +8 -2
- package/server.json +3 -3
- package/src/index.ts +8821 -0
- package/test-features.cjs +0 -23
package/README.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# cachly โ The World's First Cognitive Cache
|
|
2
2
|
|
|
3
|
-
> **
|
|
4
|
-
>
|
|
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.
|
|
5
6
|
|
|
6
7
|
<p align="center">
|
|
7
|
-
<a href="https://github.com/cachly-dev/mcp
|
|
8
|
-
<img src="https://img.shields.io/github/stars/cachly-dev/mcp
|
|
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" />
|
|
9
10
|
</a>
|
|
10
11
|
|
|
11
12
|
<a href="https://www.npmjs.com/package/@cachly-dev/mcp-server">
|
|
@@ -29,19 +30,21 @@
|
|
|
29
30
|
|
|
30
31
|
---
|
|
31
32
|
|
|
32
|
-
## ๐
|
|
33
|
+
## ๐ What is a Cognitive Cache?
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
Every cache stores data. cachly stores **meaning** โ and now reasons over it.
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
**Seven capabilities no other memory system has ever had:**
|
|
37
38
|
|
|
38
|
-
|
|
|
39
|
-
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
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` |
|
|
45
48
|
|
|
46
49
|
**The `causal_trace` moment:**
|
|
47
50
|
```
|
|
@@ -60,7 +63,7 @@ causal_trace(problem="auth breaks after restart")
|
|
|
60
63
|
Every morning, you open your AI coding assistant. It doesn't remember yesterday.
|
|
61
64
|
You explain your architecture. You explain the deployment process. You explain the bug you fixed last week.
|
|
62
65
|
|
|
63
|
-
**The average developer wastes 45 minutes/day re-establishing context.**
|
|
66
|
+
**The average developer wastes 45 minutes/day re-establishing context.**
|
|
64
67
|
|
|
65
68
|
## The Fix โ One Command
|
|
66
69
|
|
|
@@ -71,230 +74,335 @@ npx @cachly-dev/mcp-server@latest setup
|
|
|
71
74
|
The interactive wizard:
|
|
72
75
|
1. Signs you in (free, no credit card required)
|
|
73
76
|
2. Picks or creates your AI Brain instance
|
|
74
|
-
3. **Auto-detects** Cursor, Windsurf, VS Code, Claude Code, Continue.dev,
|
|
77
|
+
3. **Auto-detects** Cursor, Windsurf, VS Code, Claude Code, Continue.dev, Cline & Zed
|
|
75
78
|
4. Writes the correct MCP config for every detected editor
|
|
76
79
|
5. Creates `CLAUDE.md` with memory rules pre-filled
|
|
77
|
-
6. Shows your Brain Health snapshot right in the terminal
|
|
78
80
|
|
|
79
81
|
**Index your project** into the Brain for instant semantic search:
|
|
80
82
|
```bash
|
|
81
83
|
npx @cachly-dev/mcp-server@latest index .
|
|
82
84
|
```
|
|
83
85
|
|
|
84
|
-
**Result:** Your AI remembers everything. Always.
|
|
85
|
-
|
|
86
86
|
---
|
|
87
87
|
|
|
88
|
-
##
|
|
88
|
+
## What it looks like
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
Every session starts with a briefing instead of a blank slate:
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
```
|
|
93
|
+
๐ง Session Briefing
|
|
93
94
|
|
|
94
|
-
|
|
95
|
-
|
|
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
|
|
96
97
|
|
|
97
|
-
|
|
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"
|
|
98
|
+
๐ Brain: 23 lessons ยท 5 context entries ยท 38 recalls ยท ~9.5h saved
|
|
107
99
|
|
|
108
|
-
|
|
109
|
-
|
|
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
|
|
110
104
|
|
|
111
|
-
|
|
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
|
+
```
|
|
112
109
|
|
|
113
|
-
|
|
110
|
+
Your AI arrives pre-briefed. No repeating yourself.
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Cognitive Cache in Action
|
|
115
|
+
|
|
116
|
+
### Root Cause Analysis Through Memory
|
|
114
117
|
|
|
115
|
-
```bash
|
|
116
|
-
npx @cachly-dev/mcp-server@latest setup
|
|
117
118
|
```
|
|
119
|
+
causal_trace(problem="auth fails after namespace restart")
|
|
118
120
|
|
|
119
|
-
|
|
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
|
|
121
|
+
๐ Causal Trace โ "auth fails after namespace restart"
|
|
126
122
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
123
|
+
Found 7 related memories (3 failures ยท 1 partial ยท 2 fixes)
|
|
124
|
+
|
|
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
|
|
130
|
+
|
|
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
|
|
134
|
+
|
|
135
|
+
๐งฉ Likely causal chain:
|
|
136
|
+
k8s:namespace-terminating
|
|
137
|
+
โ led to keycloak:jwks-cache-race
|
|
138
|
+
โ current symptom: auth fails after namespace restart
|
|
139
|
+
|
|
140
|
+
๐ฏ Recommended fix: apply k8s:namespace-wait solution
|
|
130
141
|
```
|
|
131
142
|
|
|
132
|
-
|
|
143
|
+
### Knowledge Syndication โ The Global AI Brain
|
|
133
144
|
|
|
134
|
-
|
|
145
|
+
```
|
|
146
|
+
syndicate_search(query="k8s namespace stuck terminating")
|
|
135
147
|
|
|
136
|
-
|
|
148
|
+
๐ Global Knowledge Commons โ "k8s namespace stuck terminating"
|
|
137
149
|
|
|
138
|
-
|
|
150
|
+
Found 3 community solutions (ranked by trust):
|
|
139
151
|
|
|
140
|
-
|
|
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
|
|
141
155
|
|
|
142
|
-
|
|
143
|
-
|
|
156
|
+
โโโโโโโโโโ ร23 [VERIFIED] k8s:namespace-finalizer-patch
|
|
157
|
+
โ PATCH /api/v1/namespaces/<ns>/finalize with empty finalizers array
|
|
158
|
+
โ 23 confirmations, 0 contradictions
|
|
144
159
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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
|
-
}
|
|
160
|
+
โโโโโโโโโโ ร9 k8s:pvc-blocking-termination
|
|
161
|
+
โ PVCs with retain policy block namespace deletion
|
|
162
|
+
โ 9 confirmations
|
|
159
163
|
```
|
|
160
|
-
</details>
|
|
161
164
|
|
|
162
|
-
|
|
163
|
-
<summary><b>Cursor / Windsurf / VS Code</b> (<code>.cursor/mcp.json</code> / <code>.mcp.json</code>)</summary>
|
|
165
|
+
### Knowledge Decay โ Trust What's Still True
|
|
164
166
|
|
|
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
|
-
}
|
|
179
167
|
```
|
|
180
|
-
|
|
168
|
+
knowledge_decay(threshold_days=30)
|
|
181
169
|
|
|
182
|
-
|
|
170
|
+
โฑ๏ธ Knowledge Decay Analysis
|
|
183
171
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
-
|
|
172
|
+
๐ง 31 total memories ยท 24 healthy (avg 88% confidence) ยท 7 decaying
|
|
173
|
+
|
|
174
|
+
โ ๏ธ 7 memories need re-verification:
|
|
175
|
+
|
|
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ร)
|
|
180
|
+
|
|
181
|
+
๐ก Re-validate top decaying memories before critical tasks.
|
|
189
182
|
```
|
|
190
183
|
|
|
191
184
|
---
|
|
192
185
|
|
|
193
|
-
##
|
|
186
|
+
## Before vs. After
|
|
194
187
|
|
|
195
188
|
| Situation | Without cachly | With cachly |
|
|
196
189
|
|-----------|----------------|-------------|
|
|
197
|
-
| Session start | "What's your architecture?" |
|
|
198
|
-
|
|
|
199
|
-
|
|
|
200
|
-
|
|
|
201
|
-
|
|
|
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
|
+
```
|
|
202
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
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
261
|
|
|
209
262
|
| Tool | What it does |
|
|
210
263
|
|------|-------------|
|
|
211
|
-
| **`session_start`** | Full briefing: last session
|
|
212
|
-
| **`session_end`** | Save
|
|
213
|
-
| **`
|
|
214
|
-
| **`
|
|
215
|
-
| **`
|
|
216
|
-
| **`learn_from_attempts`** | Store
|
|
217
|
-
| **`recall_best_solution`** | Best known
|
|
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 |
|
|
218
271
|
| **`recall_at`** | Recall a lesson at a specific point in time |
|
|
219
|
-
| **`
|
|
220
|
-
| **`recall_context`** |
|
|
221
|
-
| **`list_remembered`** |
|
|
222
|
-
| **`
|
|
223
|
-
| **`smart_recall`** | BM25+ full-text search across all brain data โ multilingual: EN, DE, FR, ES, IT, PT, ZH, JA, KO, **AR, HE** |
|
|
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 |
|
|
224
276
|
| **`setup_ai_memory`** | Interactive wizard to configure AI memory |
|
|
225
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
302
|
|
|
228
|
-
|
|
303
|
+
`smart_recall` understands **11 languages natively** โ no configuration required.
|
|
229
304
|
|
|
230
305
|
| Script | Languages | Tokenization |
|
|
231
306
|
|--------|-----------|-------------|
|
|
232
307
|
| Latin | EN, DE, FR, ES, IT, PT | Whitespace + stopwords |
|
|
233
|
-
| CJK | Chinese
|
|
234
|
-
| RTL | Arabic
|
|
308
|
+
| CJK | Chinese, Japanese, Korean | Character bigrams |
|
|
309
|
+
| RTL | Arabic, Hebrew | Word tokenization + Arabic light stemming |
|
|
235
310
|
|
|
236
|
-
**Romanization matching** โ store
|
|
311
|
+
**Romanization matching** โ store in Japanese, search in romaji:
|
|
237
312
|
```
|
|
238
|
-
smart_recall("kontena") โ finds ใณใณใใ docs
|
|
239
313
|
smart_recall("depuroi") โ finds ใใใญใค docs
|
|
314
|
+
smart_recall("kontena") โ finds ใณใณใใ docs
|
|
240
315
|
```
|
|
241
316
|
|
|
242
317
|
**Cross-language retrieval** โ 130+ tech term synonyms ENโJAโZHโKOโARโHE:
|
|
243
318
|
```
|
|
244
|
-
smart_recall("deploy")
|
|
245
|
-
smart_recall("ใใใญใค") โ finds "deploy", "deployment"
|
|
246
|
-
smart_recall("ุฎุทุฃ") โ finds "error", ใจใฉใผ, ้่ฏฏ
|
|
319
|
+
smart_recall("deploy") โ finds ใใใญใค, ้จ็ฝฒ, ๋ฐฐํฌ, ูุดุฑ, ืคืจืืกื
|
|
247
320
|
```
|
|
248
321
|
|
|
249
|
-
### ๐ก Legendary Brain Features
|
|
250
|
-
|
|
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. |
|
|
257
|
-
|
|
258
322
|
### โ๏ธ Instance Management
|
|
259
323
|
|
|
260
324
|
| Tool | What it does |
|
|
261
325
|
|------|-------------|
|
|
262
|
-
| `list_instances` | List
|
|
263
|
-
| `
|
|
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 |
|
|
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 |
|
|
267
329
|
|
|
268
330
|
### ๐๏ธ Cache Operations
|
|
269
331
|
|
|
270
332
|
| Tool | What it does |
|
|
271
333
|
|------|-------------|
|
|
272
334
|
| `cache_get` / `cache_set` / `cache_delete` | Standard cache operations |
|
|
335
|
+
| `cache_exists` / `cache_ttl` / `cache_keys` | Key inspection |
|
|
273
336
|
| `cache_mget` / `cache_mset` | Bulk pipeline (single round-trip) |
|
|
337
|
+
| `cache_stats` | Memory, hit rate, ops/sec, keyspace info |
|
|
274
338
|
| `cache_lock_acquire` / `cache_lock_release` | Distributed Redlock-lite |
|
|
275
|
-
| `cache_stream_set` / `cache_stream_get` | LLM
|
|
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
341
|
|
|
277
|
-
###
|
|
342
|
+
### ๐ญ Semantic Search
|
|
278
343
|
|
|
279
344
|
| Tool | What it does |
|
|
280
345
|
|------|-------------|
|
|
281
346
|
| `semantic_search` | Find cached entries by meaning (pgvector HNSW, EU-hosted) |
|
|
282
|
-
| `semantic_warmup` | Pre-warm cache with prompt/response pairs |
|
|
283
347
|
| `detect_namespace` | Auto-classify prompt into code/qa/summary/translation/creative |
|
|
284
348
|
|
|
285
|
-
|
|
349
|
+
---
|
|
286
350
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
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>
|
|
395
|
+
|
|
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>
|
|
298
406
|
|
|
299
407
|
---
|
|
300
408
|
|
|
@@ -302,13 +410,13 @@ smart_recall("ุฎุทุฃ") โ finds "error", ใจใฉใผ, ้่ฏฏ
|
|
|
302
410
|
|
|
303
411
|
| Tier | RAM | Price | Best for |
|
|
304
412
|
|------|-----|-------|----------|
|
|
305
|
-
| **Free** | 25 MB | **โฌ0/mo forever** |
|
|
413
|
+
| **Free** | 25 MB | **โฌ0/mo forever** | Side projects & solo devs |
|
|
306
414
|
| **Dev** | 200 MB | โฌ19/mo | Individual developers |
|
|
307
|
-
| **Pro** | 900 MB | โฌ49/mo | Teams |
|
|
308
|
-
| **Speed** | 900 MB + Dragonfly + Semantic
|
|
415
|
+
| **Pro** | 900 MB | โฌ49/mo | Teams (shared brain) |
|
|
416
|
+
| **Speed** | 900 MB + Dragonfly + Semantic | โฌ79/mo | AI-heavy workloads |
|
|
309
417
|
| **Business** | 7 GB | โฌ199/mo | Scale-ups |
|
|
310
418
|
|
|
311
|
-
โ
All plans: **German servers ยท GDPR-compliant ยท 99.9% SLA ยท
|
|
419
|
+
โ
All plans: **German servers ยท GDPR-compliant ยท 99.9% SLA ยท no credit card for Free**
|
|
312
420
|
|
|
313
421
|
---
|
|
314
422
|
|
|
@@ -316,30 +424,28 @@ smart_recall("ุฎุทุฃ") โ finds "error", ใจใฉใผ, ้่ฏฏ
|
|
|
316
424
|
|
|
317
425
|
| Variable | Default | Description |
|
|
318
426
|
|----------|---------|-------------|
|
|
319
|
-
| `CACHLY_JWT` | โ | **Required.**
|
|
320
|
-
| `
|
|
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 |
|
|
321
429
|
| `CACHLY_API_URL` | `https://api.cachly.dev` | Override for self-hosted |
|
|
322
|
-
| `
|
|
323
|
-
| `
|
|
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 |
|
|
324
432
|
|
|
325
433
|
---
|
|
326
434
|
|
|
327
|
-
##
|
|
435
|
+
## Ecosystem
|
|
328
436
|
|
|
329
437
|
| Package | What it does |
|
|
330
438
|
|---------|-------------|
|
|
331
|
-
| **[`@cachly-dev/mcp-server`](https://www.npmjs.com/package/@cachly-dev/mcp-server)** | โ you are here โ
|
|
332
|
-
| **[
|
|
333
|
-
| **[`@cachly-dev/
|
|
334
|
-
| **[`@cachly-dev/
|
|
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 |
|
|
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 |
|
|
336
443
|
|
|
337
444
|
---
|
|
338
445
|
|
|
339
446
|
## Links
|
|
340
447
|
|
|
341
448
|
- ๐ [cachly.dev](https://cachly.dev) โ Dashboard & free signup
|
|
342
|
-
- ๐ [
|
|
343
|
-
- ๐ฌ [
|
|
344
|
-
- โญ [Star on GitHub](https://github.com/cachly-dev/mcp
|
|
345
|
-
- ๐ฆ [npm](https://www.npmjs.com/package/@cachly-dev/mcp-server)
|
|
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!
|