@cachly-dev/mcp-server 0.10.210 → 0.10.212
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/dist/src/handlers/team.js +42 -176
- package/dist/src/index.js +138 -193
- package/dist/src/projektdateien.js +59 -4
- package/glama.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
|
@@ -1,9 +1,64 @@
|
|
|
1
|
-
const
|
|
1
|
+
const c="<!-- cachly-brain-start -->",p="<!-- cachly-brain-end -->";function l(e=""){return new RegExp(`${c}[\\s\\S]*?${p}`,e)}const m=`---
|
|
2
2
|
description: Cachly AI Brain \u2014 persistent memory protocol (recall before tasks, learn after fixes)
|
|
3
3
|
alwaysApply: true
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
`,
|
|
6
|
+
`,f={claude:".mcp.json",cursor:".cursor/mcp.json",windsurf:".windsurf/mcp.json",copilot:".vscode/mcp.json",continue:".continue/config.json",cline:".vscode/mcp.json",zed:".zed/settings.json"};function y(e,t,i,r,n){if(e.nurMitIdea&&!r(n(t,".idea")))return!1;if(e.nurMit){const a=(e.nurMit.projekt??[]).some(o=>r(n(t,o))),s=(e.nurMit.heim??[]).some(o=>r(n(i,o)));if(!a&&!s)return!1}return!0}async function h(e,t,i){const{writeFile:r,appendFile:n,readFile:a,mkdir:s}=await import("node:fs/promises"),{existsSync:o}=await import("node:fs"),{dirname:d}=await import("node:path");if(await s(d(e),{recursive:!0}),o(e)){const u=await a(e,"utf-8");return u.includes(c)?(await r(e,u.replace(l(),()=>t),"utf-8"),"updated"):(await n(e,`
|
|
7
7
|
`+t+`
|
|
8
|
-
`,"utf-8"),"appended")}return await e
|
|
9
|
-
`,"utf-8"),"written"}const
|
|
8
|
+
`,"utf-8"),"appended")}return await r(e,(i??"")+t+`
|
|
9
|
+
`,"utf-8"),"written"}const _=[{pfad:["CLAUDE.md"]},{pfad:["AGENTS.md"]},{pfad:[".github","copilot-instructions.md"]},{pfad:[".cursor","rules","cachly.mdc"],prefix:m},{pfad:[".windsurfrules"]},{pfad:[".clinerules"]},{pfad:[".aiassistant","rules","cachly.md"],nurMitIdea:!0},{pfad:["GEMINI.md"],nurMit:{projekt:[".gemini"],heim:[".gemini"]}},{pfad:[".junie","guidelines.md"],nurMit:{projekt:[".junie"]}}];function w(e){return`${c}
|
|
10
|
+
## Cachly AI Brain \u2014 Always Active
|
|
11
|
+
|
|
12
|
+
The Brain MCP server runs automatically. Instance: \`${e}\`
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
### AT THE START of every new conversation (mandatory \u2014 first thing, before anything else):
|
|
17
|
+
\`\`\`
|
|
18
|
+
session_start(instance_id="${e}", workspace_path="<absolute path to this project>", focus="<first topic the user mentioned>")
|
|
19
|
+
\`\`\`
|
|
20
|
+
Show the full briefing output to the user. If the response says the brain is empty or has 0 lessons, immediately seed it:
|
|
21
|
+
\`\`\`
|
|
22
|
+
brain_from_git(instance_id="${e}", repo_path="<workspace_path>", limit=100)
|
|
23
|
+
\`\`\`
|
|
24
|
+
Then tell the user: "Your brain just learned from your git history. You're now pre-briefed."
|
|
25
|
+
|
|
26
|
+
### BEFORE every task (mandatory \u2014 no exceptions):
|
|
27
|
+
\`\`\`
|
|
28
|
+
smart_recall(instance_id="${e}", query="<what you are about to do>")
|
|
29
|
+
\`\`\`
|
|
30
|
+
If relevant lessons are found, say: "Your brain knows this pattern \u2014 [lesson]." Then proceed.
|
|
31
|
+
|
|
32
|
+
### BEFORE editing any file (mandatory):
|
|
33
|
+
\`\`\`
|
|
34
|
+
remember_context(instance_id="${e}", key="wip:<filename>", content="EDITING: <file:line> \u2014 <goal>", ttl=86400)
|
|
35
|
+
\`\`\`
|
|
36
|
+
When done: update content to \`"DONE: <file> \u2014 <summary>"\`.
|
|
37
|
+
|
|
38
|
+
### AFTER every fix, deploy, or discovery (mandatory):
|
|
39
|
+
\`\`\`
|
|
40
|
+
learn_from_attempts(instance_id="${e}", topic="<category:keyword>", outcome="success"|"failure",
|
|
41
|
+
what_worked="...", what_failed="...", severity="critical"|"major"|"minor",
|
|
42
|
+
file_paths=["..."], commands=["..."], tags=["..."])
|
|
43
|
+
\`\`\`
|
|
44
|
+
|
|
45
|
+
### AT THE END of every conversation (mandatory):
|
|
46
|
+
\`\`\`
|
|
47
|
+
session_end(instance_id="${e}", summary="<one sentence: what was done>", files_changed=["..."])
|
|
48
|
+
\`\`\`
|
|
49
|
+
|
|
50
|
+
### WHEN debugging any error (mandatory before grepping/reading files):
|
|
51
|
+
\`\`\`
|
|
52
|
+
causal_trace(instance_id="${e}", problem="<exact error or symptom>")
|
|
53
|
+
\`\`\`
|
|
54
|
+
If a known fix exists in the Brain, use it directly. Skip research if Brain has the answer.
|
|
55
|
+
|
|
56
|
+
### BEFORE any risky operation (deploy, migration, dependency upgrade):
|
|
57
|
+
\`\`\`
|
|
58
|
+
brain_predict(instance_id="${e}", context="<what you are about to do>")
|
|
59
|
+
\`\`\`
|
|
60
|
+
Report predicted failure risks to the user before proceeding.
|
|
61
|
+
|
|
62
|
+
### Half-finished code rule:
|
|
63
|
+
Never commit code that does not compile. Run \`tsc --noEmit\` / \`go build ./...\` before every commit.
|
|
64
|
+
${p}`}export{_ as ANWEISUNGS_DATEIEN,p as CLAUDE_MD_MARKER_END,c as CLAUDE_MD_MARKER_START,m as CURSOR_MDC_FRONTMATTER,f as EDITOR_FILES,l as blockMuster,w as buildClaudeMdBlock,h as setzeAnweisungsblock,y as sollSchreiben};
|
package/glama.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cachly-dev/mcp-server",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.212",
|
|
4
4
|
"mcpName": "io.github.cachly-dev/mcp-server",
|
|
5
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.",
|
|
6
6
|
"type": "module",
|
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.212",
|
|
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.212",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
}
|