@cachly-dev/mcp-server 0.10.233 → 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.
- package/README.md +218 -161
- package/dist/src/rueckfall-daten.js +1 -1
- package/glama.json +1 -1
- package/package.json +24 -30
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -1,37 +1,61 @@
|
|
|
1
|
-
# cachly —
|
|
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,
|
|
6
|
-
>
|
|
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
|
[](https://www.npmjs.com/package/@cachly-dev/mcp-server)
|
|
9
|
-

|
|
9
|
+
[](./LICENSE)
|
|
10
|
+
[](https://registry.modelcontextprotocol.io/v0/servers?search=cachly)
|
|
11
|
+
[](https://cachly.dev/docs/eu-hosted-mcp-memory-server)
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
|
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
|
|
47
|
-
|
|
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
|
-
|
|
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
|
-
|
|
56
|
-
|
|
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
|
-
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
91
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
##
|
|
187
|
+
## FAQ
|
|
123
188
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
138
|
-
|
|
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
|
-
**
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
547
|
+
</details>
|
|
548
|
+
|
|
549
|
+
## Links
|
|
493
550
|
|
|
494
|
-
|
|
|
495
|
-
|
|
496
|
-
|
|
|
497
|
-
|
|
|
498
|
-
|
|
|
499
|
-
|
|
|
500
|
-
|
|
|
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
|

|
|
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={_arten_pruefsumme:"60279054dc2fdc4b",pruef_arten:["zeit-datum","abhaengigkeiten","dateien-upload"],arten:{absturz:"crash|panic|segfault|segmentation|traceback|stack ?trace|fatal error|uncaught|exception",leistung:"\\bslow|performance|\\blag\\b|high cpu|latency|takes too long|freez|hang",speicher:"memory leak|out of memory|\\boom\\b|memory usage|heap","anmeldung-rechte":"\\blogin|log in|sign in|\\bauth|oauth|\\btoken|permission|unauthori|forbidden|\\bsso\\b|session","dateien-upload":"upload|download|attachment|\\bpdf\\b|file size|drag and drop|hochlad|herunterlad|dateianhang|anhaenge|dateigroesse|dateigr\xF6\xDFe","zeichen-kodierung":"unicode|utf-?8|encoding|emoji|special character|\\blocale","zeit-datum":"timezone|time zone|\\bdst\\b|timestamp|\\bdate\\b|calendar|datetime|zeitzone|sommerzeit|winterzeit|zeitstempel|\\bdatum\\b|\\bdatums|kalender|uhrzeit",uebersetzung:"translat|\\bi18n|localiz|language","bauen-installieren":"\\bbuild|compil|cmake|webpack|\\bvite\\b|bundl|\\binstall",abhaengigkeiten:"dependenc|upgrade|\\bbump|deprecat|breaking change|incompatib|abhaengigkeit|abh\xE4ngigkeit|versionssprung|inkompatib|nicht mehr kompatibel",betriebssystem:"windows|macos|mac os|\\blinux|\\bwsl\\b|\\bios\\b|android",oberflaeche:"\\bui\\b|button|layout|\\bcss\\b|dark mode|\\btheme|render|display|scroll|tooltip|modal",barrierefreiheit:"accessib|screen reader|\\baria|keyboard nav|a11y",netzwerk:"network|timeout|timed out|proxy|\\bssl\\b|\\btls\\b|certificate|connection|websocket|\\bcors\\b",datenbank:"database|\\bsql|migration|postgres|mysql|sqlite|mongodb|\\bquery",zwischenspeicher:"\\bcache|stale|invalidat",konfiguration:"\\bconfig|setting|environment variable|\\benv\\b|\\bflag\\b|option","container-ausrollen":"docker|kubernetes|\\bk8s\\b|\\bhelm\\b|container|\\bdeploy","tests-ci":"\\btest|\\bci\\b|flaky|github actions|pipeline",doku:"\\bdocs?\\b|documentation|readme|\\btypo",sicherheit:"security|vulnerab|\\bxss\\b|csrf|injection|\\bcve-"},zahlen:{"zeit-datum":{name:"time/date",projekte:
|
|
1
|
+
const e={_arten_pruefsumme:"60279054dc2fdc4b",pruef_arten:["zeit-datum","abhaengigkeiten","dateien-upload"],arten:{absturz:"crash|panic|segfault|segmentation|traceback|stack ?trace|fatal error|uncaught|exception",leistung:"\\bslow|performance|\\blag\\b|high cpu|latency|takes too long|freez|hang",speicher:"memory leak|out of memory|\\boom\\b|memory usage|heap","anmeldung-rechte":"\\blogin|log in|sign in|\\bauth|oauth|\\btoken|permission|unauthori|forbidden|\\bsso\\b|session","dateien-upload":"upload|download|attachment|\\bpdf\\b|file size|drag and drop|hochlad|herunterlad|dateianhang|anhaenge|dateigroesse|dateigr\xF6\xDFe","zeichen-kodierung":"unicode|utf-?8|encoding|emoji|special character|\\blocale","zeit-datum":"timezone|time zone|\\bdst\\b|timestamp|\\bdate\\b|calendar|datetime|zeitzone|sommerzeit|winterzeit|zeitstempel|\\bdatum\\b|\\bdatums|kalender|uhrzeit",uebersetzung:"translat|\\bi18n|localiz|language","bauen-installieren":"\\bbuild|compil|cmake|webpack|\\bvite\\b|bundl|\\binstall",abhaengigkeiten:"dependenc|upgrade|\\bbump|deprecat|breaking change|incompatib|abhaengigkeit|abh\xE4ngigkeit|versionssprung|inkompatib|nicht mehr kompatibel",betriebssystem:"windows|macos|mac os|\\blinux|\\bwsl\\b|\\bios\\b|android",oberflaeche:"\\bui\\b|button|layout|\\bcss\\b|dark mode|\\btheme|render|display|scroll|tooltip|modal",barrierefreiheit:"accessib|screen reader|\\baria|keyboard nav|a11y",netzwerk:"network|timeout|timed out|proxy|\\bssl\\b|\\btls\\b|certificate|connection|websocket|\\bcors\\b",datenbank:"database|\\bsql|migration|postgres|mysql|sqlite|mongodb|\\bquery",zwischenspeicher:"\\bcache|stale|invalidat",konfiguration:"\\bconfig|setting|environment variable|\\benv\\b|\\bflag\\b|option","container-ausrollen":"docker|kubernetes|\\bk8s\\b|\\bhelm\\b|container|\\bdeploy","tests-ci":"\\btest|\\bci\\b|flaky|github actions|pipeline",doku:"\\bdocs?\\b|documentation|readme|\\btypo",sicherheit:"security|vulnerab|\\bxss\\b|csrf|injection|\\bcve-"},zahlen:{"zeit-datum":{name:"time/date",projekte:289,fenster_tage:90,folgen:791,wiederkehr:148,zufall_quote:.042,faktor:4.43,rat:"Worth adding a test with a second time zone and a daylight-saving date.",beispiel:{repo:"AppFlowy-IO/AppFlowy",issue:2408,folge_issue:2466,tage:2,datei:"frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_page.dart"}},abhaengigkeiten:{name:"dependency",projekte:289,fenster_tage:90,folgen:1408,wiederkehr:223,zufall_quote:.069,faktor:2.31,rat:"Worth pinning the version and running the tests against the next major version.",beispiel:{repo:"apache/rocketmq",issue:7636,folge_issue:7680,tage:7,datei:"pom.xml"}}},_gemessen:"08.11.2026, 289 Projekte in drei unabhaengigen Datensaetzen (32 + 130 + 127), Fenster 90 Tage, Zufall als Erwartungswert. Upload fiel weg (zusammen 1,73), Anmeldung/Rechte (1,88) und Zeichenkodierung (nur einmal >= 2 mit Einzelziehung) ebenso."};export{e as RUECKFALL};
|
package/glama.json
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cachly-dev/mcp-server",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.235",
|
|
4
4
|
"mcpName": "io.github.cachly-dev/mcp-server",
|
|
5
|
-
"description": "
|
|
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
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
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
|
-
"
|
|
125
|
+
"causal-trace",
|
|
126
|
+
"root-cause-analysis",
|
|
127
|
+
"semantic-search",
|
|
130
128
|
"context-window",
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"redis",
|
|
135
|
-
"valkey",
|
|
136
|
-
"cache",
|
|
129
|
+
"developer-productivity",
|
|
130
|
+
"eu-hosted",
|
|
131
|
+
"gdpr",
|
|
137
132
|
"ai",
|
|
138
133
|
"llm",
|
|
139
|
-
"
|
|
140
|
-
"ckg"
|
|
134
|
+
"cachly"
|
|
141
135
|
],
|
|
142
|
-
"homepage": "https://cachly.dev
|
|
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.
|
|
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.
|
|
15
|
+
"version": "0.10.235",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
}
|