@cachly-dev/mcp-server 0.10.234 → 0.10.235

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.
Files changed (4) hide show
  1. package/README.md +218 -161
  2. package/glama.json +1 -1
  3. package/package.json +24 -30
  4. package/server.json +2 -2
package/README.md CHANGED
@@ -1,37 +1,61 @@
1
- # cachly — experience for coding agents (MCP server)
1
+ # cachly — memory for coding agents (MCP server)
2
2
 
3
3
  > **Solve it once. From then on, your AI knows.**
4
4
  >
5
- > Every fix, every decision and every dead end becomes experience your AI uses at
6
- > the right moment. You build faster, and your team builds on what you figured out.
5
+ > Every fix, decision and dead end becomes a lesson. Your AI finds it again when the same
6
+ > problem comes back, in the next session, in another editor, or on a teammate's machine.
7
7
 
8
8
  [![npm version](https://img.shields.io/npm/v/@cachly-dev/mcp-server?color=violet&logo=npm)](https://www.npmjs.com/package/@cachly-dev/mcp-server)
9
- ![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-yellow)
9
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-yellow)](./LICENSE)
10
+ [![MCP Registry](https://img.shields.io/badge/MCP_Registry-io.github.cachly--dev%2Fmcp--server-blue)](https://registry.modelcontextprotocol.io/v0/servers?search=cachly)
11
+ [![Hosted in the EU](https://img.shields.io/badge/hosted_in-the_EU-003399)](https://cachly.dev/docs/eu-hosted-mcp-memory-server)
10
12
 
11
- `@cachly-dev/mcp-server` connects [cachly](https://cachly.dev) to Claude Code, Cursor,
12
- GitHub Copilot, Windsurf, Cline, Continue.dev, Zed, Codex CLI and Gemini CLI over
13
- [MCP](https://modelcontextprotocol.io). It offers 124 MCP tools. Your editor lists 27 entries
14
- by default and reaches the rest through one of them, `cachly_tool` (details under MCP
15
- Tools below). Your AI stores a lesson after a fix, and finds it again when the same
16
- problem returns. Your Brain (the store of your lessons) lives on EU servers.
13
+ **Works with** Claude Code · Cursor · GitHub Copilot · Windsurf · Cline · Continue.dev · Zed ·
14
+ Codex CLI · Gemini CLI · JetBrains IDEs
17
15
 
18
- ## Start without an account
16
+ [Quick start](#quick-start) · [What it looks like](#what-it-looks-like) ·
17
+ [Pricing](#pricing) · [FAQ](#faq) · [Reference](#reference) · [cachly.dev](https://cachly.dev)
19
18
 
20
- ### Claude Code
19
+ ## Quick start
20
+
21
+ **Claude Code** — two lines, and the next session has a Brain (the store of your lessons):
21
22
 
22
23
  ```
23
24
  /plugin marketplace add cachly-dev/cachly-mcp
24
25
  /plugin install cachly-brain@cachly
25
26
  ```
26
27
 
27
- There is no JSON to write, no path to set and no key to copy. Without a key, cachly creates
28
- a test Brain on EU servers when the session starts (the plugin hook does it; the first tool
29
- call does it if the hook did not). The test Brain has 14 days of
30
- the Solo tier. After that it runs on the free tier with the same key.
28
+ cachly creates a test Brain on EU servers when the session starts. It comes with 14 days
29
+ of the Solo plan and then continues on Free with the same key. Check it with
30
+ `claude mcp list`: you should see `plugin:cachly-brain:cachly … ✔ Connected`.
31
+
32
+ **Cursor, Windsurf, VS Code, Cline, Continue.dev, Zed, Codex CLI, Gemini CLI** — one command:
33
+
34
+ ```bash
35
+ npx @cachly-dev/mcp-server@latest autopilot
36
+ ```
37
+
38
+ `autopilot` finds your editors, writes the MCP config and the rule file for each, adds a
39
+ git hook that learns from your commits, and fills your Brain from your git history. You
40
+ sign in once in the browser with a device code. Restart your editor afterwards.
41
+
42
+ **Already inside Claude, Cursor or Copilot?** Paste this to your AI:
43
+
44
+ ```
45
+ Set up cachly for this project. Run: npx @cachly-dev/mcp-server@latest autopilot
46
+ Follow the browser sign-in, then restart the editor.
47
+ ```
48
+
49
+ **In the IDE:** the [VS Code extension](https://marketplace.visualstudio.com/items?itemName=cachly-dev.cachly-brain)
50
+ creates your Brain on first start. The [JetBrains plugin](https://plugins.jetbrains.com/plugin/32059-cachly-brain)
51
+ brings it to IntelliJ IDEA, PyCharm, GoLand, WebStorm and Rider
52
+ ([guide](https://cachly.dev/docs/jetbrains)).
31
53
 
32
- Check it with `claude mcp list`. You should see `plugin:cachly-brain:cachly … ✔ Connected`.
33
- `claude plugin details` shows `MCP servers (0)` even when the server runs, because it
34
- does not count them.
54
+ **Keep your test Brain** with `npx @cachly-dev/mcp-server@latest claim`. You sign in once,
55
+ and the Brain moves into your account with all its lessons.
56
+
57
+ <details>
58
+ <summary><b>Claude Code in detail:</b> the three hooks, auto-update, and the test Brain</summary>
35
59
 
36
60
  The plugin adds three Claude Code hooks:
37
61
 
@@ -39,72 +63,113 @@ The plugin adds three Claude Code hooks:
39
63
  |------|--------------|
40
64
  | `SessionStart` | Gives your AI a short briefing: the 5 most-reused lessons (on a new Brain: starter tips) |
41
65
  | `UserPromptSubmit` | Puts the lessons that match your prompt next to it |
42
- | `Stop` | Saves a lesson when the AI's last message clearly reports a fix. It skips messages that say something failed or is unclear. It tells you nothing when it saves. |
66
+ | `Stop` | Saves a lesson when the AI's last message clearly reports a fix. It skips messages that say something failed or is unclear. It saves quietly. |
43
67
 
44
68
  Turn on auto-update once: `/plugin` → **Marketplaces** → **cachly** → **Enable auto-update**.
45
69
  Claude Code leaves it off for marketplaces outside Anthropic's own. The MCP server updates
46
- itself on every start, but the hooks come with the plugin and update only with it. If an
47
- update is waiting, the first `session_start` of a session says so in one line.
70
+ itself on every start; the hooks come with the plugin and update with it. If an update is
71
+ waiting, the first `session_start` of a session says so in one line.
72
+
73
+ The test Brain is created by the plugin hook at session start, or by the first tool call
74
+ if the hook did not run. `claude mcp list` is the reliable check: `claude plugin details`
75
+ shows `MCP servers (0)` even while the server runs.
76
+
77
+ `claim` revokes every test key and stores a new key where your editor and hooks look for
78
+ it. The Brain restarts once, which takes about 20 seconds. The Free plan holds one Brain:
79
+ if you already have one, `claim` stops with a message and leaves both Brains as they are.
80
+
81
+ `autopilot` writes these rule files, so each editor's AI checks its memory before a task:
82
+ `CLAUDE.md`, `AGENTS.md`, `.cursor/rules/cachly.mdc`, `.github/copilot-instructions.md`,
83
+ `.windsurfrules`, `.clinerules`, and `GEMINI.md`, `.junie/guidelines.md` and
84
+ `.continue/rules/cachly.md` where you use Gemini CLI, Junie or Continue. Claude Code and
85
+ Gemini CLI also follow the server's own instructions; Cline, Continue and Zed rely on the
86
+ rule file. You can also add the server by hand (see [Manual Setup](#manual-setup)).
87
+ </details>
48
88
 
49
- ### Keep your test Brain
89
+ ## What it looks like
90
+
91
+ Monday, your AI fixes a bug and keeps what worked (output shortened):
50
92
 
51
- ```bash
52
- npx @cachly-dev/mcp-server@latest claim
53
93
  ```
94
+ learn_from_attempts(topic="billing:invoice-rounding", outcome="success",
95
+ what_worked="ROUND HALF-EVEN IN invoice_total(): Math.round drifted by one cent on .5 values",
96
+ file_paths=["src/billing/invoice.ts"])
54
97
 
55
- You sign in once in the browser. The test Brain then moves into your account with all
56
- its lessons. Every test key is revoked, and you get a new key that is stored where your
57
- editor and hooks look for it. The Brain restarts once, which takes about 20 seconds.
58
- If you already have a free Brain, the one-Brain limit of the free tier applies and the
59
- move is refused with a message.
98
+ ✅ Lesson stored: billing:invoice-rounding
99
+ ```
60
100
 
61
- ### Cursor, Windsurf, VS Code, Cline, Continue.dev, Zed
101
+ Three weeks later, a new session, a different person, the same symptom:
62
102
 
63
- ```bash
64
- npx @cachly-dev/mcp-server@latest autopilot
65
103
  ```
104
+ smart_recall(query="invoice total is one cent off")
66
105
 
67
- `autopilot` finds the editors you use and writes the MCP config for each. It also writes
68
- the rule file each editor reads in every chat (`CLAUDE.md`, `AGENTS.md`,
69
- `.cursor/rules/cachly.mdc`, `.github/copilot-instructions.md`, `.windsurfrules`,
70
- `.clinerules`; `GEMINI.md`, `.junie/guidelines.md` and `.continue/rules/cachly.md` where
71
- you use Gemini CLI, Junie or Continue), which tells your AI to check its memory before a task. It adds a git
72
- hook that learns from your commits and fills your Brain from your git history. You sign
73
- in once in the browser (a device code, no password, no credit card), so the Brain
74
- belongs to your own account from the start. Restart your editor afterwards.
106
+ 💡 billing:invoice-rounding · 👤 anna
107
+ ROUND HALF-EVEN IN invoice_total(): Math.round drifted by one cent on .5 values
108
+ ▸ src/billing/invoice.ts
109
+ ```
75
110
 
76
- You can also add the server by hand (see [Manual Setup](#manual-setup)). Without a key,
77
- the first tool call creates the same test Brain as in Claude Code. Without a rule file,
78
- Claude Code still starts each task with `smart_recall`, because the server's instructions
79
- ask for it. Gemini CLI also passes them on. Some editors do not (Cline, Continue and Zed,
80
- for example); there, the rule file from `autopilot` is what makes your AI use its memory.
111
+ Your AI starts from the fix. With the hooks, this happens before you type: the matching
112
+ lessons are placed next to your prompt.
113
+
114
+ **Some fixes come back.** After a time/date or a dependency fix, `learn_from_attempts` adds
115
+ a relapse watch with counted numbers from 289 open-source projects. For example: 148 of
116
+ 791 time/date fixes (19 %) were followed within 90 days by another time/date problem in
117
+ the same files, 4.4× as often as a random issue in the same project. Each hint links a
118
+ real pair of issues as an example.
119
+
120
+ ## Why developers and teams use it
121
+
122
+ - **Your AI keeps what it learned.** Lessons outlive the session, the editor and the
123
+ model. One Brain serves Claude Code, Cursor, Copilot, Codex and the others at the same
124
+ time.
125
+ - **Your team learns each thing once.** `invite teammate@example.com` shares your Brain.
126
+ Every lesson carries the name of whoever learned it, and a reviewer can confirm it so
127
+ it ranks higher.
128
+ - **A light footprint in the context window.** Your editor lists 27 tool entries, about
129
+ 8,000 tokens per request. All 124 MCP tools stay one call away through
130
+ `cachly_tool`.
131
+ - **Your data stays in the EU and stays yours.** Storage in Germany, embeddings computed
132
+ in the EU, and `export` writes every lesson to Markdown and JSONL whenever you like.
133
+ The server is open source under Apache-2.0.
81
134
 
82
- > **Already inside Claude, Cursor or Copilot?** Paste this to your AI:
83
- > ```
84
- > Set up cachly for this project. Run: npx @cachly-dev/mcp-server@latest autopilot
85
- > Follow the browser sign-in, then restart the editor.
86
- > ```
135
+ ## How it works
87
136
 
88
- ### VS Code extension
137
+ 1. A fix, a decision or a dead end is stored as a lesson: topic, what worked, what failed,
138
+ severity, file paths, commands and author.
139
+ 2. At the start of a session, your AI receives a briefing with the last session, open
140
+ failures and recent lessons.
141
+ 3. When you ask for something, `smart_recall` looks up the lessons that match. It combines
142
+ keyword search (BM25), meaning-based search and the causal graph, in 11 languages.
143
+ 4. When an error appears, `causal_trace` walks from the symptom to the cause and to the fix
144
+ that worked.
145
+ 5. Before a deploy, `brain_predict` lists failure patterns from past incidents.
146
+ 6. A git hook and the [CI templates](#ci-integration) add lessons from commits and from
147
+ red-to-green runs.
148
+ 7. Lessons are shared in the team. Each one carries the name of whoever learned it.
89
149
 
90
- Install **[cachly Brain](https://marketplace.visualstudio.com/items?itemName=cachly-dev.cachly-brain)**.
91
- It creates your Brain on first start, with no account form.
150
+ **See it on your own project first:** `npx @cachly-dev/mcp-server@latest demo` reads your
151
+ git history and prints the fixes, patterns and decisions your AI would know. It runs
152
+ entirely on your machine.
92
153
 
93
- ### JetBrains plugin
154
+ **Our agreement with you.** You can leave and take your data:
155
+ `npx @cachly-dev/mcp-server@latest export` writes every lesson to `lessons.md` (to read)
156
+ and `lessons.jsonl` (to reuse). Code excerpts are stored only when you call
157
+ `index_project` yourself, and then only on your own EU instance. Read
158
+ [what leaves your machine](https://cachly.dev/docs/eu-hosted-mcp-memory-server) before you
159
+ decide.
94
160
 
95
- Install **[Cachly Brain](https://plugins.jetbrains.com/plugin/32059-cachly-brain)**
96
- from the JetBrains Marketplace (IntelliJ IDEA, PyCharm, GoLand, WebStorm, Rider). The
97
- status bar, the Brain health and the lessons view live in the IDE. The source is at
98
- [cachly-dev/cachly-intellij](https://github.com/cachly-dev/cachly-intellij). The
99
- [JetBrains plugin guide](https://cachly.dev/docs/jetbrains) shows how Claude Code, Junie
100
- and JetBrains AI Assistant get the Brain over MCP.
161
+ ## Pricing
101
162
 
102
- ### MCP Registry
163
+ | Plan | Price | People | Storage |
164
+ |------|-------|--------|---------|
165
+ | **Free** | €0 | 1 | 25 MB, one Brain, 500 recalls a month |
166
+ | **Solo** | €19/month | 1 | 200 MB |
167
+ | **Team** | €49/month | up to 5 | 900 MB |
168
+ | **Business** | €199/month | up to 20, with SSO | 7 GB |
103
169
 
104
- The server is listed in the official
105
- **[MCP Registry](https://registry.modelcontextprotocol.io/v0/servers?search=cachly)** as
106
- `io.github.cachly-dev/mcp-server`. Clients that browse the registry find it by name. The
107
- entry points at this npm package.
170
+ Start on Free with a sign-in, without a credit card. Organisations are free; you pay per
171
+ Brain plan. Yearly billing and the current limits are on
172
+ [cachly.dev/pricing](https://cachly.dev/pricing).
108
173
 
109
174
  ## Guides
110
175
 
@@ -119,33 +184,49 @@ entry points at this npm package.
119
184
  | [JetBrains plugin guide](https://cachly.dev/docs/jetbrains) | What the plugin does, and how Claude Code, Junie and JetBrains AI Assistant use the Brain. |
120
185
  | [Repo X-ray](https://cachly.dev/roentgen) | Enter a public GitHub repo. In a few seconds you see how many problems its team has solved, and which ones more than once. |
121
186
 
122
- ## How it works
187
+ ## FAQ
123
188
 
124
- 1. A fix, a decision or a dead end is stored as a lesson: topic, what worked, what failed,
125
- severity, file paths, commands and author.
126
- 2. At the start of a session, your AI receives a briefing with the last session, open
127
- failures and recent lessons.
128
- 3. When you ask for something, `smart_recall` looks up the lessons that match. It combines
129
- keyword search (BM25), meaning-based search and the causal graph, in 11 languages.
130
- 4. When an error appears, `causal_trace` walks from the symptom to the cause and to the fix
131
- that worked.
132
- 5. Before a deploy, `brain_predict` lists failure patterns from past incidents.
133
- 6. A git hook and the [CI templates](#ci-integration) add lessons from commits and from
134
- red-to-green runs.
135
- 7. Lessons are shared in the team. Each one carries the name of whoever learned it.
189
+ **How is this different from a `CLAUDE.md` or a memory folder?**
190
+ A rule file is read in full in every session, so it grows and costs tokens each time.
191
+ cachly keeps lessons outside the prompt and places only the matching ones next to it, ranked
192
+ by outcome and review. The [comparisons](#guides) show where a plain file or another product
193
+ fits better.
136
194
 
137
- To see what your AI would know before you install anything, run
138
- `npx @cachly-dev/mcp-server@latest demo` in a project folder. It reads your git history and
139
- prints your fixes, patterns and decisions. Nothing leaves your machine.
195
+ **Does my AI need to call `session_start` by hand?**
196
+ No. A session starts on the first tool call and ends when the editor closes.
140
197
 
141
- **Our agreement with you.** You can leave and take your data:
142
- `npx @cachly-dev/mcp-server@latest export` writes every lesson to `lessons.md` (to read)
143
- and `lessons.jsonl` (to reuse). Code excerpts are stored only if you call `index_project`
144
- yourself, and only on your own EU instance. Read
145
- [what leaves your machine](https://cachly.dev/docs/eu-hosted-mcp-memory-server) before you
146
- decide.
198
+ **Can my whole team share one Brain?**
199
+ Yes. Use `team_learn` and `team_recall`, and invite people with
200
+ `npx @cachly-dev/mcp-server@latest invite teammate@example.com`. They get an email and accept it
201
+ with the link or with `join <token>`. Members can read and learn; deleting the Brain, rotating
202
+ its password and billing stay with the owner.
203
+
204
+ **Is my code sent to cachly servers?**
205
+ Only if you call `index_project` yourself. It stores a short excerpt (up to
206
+ `summary_chars`, 1200 characters by default) per indexed file, on your own EU instance.
207
+ Every other tool stores lesson text, commit messages, session summaries and key-value
208
+ context, but no source code. Storage is in Germany and embeddings are computed in the EU.
209
+ API traffic passes through Cloudflare, a US company. The
210
+ [EU guide](https://cachly.dev/docs/eu-hosted-mcp-memory-server) lists every data flow.
211
+
212
+ **What is `causal_trace`?**
213
+ Given an error, it walks the causal knowledge graph to find the root cause, the
214
+ intermediate causes and the fix that worked, with its date and commands.
215
+
216
+ **What if I hit the context-window limit mid-session?**
217
+ Call `compact_recover`. It rebuilds your context from the Crystal, the recent
218
+ sessions and the registry of work in progress. Usually one tool call is enough.
147
219
 
148
- ## MCP Tools (124 total, 27 listed by default)
220
+ **How do I write lessons my agent finds again?**
221
+ Lead with the decisive fact. The
222
+ [lessons guide](https://cachly.dev/docs/coding-agent-lessons-learned) shows how, with
223
+ examples.
224
+
225
+ ## Reference
226
+
227
+ Everything below is for looking things up. The long tables open with a click.
228
+
229
+ ### MCP Tools (124 total, 27 listed by default)
149
230
 
150
231
  Your editor sees 27 entries by default: the daily tools (26 of them) and one dispatcher,
151
232
  `cachly_tool`. This is on purpose. The full list of 124 costs about 28,000 tokens in every
@@ -157,11 +238,13 @@ cachly_tool(tool: "team_roster") run any of them by name
157
238
  cachly_tool(tool: "team_roster", describe: true) get its schema first
158
239
  ```
159
240
 
160
- Nothing is unreachable. The server dispatches by name, so `team_roster` called directly
241
+ Every tool stays reachable. The server dispatches by name, so `team_roster` called directly
161
242
  still works. Set `CACHLY_ALLE_WERKZEUGE=1` to list all 124. Set `CACHLY_PROFILE=lean` to
162
243
  list 8 plus `cachly_tool`, or `CACHLY_PROFILE=recall` to list the 3 read-only tools.
244
+ <details>
245
+ <summary><b>All tools by area</b></summary>
163
246
 
164
- ### Session and lessons (most used)
247
+ #### Session and lessons (most used)
165
248
 
166
249
  | Tool | What it does |
167
250
  |------|-------------|
@@ -173,7 +256,7 @@ list 8 plus `cachly_tool`, or `CACHLY_PROFILE=recall` to list the 3 read-only to
173
256
  | **`remember_context`** | Keep architecture findings, decisions and file summaries |
174
257
  | **`compact_recover`** | Recover your context after you hit the context-window limit |
175
258
 
176
- ### Team Brain and org knowledge graph
259
+ #### Team Brain and org knowledge graph
177
260
 
178
261
  | Tool | What it does |
179
262
  |------|-------------|
@@ -192,7 +275,7 @@ list 8 plus `cachly_tool`, or `CACHLY_PROFILE=recall` to list the 3 read-only to
192
275
  | `memory_crystalize` | Distill all lessons into a Crystal for instant team context |
193
276
  | `team_crystallize` | A Team Crystal: fixes that 2 or more teammates reached independently |
194
277
 
195
- ### Causal intelligence
278
+ #### Causal intelligence
196
279
 
197
280
  | Tool | What it does |
198
281
  |------|-------------|
@@ -213,7 +296,7 @@ causal_trace(problem="auth breaks after restart")
213
296
  → Fix: PollUntilContextTimeout 3min
214
297
  ```
215
298
 
216
- ### Shareable and public Brains
299
+ #### Shareable and public Brains
217
300
 
218
301
  | Tool | What it does |
219
302
  |------|-------------|
@@ -223,21 +306,22 @@ causal_trace(problem="auth breaks after restart")
223
306
  | `brain_share_list` / `brain_unshare` | List your shares; revoke one so the link goes dead |
224
307
  | **`brain_discover`** | Search the Brain marketplace for ready-made knowledge bases |
225
308
 
226
- ### Knowledge Commons, infrastructure and roadmap
309
+ #### Knowledge Commons, infrastructure and roadmap
227
310
 
228
311
  | Tool | What it does |
229
312
  |------|-------------|
230
313
  | `syndicate` / `fedbrain_search` | Contribute to, and search, the global Knowledge Commons |
231
314
  | `brain_marketplace` / `brain_install` | Browse and install curated Domain Brains (Kubernetes, Auth, databases) |
232
315
  | `cache_get` / `cache_set` / `semantic_search` / `index_project` | Cache and semantic operations. Pass `org_id` on `cache_get` / `cache_set` to share the cache org-wide |
233
- | `cache_stats` / `cache_org_stats` | Hits, estimated USD saved and a monthly projection, per instance or across your org |
316
+ | `cache_stats` / `cache_org_stats` | Hits and requests served from the cache, per instance or across your org |
234
317
  | `list_instances` / `create_instance` / `delete_instance` | Manage Brain instances |
235
318
  | `roadmap_add` / `roadmap_next` | A project roadmap stored in the Brain |
236
319
 
237
320
  Run `health` to see what is wired up in your editor. The full catalog is generated from
238
321
  [`src/tools.ts`](./src/tools.ts).
322
+ </details>
239
323
 
240
- ## CLI commands
324
+ ### CLI commands
241
325
 
242
326
  ```bash
243
327
  npx @cachly-dev/mcp-server@latest autopilot # One command: signs in, configures every editor, fills the Brain from git
@@ -246,6 +330,9 @@ npx @cachly-dev/mcp-server@latest autopilot # One command: signs in, configures
246
330
  Every command below runs as `npx @cachly-dev/mcp-server@latest <command>`. Key and Brain
247
331
  instance come from the environment or from `~/.cachly/credentials.json`, the file `autopilot` writes.
248
332
 
333
+ <details>
334
+ <summary><b>All CLI commands</b></summary>
335
+
249
336
  | Every day | |
250
337
  |---|---|
251
338
  | `status` | Lessons, recalls and team at a glance |
@@ -289,8 +376,9 @@ The method behind `bench` is described in [BENCH.md](./BENCH.md).
289
376
  > **Tip: learn from every merged PR.** Run `learn-git` in CI with the
290
377
  > [cachly-brain-setup GitHub Action](https://github.com/cachly-dev/cachly-action) and
291
378
  > `mode: learn`. Each merged PR then teaches your Brain.
379
+ </details>
292
380
 
293
- ## CI integration
381
+ ### CI integration
294
382
 
295
383
  Every CI run is a lesson. A red→green transition is a proven fix, and a green→red one is a
296
384
  known cause. Ready-to-paste templates live in [`src/ci-integration/`](./src/ci-integration/):
@@ -308,43 +396,14 @@ known cause. Ready-to-paste templates live in [`src/ci-integration/`](./src/ci-i
308
396
  Already have months of CI history? The `brain_from_ci` tool ingests past outcomes in one
309
397
  call, the way `brain_from_git` ingests commits.
310
398
 
311
- ## FAQ
312
-
313
- **Does my AI need to call `session_start` by hand?**
314
- No. A session starts on the first tool call and ends when the editor closes.
315
-
316
- **Can my whole team share one Brain?**
317
- Yes. Use `team_learn` and `team_recall`, and invite people with
318
- `npx @cachly-dev/mcp-server@latest invite teammate@example.com`. They get an email and accept it
319
- with the link or with `join <token>`. Members can read and learn; deleting the Brain, rotating
320
- its password and billing stay with the owner.
321
-
322
- **Is my code sent to cachly servers?**
323
- Only if you call `index_project` yourself. It stores a short excerpt (up to
324
- `summary_chars`, 1200 characters by default) per indexed file, on your own EU instance.
325
- Every other tool stores lesson text, commit messages, session summaries and key-value
326
- context, but no source code. Storage is in Germany and embeddings are computed in the EU.
327
- API traffic passes through Cloudflare, a US company. The
328
- [EU guide](https://cachly.dev/docs/eu-hosted-mcp-memory-server) lists every data flow.
329
-
330
- **What is `causal_trace`?**
331
- Given an error, it walks the causal knowledge graph to find the root cause, the
332
- intermediate causes and the fix that worked, with its date and commands.
333
-
334
- **What if I hit the context-window limit mid-session?**
335
- Call `compact_recover`. It rebuilds your context from the Crystal, the recent
336
- sessions and the registry of work in progress. Usually one tool call is enough.
337
-
338
- **How do I write lessons my agent finds again?**
339
- Lead with the decisive fact. The
340
- [lessons guide](https://cachly.dev/docs/coding-agent-lessons-learned) shows how, with
341
- examples.
342
-
343
- ## Editor support matrix
399
+ ### Editor support matrix
344
400
 
345
401
  `npx @cachly-dev/mcp-server@latest autopilot` detects and configures the editors below.
346
402
  Manual snippets are in [Manual Setup](#manual-setup).
347
403
 
404
+ <details>
405
+ <summary><b>Editors, config files and sign-in paths</b></summary>
406
+
348
407
  | Editor / client | Auto-setup | Config file written | Global config | Notes |
349
408
  |---|---|---|---|---|
350
409
  | **Claude Code** | yes | `.mcp.json` | with the plugin | Without a key: test Brain at session start (plugin) or on the first tool call; browser sign-in only as fallback |
@@ -369,7 +428,9 @@ Manual snippets are in [Manual Setup](#manual-setup).
369
428
  | First tool call with `CACHLY_BRAIN_INSTANCE_ID` set but no key | Inline device flow. You already have a Brain, so no second account is created |
370
429
  | `CACHLY_JWT=cky_live_xxx npx ... autosetup` | Skips the sign-in step and uses the key you pass |
371
430
 
372
- ## Manual Setup
431
+ </details>
432
+
433
+ ### Manual Setup
373
434
 
374
435
  <details>
375
436
  <summary><b>Claude Code</b> (<code>.mcp.json</code> in the project)</summary>
@@ -426,12 +487,15 @@ Run `npx @cachly-dev/mcp-server@latest autopilot` to use your own account instea
426
487
  ```
427
488
  </details>
428
489
 
429
- ## Self-hosting and bring-your-own embeddings
490
+ ### Self-hosting and bring-your-own embeddings
430
491
 
431
492
  Embeddings turn text into vectors for the meaning-based search. By default, cachly
432
493
  computes them on its own servers in the EU as soon as you are signed in. Your text goes
433
494
  to a third-party provider only when you name that provider yourself:
434
495
 
496
+ <details>
497
+ <summary><b>Embedding providers and your own backend</b></summary>
498
+
435
499
  | Provider | Env vars | Model |
436
500
  |---|---|---|
437
501
  | cachly (default, EU servers) | none beyond your key | managed |
@@ -459,21 +523,12 @@ npx @cachly-dev/mcp-server@latest autosetup \
459
523
  `autosetup` writes `CACHLY_API_URL` into the editor config only when it differs from the
460
524
  default cloud. Default installs stay clean, and self-hosted installs keep talking to your
461
525
  backend on every editor start.
526
+ </details>
462
527
 
463
- ## Pricing
464
-
465
- Current prices and limits are on [cachly.dev/pricing](https://cachly.dev/pricing).
466
-
467
- | Tier | Storage | Price | Brains |
468
- |------|---------|-------|--------|
469
- | **Free** | 25 MB | €0/mo | 1 |
470
- | **Dev** | 200 MB | €19/mo | 3 |
471
- | **Pro** | 900 MB | €49/mo, 5 seats | 10 |
472
- | **Business** | 7 GB | €199/mo | 25 |
473
-
474
- The free tier needs no credit card.
528
+ ### Environment Variables
475
529
 
476
- ## Environment Variables
530
+ <details>
531
+ <summary><b>All environment variables</b></summary>
477
532
 
478
533
  | Variable | Default | Description |
479
534
  |----------|---------|-------------|
@@ -489,29 +544,31 @@ The free tier needs no credit card.
489
544
  | `CACHLY_KONTROLLE_ANTEIL` | `5%` | Share of prompts in the control group. `0` turns the control group off, at most `50%` |
490
545
  | `CACHLY_ERKUNDUNG` | `10%` | Share of prompts that may try another setting. `0` keeps the leading setting, at most `10%` |
491
546
 
492
- ## Ecosystem and docs
547
+ </details>
548
+
549
+ ## Links
493
550
 
494
- | Package | What it does |
495
- |---------|-------------|
496
- | **[`@cachly-dev/mcp-server`](https://www.npmjs.com/package/@cachly-dev/mcp-server)** | This server, for Claude Code, Cursor, Copilot, Windsurf, Cline and Zed |
497
- | **[Cachly Brain for VS Code](https://marketplace.visualstudio.com/items?itemName=cachly-dev.cachly-brain)** | Status bar, lessons view and ambient learning in the editor |
498
- | **[Cachly Brain for JetBrains](https://plugins.jetbrains.com/plugin/32059-cachly-brain)** | The same Brain in IntelliJ IDEA, PyCharm, GoLand, WebStorm and Rider |
499
- | **[`@cachly-dev/openclaw`](https://www.npmjs.com/package/@cachly-dev/openclaw)** | Semantic caching for LLM calls in JS/TS apps |
500
- | **[cachly-dev/cachly-action](https://github.com/cachly-dev/cachly-action)** | GitHub Action: setup, PR risk scan, learning from merged PRs, weekly hygiene |
551
+ | Where | What you find there |
552
+ |-------|---------------------|
553
+ | [cachly.dev](https://cachly.dev) | Sign-up, dashboard and the product page |
554
+ | [cachly.dev/pricing](https://cachly.dev/pricing) | Plans, yearly billing and current limits |
555
+ | [MCP docs](https://cachly.dev/docs/mcp) · [AI memory docs](https://cachly.dev/docs/ai-memory) | Setup, tools and concepts |
556
+ | [Release notes](./CHANGELOG.md) | What changed in each version |
557
+ | [github.com/cachly-dev/cachly-mcp](https://github.com/cachly-dev/cachly-mcp) | Source code of this server |
558
+ | [GitHub Issues](https://github.com/cachly-dev/cachly-mcp/issues) | Bugs and feature requests |
559
+ | [MCP Registry](https://registry.modelcontextprotocol.io/v0/servers?search=cachly) | The official entry, `io.github.cachly-dev/mcp-server` |
560
+ | [Cachly Brain for VS Code](https://marketplace.visualstudio.com/items?itemName=cachly-dev.cachly-brain) | Status bar, lessons view and ambient learning in the editor |
561
+ | [Cachly Brain for JetBrains](https://plugins.jetbrains.com/plugin/32059-cachly-brain) | The same Brain in IntelliJ IDEA, PyCharm, GoLand, WebStorm and Rider ([source](https://github.com/cachly-dev/cachly-intellij)) |
562
+ | [cachly-dev/cachly-action](https://github.com/cachly-dev/cachly-action) | GitHub Action: setup, PR risk scan, learning from merged PRs, weekly hygiene |
563
+ | [`@cachly-dev/openclaw`](https://www.npmjs.com/package/@cachly-dev/openclaw) | Semantic caching for LLM calls in JS/TS apps |
501
564
 
502
565
  The VS Code extension shows the same Brain in the editor:
503
566
 
504
567
  ![The Lessons view inside the Cachly Brain VS Code extension, listing six stored lessons](https://cachly.dev/screenshots/vscode/shot3-lesson-card.png)
505
568
 
506
- - [cachly.dev](https://cachly.dev): dashboard and sign-up
507
- - [Documentation](https://cachly.dev/docs/ai-memory)
508
- - [MCP docs](https://cachly.dev/docs/mcp)
509
- - [Release notes](./CHANGELOG.md)
510
- - [GitHub Issues](https://github.com/cachly-dev/cachly-mcp/issues): bugs and feature requests
511
-
512
569
  ---
513
570
 
514
- Solve it once. From then on, your AI knows.
571
+ **Solve it once. From then on, your AI knows.**
515
572
 
516
573
  ```bash
517
574
  npx @cachly-dev/mcp-server@latest autopilot
package/glama.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://glama.ai/mcp/schemas/server.json",
3
- "version": "0.10.234",
3
+ "version": "0.10.235",
4
4
  "maintainers": [
5
5
  "HeinrichNebula"
6
6
  ],
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@cachly-dev/mcp-server",
3
- "version": "0.10.234",
3
+ "version": "0.10.235",
4
4
  "mcpName": "io.github.cachly-dev/mcp-server",
5
- "description": "Solve it once. From then on, your AI knows. Experience for coding agents, EU-hosted: an MCP server for Claude Code, Cursor, Copilot & Windsurf. Learns from every bug fix, commit and CI run.",
5
+ "description": "Memory for coding agents: your AI stores every fix and finds it again when the problem returns. MCP server for Claude Code, Cursor, Copilot, Windsurf, Codex and Gemini CLI, hosted in the EU.",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist/index.js",
@@ -94,10 +94,16 @@
94
94
  "mcp-server",
95
95
  "model-context-protocol",
96
96
  "ai-memory",
97
+ "agent-memory",
98
+ "memory",
97
99
  "persistent-memory",
100
+ "long-term-memory",
101
+ "llm-memory",
102
+ "session-memory",
103
+ "claude-code",
104
+ "claude-code-plugin",
98
105
  "claude-code-memory",
99
106
  "claude",
100
- "claude-code",
101
107
  "cursor",
102
108
  "cursor-memory",
103
109
  "copilot",
@@ -106,40 +112,28 @@
106
112
  "cline",
107
113
  "zed",
108
114
  "continue",
109
- "ai-brain",
110
- "brain",
111
- "causal-knowledge-graph",
112
- "causal-trace",
113
- "root-cause-analysis",
114
- "failure-prediction",
115
- "brain-predict",
116
- "smart-recall",
117
- "memory-crystals",
118
- "team-knowledge",
119
- "ambient-git",
120
- "continuous-learning",
115
+ "codex",
116
+ "codex-cli",
117
+ "gemini-cli",
118
+ "jetbrains",
119
+ "coding-agent",
120
+ "ai-agents",
121
121
  "lessons-learned",
122
- "session-memory",
123
- "semantic-cache",
124
- "semantic-search",
125
- "predictive-ai",
126
- "developer-productivity",
127
122
  "knowledge-base",
123
+ "team-knowledge",
128
124
  "knowledge-graph",
129
- "ai-context",
125
+ "causal-trace",
126
+ "root-cause-analysis",
127
+ "semantic-search",
130
128
  "context-window",
131
- "long-term-memory",
132
- "llm-memory",
133
- "cachly",
134
- "redis",
135
- "valkey",
136
- "cache",
129
+ "developer-productivity",
130
+ "eu-hosted",
131
+ "gdpr",
137
132
  "ai",
138
133
  "llm",
139
- "gdpr",
140
- "ckg"
134
+ "cachly"
141
135
  ],
142
- "homepage": "https://cachly.dev/docs/mcp",
136
+ "homepage": "https://cachly.dev",
143
137
  "bugs": {
144
138
  "url": "https://github.com/cachly-dev/cachly-mcp/issues"
145
139
  }
package/server.json CHANGED
@@ -6,13 +6,13 @@
6
6
  "url": "https://github.com/cachly-dev/cachly-mcp",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.10.234",
9
+ "version": "0.10.235",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "name": "@cachly-dev/mcp-server",
14
14
  "identifier": "@cachly-dev/mcp-server",
15
- "version": "0.10.234",
15
+ "version": "0.10.235",
16
16
  "transport": {
17
17
  "type": "stdio"
18
18
  }