@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/CHANGELOG.md +97 -0
- package/Dockerfile +12 -15
- package/README.md +161 -280
- 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 +4223 -2344
- 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 +4278 -2379
- 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,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
|
+
|
|
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:
|
|
32
|
+
## The Problem
|
|
36
33
|
|
|
37
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
39
|
+
## The Fix โ One Command
|
|
50
40
|
|
|
51
41
|
```bash
|
|
52
42
|
npx @cachly-dev/mcp-server@latest setup
|
|
53
43
|
```
|
|
54
44
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
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
|
|
58
|
+
**Result:** Your AI remembers everything. Always.
|
|
84
59
|
|
|
85
60
|
---
|
|
86
61
|
|
|
87
|
-
##
|
|
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
|
-
|
|
64
|
+
**Step 1 โ Get your free credentials** at [cachly.dev](https://cachly.dev) (25 MB free, forever, no credit card).
|
|
144
65
|
|
|
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
|
|
66
|
+
**Step 2 โ Add to your editor's MCP config:**
|
|
149
67
|
|
|
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
|
|
68
|
+
<details>
|
|
69
|
+
<summary><b>Claude Code</b> (<code>~/.claude/mcp.json</code> or <code>.mcp.json</code>)</summary>
|
|
156
70
|
|
|
157
|
-
|
|
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
|
-
|
|
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
|
-
|
|
164
|
-
|
|
165
|
-
๐ค cachly Autopilot โ zero-config AI memory for myproject
|
|
166
|
-
|
|
167
|
-
Brain: 31 lessons stored ยท Instance: `a1b2c3d4โฆ`
|
|
106
|
+
</details>
|
|
168
107
|
|
|
169
|
-
|
|
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
|
-
|
|
174
|
-
|
|
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
|
-
##
|
|
119
|
+
## With vs. Without cachly
|
|
182
120
|
|
|
183
121
|
| Situation | Without cachly | With cachly |
|
|
184
122
|
|-----------|----------------|-------------|
|
|
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 |
|
|
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
|
-
##
|
|
131
|
+
## 51 MCP Tools
|
|
197
132
|
|
|
198
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
###
|
|
184
|
+
### โ๏ธ Instance Management
|
|
226
185
|
|
|
227
186
|
| Tool | What it does |
|
|
228
187
|
|------|-------------|
|
|
229
|
-
|
|
|
230
|
-
|
|
|
231
|
-
|
|
|
232
|
-
|
|
|
233
|
-
|
|
|
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
|
-
###
|
|
194
|
+
### ๐๏ธ Cache Operations
|
|
236
195
|
|
|
237
196
|
| Tool | What it does |
|
|
238
197
|
|------|-------------|
|
|
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
|
|
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
|
-
|
|
|
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 |
|
|
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
|
-
###
|
|
211
|
+
### ๐ฅ Team Brain
|
|
266
212
|
|
|
267
213
|
| Tool | What it does |
|
|
268
214
|
|------|-------------|
|
|
269
|
-
| `
|
|
270
|
-
| `
|
|
271
|
-
| `
|
|
272
|
-
| `
|
|
273
|
-
| `
|
|
274
|
-
| `
|
|
275
|
-
| `
|
|
276
|
-
| `
|
|
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** |
|
|
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
|
|
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 ยท
|
|
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
|
|
368
|
-
| `
|
|
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
|
-
| `
|
|
371
|
-
| `
|
|
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 โ
|
|
380
|
-
| **[
|
|
381
|
-
| **[`@cachly-dev/
|
|
382
|
-
| **[`@cachly-dev/
|
|
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
|
-
- ๐ [
|
|
390
|
-
- ๐ฌ [Issues](https://github.com/cachly-dev/
|
|
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 {};
|