@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/CHANGELOG.md +140 -0
- package/Dockerfile +12 -15
- package/README.md +214 -259
- package/dist/__tests__/namespace.test.d.ts +1 -0
- package/dist/__tests__/namespace.test.js +114 -0
- package/dist/__tests__/namespace.test.js.map +1 -0
- package/dist/index.d.ts +36 -3
- package/dist/index.js +4324 -2356
- package/dist/index.js.map +1 -1
- package/dist/search.test.js +276 -3
- package/dist/search.test.js.map +1 -1
- package/package.json +2 -6
- package/scripts/postinstall.js +36 -0
- package/smithery.yaml +10 -5
- package/src/__tests__/namespace.test.ts +126 -0
- package/src/index.ts +4375 -2353
- package/src/search.test.ts +330 -3
- package/test-features.cjs +23 -0
- package/.github/workflows/publish.yml +0 -28
- package/LICENSE +0 -202
- package/glama.json +0 -6
package/README.md
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
# cachly
|
|
1
|
+
# ๐ง cachly AI Brain โ MCP Server
|
|
2
2
|
|
|
3
|
-
> **
|
|
4
|
-
>
|
|
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/
|
|
9
|
-
<img src="https://img.shields.io/github/stars/cachly-dev/
|
|
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
|
|
|
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
|
+
|
|
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
|
-
##
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
56
|
-
|
|
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
|
-
##
|
|
58
|
+
## The Problem
|
|
61
59
|
|
|
62
|
-
Every
|
|
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
|
-
|
|
68
|
-
Duration: 47 min ยท Files: middleware.ts, auth.config.ts, .env.local
|
|
65
|
+
## The Fix โ One Command
|
|
69
66
|
|
|
70
|
-
|
|
67
|
+
```bash
|
|
68
|
+
npx @cachly-dev/mcp-server@latest setup
|
|
69
|
+
```
|
|
71
70
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
|
84
|
+
**Result:** Your AI remembers everything. Always.
|
|
84
85
|
|
|
85
86
|
---
|
|
86
87
|
|
|
87
|
-
##
|
|
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
|
-
|
|
90
|
+
**Step 1 โ Get your free credentials** at [cachly.dev](https://cachly.dev) (25 MB free, forever, no credit card).
|
|
95
91
|
|
|
96
|
-
|
|
92
|
+
**Step 2 โ Add to your editor's MCP config:**
|
|
97
93
|
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
|
|
109
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
132
|
+
**Result:** Your AI remembers everything. Always.
|
|
137
133
|
|
|
138
|
-
|
|
139
|
-
brain_diff(since_sessions=5)
|
|
134
|
+
---
|
|
140
135
|
|
|
141
|
-
|
|
136
|
+
## Quick Start (Manual)
|
|
142
137
|
|
|
143
|
-
|
|
138
|
+
**Step 1 โ Get your free credentials** at [cachly.dev](https://cachly.dev) (25 MB free, forever, no credit card).
|
|
144
139
|
|
|
145
|
-
|
|
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
|
-
|
|
151
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
164
|
-
|
|
165
|
-
๐ค cachly Autopilot โ zero-config AI memory for myproject
|
|
166
|
-
|
|
167
|
-
Brain: 31 lessons stored ยท Instance: `a1b2c3d4โฆ`
|
|
180
|
+
</details>
|
|
168
181
|
|
|
169
|
-
|
|
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
|
-
|
|
174
|
-
|
|
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
|
-
##
|
|
193
|
+
## With vs. Without cachly
|
|
182
194
|
|
|
183
195
|
| Situation | Without cachly | With cachly |
|
|
184
196
|
|-----------|----------------|-------------|
|
|
185
|
-
| Session start | "What's your architecture?" |
|
|
186
|
-
|
|
|
187
|
-
|
|
|
188
|
-
|
|
|
189
|
-
|
|
|
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
|
-
##
|
|
197
|
-
|
|
198
|
-
```bash
|
|
199
|
-
npx @cachly-dev/mcp-server@latest learn
|
|
200
|
-
```
|
|
205
|
+
## 51 MCP Tools
|
|
201
206
|
|
|
202
|
-
|
|
207
|
+
### ๐ง Session & Memory (most used)
|
|
203
208
|
|
|
204
|
-
|
|
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
|
-
|
|
208
|
-
|
|
209
|
-
|
|
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
|
-
|
|
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
|
-
###
|
|
258
|
+
### โ๏ธ Instance Management
|
|
226
259
|
|
|
227
260
|
| Tool | What it does |
|
|
228
261
|
|------|-------------|
|
|
229
|
-
|
|
|
230
|
-
|
|
|
231
|
-
|
|
|
232
|
-
|
|
|
233
|
-
|
|
|
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
|
-
###
|
|
268
|
+
### ๐๏ธ Cache Operations
|
|
236
269
|
|
|
237
270
|
| Tool | What it does |
|
|
238
271
|
|------|-------------|
|
|
239
|
-
|
|
|
240
|
-
|
|
|
241
|
-
|
|
|
242
|
-
|
|
|
243
|
-
|
|
244
|
-
|
|
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
|
-
|
|
|
258
|
-
|
|
|
259
|
-
|
|
|
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
|
-
###
|
|
285
|
+
### ๐ฅ Team Brain
|
|
266
286
|
|
|
267
287
|
| Tool | What it does |
|
|
268
288
|
|------|-------------|
|
|
269
|
-
| `
|
|
270
|
-
| `
|
|
271
|
-
| `
|
|
272
|
-
| `
|
|
273
|
-
| `
|
|
274
|
-
| `
|
|
275
|
-
| `
|
|
276
|
-
| `
|
|
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** |
|
|
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
|
|
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 ยท
|
|
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
|
|
368
|
-
| `
|
|
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
|
-
| `
|
|
371
|
-
| `
|
|
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 โ
|
|
380
|
-
| **[
|
|
381
|
-
| **[`@cachly-dev/
|
|
382
|
-
| **[`@cachly-dev/
|
|
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
|
-
- ๐ [
|
|
390
|
-
- ๐ฌ [Issues](https://github.com/cachly-dev/
|
|
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 {};
|