@cachly-dev/mcp-server 0.10.24 → 0.10.26
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 +0 -131
- package/README.md +112 -136
- package/dist/__tests__/brain-predict-failures.test.d.ts +17 -0
- package/dist/__tests__/brain-predict-failures.test.js +339 -0
- package/dist/__tests__/brain-predict-failures.test.js.map +1 -0
- package/dist/handlers/brain.js +67 -7
- package/dist/handlers/brain.js.map +1 -1
- package/dist/handlers/fedbrain.js +44 -93
- package/dist/handlers/fedbrain.js.map +1 -1
- package/dist/handlers/roadmap.js +2 -8
- package/dist/handlers/roadmap.js.map +1 -1
- package/dist/handlers/syndicate.js +7 -15
- package/dist/handlers/syndicate.js.map +1 -1
- package/dist/handlers/team.js +50 -62
- package/dist/handlers/team.js.map +1 -1
- package/dist/index.js +223 -966
- package/dist/index.js.map +1 -1
- package/dist/tools.d.ts +54 -3
- package/dist/tools.js +62 -8
- package/dist/tools.js.map +1 -1
- package/package.json +13 -29
- package/scripts/postinstall.js +12 -12
- package/server.json +9 -3
- package/smithery.yaml +8 -15
- package/src/__tests__/brain-predict-failures.test.ts +430 -0
- package/src/handlers/brain.ts +64 -7
- package/src/handlers/fedbrain.ts +38 -88
- package/src/handlers/roadmap.ts +2 -7
- package/src/handlers/syndicate.ts +7 -13
- package/src/handlers/team.ts +33 -57
- package/src/index.ts +245 -995
- package/src/tools.ts +66 -8
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -50
- package/.github/ISSUE_TEMPLATE/config.yml +0 -8
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -25
- package/.github/workflows/publish.yml +0 -72
- package/LAUNCH_TEXTS.md +0 -182
- package/LICENSE +0 -202
- package/dist/__tests__/auth.test.d.ts +0 -1
- package/dist/__tests__/auth.test.js +0 -107
- package/dist/__tests__/auth.test.js.map +0 -1
- package/glama.json +0 -36
- package/llms.txt +0 -155
- package/src/__tests__/auth.test.ts +0 -147
package/src/tools.ts
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
// ── Tools ─────────────────────────────────────────────────────────────────────
|
|
4
4
|
|
|
5
5
|
const TOOLS = [
|
|
6
|
+
// ── Auth / Onboarding ────────────────────────────────────────────────────
|
|
7
|
+
{
|
|
8
|
+
name: 'sign_in',
|
|
9
|
+
description:
|
|
10
|
+
'Sign in to cachly AI Brain. Call this FIRST if no CACHLY_JWT is configured. ' +
|
|
11
|
+
'Starts an OAuth 2.0 Device Flow: you visit a short URL in your browser, approve in one click, ' +
|
|
12
|
+
'and the brain is ready instantly — no copy-paste, no dashboard required. ' +
|
|
13
|
+
'After sign-in, a free Brain instance is auto-provisioned if you don\'t have one yet. ' +
|
|
14
|
+
'Once authenticated, all 63 brain tools become available. ' +
|
|
15
|
+
'IMPORTANT: AI assistants should call this tool proactively at session start when CACHLY_JWT is not set.',
|
|
16
|
+
inputSchema: { type: 'object', properties: {}, required: [] },
|
|
17
|
+
},
|
|
6
18
|
// ── Instance Management ──────────────────────────────────────────────────
|
|
7
19
|
{
|
|
8
20
|
name: 'list_instances',
|
|
@@ -437,11 +449,10 @@ const TOOLS = [
|
|
|
437
449
|
{
|
|
438
450
|
name: 'get_api_status',
|
|
439
451
|
description:
|
|
440
|
-
'
|
|
441
|
-
'Returns
|
|
442
|
-
'
|
|
443
|
-
'
|
|
444
|
-
'Workflow: run get_api_status → read the issue it flags → fix it → retry your tool.',
|
|
452
|
+
'Check the cachly API health and your authentication status. ' +
|
|
453
|
+
'Returns whether the JWT is valid, your user ID (sub claim), ' +
|
|
454
|
+
'token expiry, and the auth provider (keycloak). ' +
|
|
455
|
+
'Use this to debug connection issues or verify your CACHLY_JWT is correct.',
|
|
445
456
|
inputSchema: { type: 'object', properties: {}, required: [] },
|
|
446
457
|
},
|
|
447
458
|
// ── Thinking/Context Cache (for AI assistants) ────────────────────────────
|
|
@@ -1696,8 +1707,7 @@ const TOOLS = [
|
|
|
1696
1707
|
description:
|
|
1697
1708
|
'Bootstrap brain lessons from git history. Parses commit messages and infers fix/feature/refactor ' +
|
|
1698
1709
|
'lessons automatically. Great for onboarding an existing codebase — run once and the brain instantly ' +
|
|
1699
|
-
'knows your team\'s accumulated patterns.
|
|
1700
|
-
'last run, so repeated calls are fast. Emits progress updates to stderr during long scans.',
|
|
1710
|
+
'knows your team\'s accumulated patterns. Supports limit and branch options.',
|
|
1701
1711
|
inputSchema: {
|
|
1702
1712
|
type: 'object',
|
|
1703
1713
|
properties: {
|
|
@@ -1706,11 +1716,59 @@ const TOOLS = [
|
|
|
1706
1716
|
limit: { type: 'number', description: 'Max commits to process (default: 100, max: 500)' },
|
|
1707
1717
|
branch: { type: 'string', description: 'Git branch to parse (default: current branch / HEAD)' },
|
|
1708
1718
|
since: { type: 'string', description: 'Only commits after this date, e.g. "2024-01-01" (optional)' },
|
|
1709
|
-
incremental: { type: 'boolean', description: 'Only process commits since last run (default: true). Set false to reprocess all.' },
|
|
1710
1719
|
},
|
|
1711
1720
|
required: ['instance_id'],
|
|
1712
1721
|
},
|
|
1713
1722
|
},
|
|
1723
|
+
// ── Brain Stats + Pinning ────────────────────────────────────────────────
|
|
1724
|
+
{
|
|
1725
|
+
name: 'brain_stats',
|
|
1726
|
+
description:
|
|
1727
|
+
'At-a-glance health dashboard for your AI Brain. Returns lesson count, context entries, ' +
|
|
1728
|
+
'roadmap items, active streak, last session summary, pinned lessons, top 5 topics by frequency, ' +
|
|
1729
|
+
'and crystal status — all in one call. ' +
|
|
1730
|
+
'Use this after `session_start` when you want a quick state-of-the-brain view. ' +
|
|
1731
|
+
'Read-only — no side effects.',
|
|
1732
|
+
inputSchema: {
|
|
1733
|
+
type: 'object',
|
|
1734
|
+
properties: {
|
|
1735
|
+
instance_id: { type: 'string', description: 'UUID of the cache instance' },
|
|
1736
|
+
},
|
|
1737
|
+
required: ['instance_id'],
|
|
1738
|
+
},
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
name: 'pin_lesson',
|
|
1742
|
+
description:
|
|
1743
|
+
'Pin a lesson to ALWAYS appear in session_start, regardless of age or confidence decay. ' +
|
|
1744
|
+
'Use for critical lessons that must never be forgotten: platform quirks, security rules, ' +
|
|
1745
|
+
'non-obvious gotchas (e.g. "bash:macos-lowercase: use tr not ${var,,}"). ' +
|
|
1746
|
+
'Pinned lessons are shown at the top of every session briefing with a 📌 icon. ' +
|
|
1747
|
+
'Use unpin_lesson to remove a pin. Idempotent — pinning the same topic twice is safe.',
|
|
1748
|
+
inputSchema: {
|
|
1749
|
+
type: 'object',
|
|
1750
|
+
properties: {
|
|
1751
|
+
instance_id: { type: 'string', description: 'UUID of the cache instance' },
|
|
1752
|
+
topic: { type: 'string', description: 'Topic slug to pin (must already exist via learn_from_attempts)' },
|
|
1753
|
+
},
|
|
1754
|
+
required: ['instance_id', 'topic'],
|
|
1755
|
+
},
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
name: 'unpin_lesson',
|
|
1759
|
+
description:
|
|
1760
|
+
'Remove a pin from a lesson so it follows normal recency/confidence decay in session_start. ' +
|
|
1761
|
+
'The lesson data is preserved — only the pin marker is removed. ' +
|
|
1762
|
+
'Use `list_pinned` (via brain_stats) to see all currently pinned topics.',
|
|
1763
|
+
inputSchema: {
|
|
1764
|
+
type: 'object',
|
|
1765
|
+
properties: {
|
|
1766
|
+
instance_id: { type: 'string', description: 'UUID of the cache instance' },
|
|
1767
|
+
topic: { type: 'string', description: 'Topic slug to unpin' },
|
|
1768
|
+
},
|
|
1769
|
+
required: ['instance_id', 'topic'],
|
|
1770
|
+
},
|
|
1771
|
+
},
|
|
1714
1772
|
{
|
|
1715
1773
|
name: 'brain_predict_failures',
|
|
1716
1774
|
description:
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug report
|
|
3
|
-
about: Something isn't working as expected
|
|
4
|
-
title: '[bug] '
|
|
5
|
-
labels: bug
|
|
6
|
-
assignees: ''
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## What happened?
|
|
10
|
-
|
|
11
|
-
<!-- Describe the bug clearly. -->
|
|
12
|
-
|
|
13
|
-
## Steps to reproduce
|
|
14
|
-
|
|
15
|
-
1.
|
|
16
|
-
2.
|
|
17
|
-
3.
|
|
18
|
-
|
|
19
|
-
## Expected behavior
|
|
20
|
-
|
|
21
|
-
<!-- What should have happened? -->
|
|
22
|
-
|
|
23
|
-
## Brain doctor output
|
|
24
|
-
|
|
25
|
-
Run `brain_doctor` in your AI assistant and paste the output here.
|
|
26
|
-
|
|
27
|
-
<details>
|
|
28
|
-
<summary>brain_doctor output</summary>
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
(paste here)
|
|
32
|
-
```
|
|
33
|
-
</details>
|
|
34
|
-
|
|
35
|
-
## Environment
|
|
36
|
-
|
|
37
|
-
- Package version: <!-- `npm list @cachly-dev/mcp-server` -->
|
|
38
|
-
- Editor / AI assistant: <!-- Claude Code / Cursor / Windsurf / etc. -->
|
|
39
|
-
- OS: <!-- macOS / Linux / Windows -->
|
|
40
|
-
- Node version: <!-- `node --version` -->
|
|
41
|
-
|
|
42
|
-
## Logs
|
|
43
|
-
|
|
44
|
-
<details>
|
|
45
|
-
<summary>Relevant logs or error output</summary>
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
(paste here)
|
|
49
|
-
```
|
|
50
|
-
</details>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Feature request
|
|
3
|
-
about: Suggest a new tool, behavior, or improvement
|
|
4
|
-
title: '[feat] '
|
|
5
|
-
labels: enhancement
|
|
6
|
-
assignees: ''
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## What problem does this solve?
|
|
10
|
-
|
|
11
|
-
<!-- Describe the pain point clearly. What can't you do today that you wish you could? -->
|
|
12
|
-
|
|
13
|
-
## Proposed solution
|
|
14
|
-
|
|
15
|
-
<!-- How would you like it to work? Be specific — tool name, input/output, behavior. -->
|
|
16
|
-
|
|
17
|
-
## Alternatives you've considered
|
|
18
|
-
|
|
19
|
-
<!-- What workarounds are you using now? What else did you consider? -->
|
|
20
|
-
|
|
21
|
-
## Context
|
|
22
|
-
|
|
23
|
-
- Tool(s) involved: <!-- e.g. smart_recall, causal_trace, brain_predict -->
|
|
24
|
-
- Editor / AI assistant: <!-- Claude Code / Cursor / Windsurf / etc. -->
|
|
25
|
-
- Use case: <!-- team / solo / CI / other -->
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
name: Publish to npm
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [main]
|
|
6
|
-
workflow_dispatch:
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
publish:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
permissions:
|
|
12
|
-
contents: write # needed to create GitHub Releases
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v4
|
|
15
|
-
|
|
16
|
-
- uses: actions/setup-node@v4
|
|
17
|
-
with:
|
|
18
|
-
node-version: '20'
|
|
19
|
-
registry-url: 'https://registry.npmjs.org'
|
|
20
|
-
|
|
21
|
-
- name: Install dependencies
|
|
22
|
-
run: npm install --ignore-scripts
|
|
23
|
-
|
|
24
|
-
- name: Test
|
|
25
|
-
run: npm test
|
|
26
|
-
|
|
27
|
-
- name: Build
|
|
28
|
-
run: npm run build
|
|
29
|
-
|
|
30
|
-
- name: Check if version is already published
|
|
31
|
-
id: version_check
|
|
32
|
-
run: |
|
|
33
|
-
PKG_VERSION=$(node -p "require('./package.json').version")
|
|
34
|
-
echo "version=$PKG_VERSION" >> $GITHUB_OUTPUT
|
|
35
|
-
if npm view "@cachly-dev/mcp-server@$PKG_VERSION" version &>/dev/null; then
|
|
36
|
-
echo "skip=true" >> $GITHUB_OUTPUT
|
|
37
|
-
echo "Version $PKG_VERSION already published — skipping."
|
|
38
|
-
else
|
|
39
|
-
echo "skip=false" >> $GITHUB_OUTPUT
|
|
40
|
-
echo "Version $PKG_VERSION is new — will publish."
|
|
41
|
-
fi
|
|
42
|
-
|
|
43
|
-
- name: Extract CHANGELOG notes
|
|
44
|
-
if: steps.version_check.outputs.skip == 'false'
|
|
45
|
-
id: changelog
|
|
46
|
-
run: |
|
|
47
|
-
VERSION="${{ steps.version_check.outputs.version }}"
|
|
48
|
-
# Extract section for this version from CHANGELOG.md
|
|
49
|
-
NOTES=$(awk "/^## \[?${VERSION}\]?/{found=1; next} found && /^## /{exit} found{print}" CHANGELOG.md | sed '/^[[:space:]]*$/d' | head -60)
|
|
50
|
-
if [ -z "$NOTES" ]; then
|
|
51
|
-
NOTES="See [CHANGELOG.md](https://github.com/cachly-dev/cachly-mcp/blob/main/CHANGELOG.md) for details."
|
|
52
|
-
fi
|
|
53
|
-
# Write to file to avoid env var quoting issues
|
|
54
|
-
echo "$NOTES" > /tmp/release-notes.md
|
|
55
|
-
echo "See the [CHANGELOG](https://github.com/cachly-dev/cachly-mcp/blob/main/CHANGELOG.md) for full details." >> /tmp/release-notes.md
|
|
56
|
-
|
|
57
|
-
- name: Publish
|
|
58
|
-
if: steps.version_check.outputs.skip == 'false'
|
|
59
|
-
run: npm publish --access public
|
|
60
|
-
env:
|
|
61
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
62
|
-
|
|
63
|
-
- name: Create GitHub Release
|
|
64
|
-
if: steps.version_check.outputs.skip == 'false'
|
|
65
|
-
env:
|
|
66
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
67
|
-
run: |
|
|
68
|
-
VERSION="${{ steps.version_check.outputs.version }}"
|
|
69
|
-
gh release create "v${VERSION}" \
|
|
70
|
-
--title "v${VERSION}" \
|
|
71
|
-
--notes-file /tmp/release-notes.md \
|
|
72
|
-
--latest
|
package/LAUNCH_TEXTS.md
DELETED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
# Launch Texts — cachly AI Brain
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
## Product Hunt
|
|
6
|
-
|
|
7
|
-
### Tagline (60 chars max)
|
|
8
|
-
Persistent memory + causal AI for Claude, Cursor & Copilot
|
|
9
|
-
|
|
10
|
-
### Description (260 chars)
|
|
11
|
-
Your AI forgets everything between sessions. cachly fixes that permanently. One command sets it up: detects your editors, writes all configs, bootstraps lessons from your git history. Free forever. No credentials required.
|
|
12
|
-
|
|
13
|
-
### Full Description
|
|
14
|
-
|
|
15
|
-
**The problem:** Every morning you re-explain your architecture to your AI. Every bug gets re-researched. Every fix gets re-discovered. The average developer wastes 45 minutes/day on this.
|
|
16
|
-
|
|
17
|
-
**The fix:** `npx @cachly-dev/mcp-server@latest setup`
|
|
18
|
-
|
|
19
|
-
One command. It signs you in (one browser click), detects every editor you have (Claude Code, Cursor, Windsurf, VS Code, Copilot, Cline, Zed), writes the correct config for each, bootstraps your Brain from your git history, and installs a git hook that learns from every future commit automatically.
|
|
20
|
-
|
|
21
|
-
**What your AI gets:**
|
|
22
|
-
- A briefing at every session start: last session, open failures, relevant past fixes
|
|
23
|
-
- Causal root cause analysis: `causal_trace("auth breaks after restart")` → Root cause → Chain → Exact fix from 3 months ago with the command that worked
|
|
24
|
-
- Failure prediction before it happens: `brain_predict` reads your history before every deploy
|
|
25
|
-
- A running "time saved" counter — so you can see the ROI
|
|
26
|
-
|
|
27
|
-
**What makes it different from mem0, MemGPT, etc.:**
|
|
28
|
-
The `causal_trace` tool. No other memory system builds a Causal Knowledge Graph. Most systems store facts. cachly stores WHY things broke and HOW they were fixed — with the full chain of cause and effect. 30 minutes of git blame in one call.
|
|
29
|
-
|
|
30
|
-
**Free forever:** 25 MB, German servers, GDPR-compliant, no credit card.
|
|
31
|
-
|
|
32
|
-
### First Comment (post immediately after launch)
|
|
33
|
-
Hey PH! 👋
|
|
34
|
-
|
|
35
|
-
I built cachly after watching my AI re-research the same deployment bug for the third time in a month. It had no memory. I did.
|
|
36
|
-
|
|
37
|
-
The thing I'm most proud of: `causal_trace`. You describe a problem in plain English, and it walks your Brain's Causal Knowledge Graph to find: the root cause, the intermediate failure chain, and the exact fix that worked last time — including the date and the command. Nothing else does this.
|
|
38
|
-
|
|
39
|
-
5000+ developers are already using the npm package. Would love your feedback on what's missing.
|
|
40
|
-
|
|
41
|
-
**Commands to try after setup:**
|
|
42
|
-
- `causal_trace(problem="[your last bug]")` — see if it already knows the answer
|
|
43
|
-
- `brain_predict(context="about to deploy")` — what will go wrong?
|
|
44
|
-
- `brain_doctor` — Brain health check
|
|
45
|
-
|
|
46
|
-
---
|
|
47
|
-
|
|
48
|
-
## Hacker News — Show HN
|
|
49
|
-
|
|
50
|
-
**Title:**
|
|
51
|
-
Show HN: cachly – causal memory for AI coding assistants (MCP server, free)
|
|
52
|
-
|
|
53
|
-
**Text:**
|
|
54
|
-
I built cachly after noticing that my AI re-researched the same bug three times in a month. The context window empties, the memory vanishes.
|
|
55
|
-
|
|
56
|
-
cachly is an MCP server that gives Claude Code, Cursor, Copilot, and Windsurf persistent memory with one command:
|
|
57
|
-
|
|
58
|
-
npx @cachly-dev/mcp-server@latest setup
|
|
59
|
-
|
|
60
|
-
It detects your editors, writes all the MCP configs, bootstraps from your git history, and installs a git hook that learns from every future commit. No credentials needed in any config file — OAuth Device Flow handles auth inline on the first tool call.
|
|
61
|
-
|
|
62
|
-
The part I think is technically interesting: `causal_trace`. Instead of just storing facts like most memory systems, cachly builds a Causal Knowledge Graph — typed edges: `fixes`, `requires`, `co-occurs`, `causes`, `contradicts`. When you describe a problem, it walks the graph to reconstruct the failure chain and surface the exact fix.
|
|
63
|
-
|
|
64
|
-
causal_trace(problem="auth breaks after restart")
|
|
65
|
-
→ Root: k8s:namespace-terminating
|
|
66
|
-
→ Via: keycloak:jwks-race
|
|
67
|
-
→ Fix: PollUntilContextTimeout 3min ← worked March 12
|
|
68
|
-
|
|
69
|
-
Sessions start and end automatically (no manual session_start/session_end). Everything runs in the background.
|
|
70
|
-
|
|
71
|
-
Free tier: 25 MB, German servers, GDPR. Apache-2.0.
|
|
72
|
-
|
|
73
|
-
GitHub: https://github.com/cachly-dev/cachly-mcp
|
|
74
|
-
npm: https://www.npmjs.com/package/@cachly-dev/mcp-server
|
|
75
|
-
|
|
76
|
-
Happy to answer questions about the architecture.
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
## Reddit — r/ClaudeAI
|
|
81
|
-
|
|
82
|
-
**Title:**
|
|
83
|
-
I built persistent memory for Claude Code — no credentials, no config, one command
|
|
84
|
-
|
|
85
|
-
**Text:**
|
|
86
|
-
After the 10th time explaining my project architecture to Claude, I built cachly.
|
|
87
|
-
|
|
88
|
-
**What it does:**
|
|
89
|
-
Run `npx @cachly-dev/mcp-server@latest setup` once. It:
|
|
90
|
-
1. Signs you in with one browser click (no credentials in config)
|
|
91
|
-
2. Detects Claude Code, Cursor, Windsurf, VS Code, Cline — writes all configs automatically
|
|
92
|
-
3. Bootstraps your Brain from your git history right away
|
|
93
|
-
4. Installs a git hook so every future commit feeds the brain automatically
|
|
94
|
-
|
|
95
|
-
From that point, your AI arrives pre-briefed every session. No `session_start` needed — it's automatic.
|
|
96
|
-
|
|
97
|
-
**The feature I'm most excited about:**
|
|
98
|
-
`causal_trace("auth breaks after restart")` — it doesn't just search for similar lessons, it walks a Causal Knowledge Graph to reconstruct the failure chain and return the exact fix you used before, with commands and file paths.
|
|
99
|
-
|
|
100
|
-
**Free forever** — 25 MB, German servers, GDPR, no credit card.
|
|
101
|
-
|
|
102
|
-
GitHub: https://github.com/cachly-dev/cachly-mcp
|
|
103
|
-
|
|
104
|
-
Would love feedback from this community — what memory features would you most want?
|
|
105
|
-
|
|
106
|
-
---
|
|
107
|
-
|
|
108
|
-
## Reddit — r/LocalLLaMA
|
|
109
|
-
|
|
110
|
-
**Title:**
|
|
111
|
-
MCP server that learns from your git history automatically — causal memory for AI coding
|
|
112
|
-
|
|
113
|
-
**Text:**
|
|
114
|
-
Built this for the problem of AI context loss between sessions. Technical highlights:
|
|
115
|
-
|
|
116
|
-
- **Causal Knowledge Graph (CKG):** Typed edges (fixes, requires, co-occurs, causes, contradicts). `causal_trace` walks the graph instead of just doing text similarity.
|
|
117
|
-
- **Continuous Learning Stream:** git post-commit hook + GitHub Actions step. Every commit → lessons extracted automatically. Zero `session_end` calls needed.
|
|
118
|
-
- **brain_predict:** Before deploys, reads your CKG for patterns that match past failures and returns probability-weighted warnings.
|
|
119
|
-
- **Memory Crystals:** Compresses 30-50 sessions into a dense snapshot injected at every session start.
|
|
120
|
-
- **11-language BM25+ search:** EN, DE, FR, ES, IT, PT, ZH, JA, KO, AR, HE — cross-lingual retrieval (e.g. `smart_recall("deploy")` finds デプロイ, 部署, 배포).
|
|
121
|
-
|
|
122
|
-
Works with any MCP host: Claude Code, Cursor, Windsurf, VS Code, Cline, Zed, Continue.dev.
|
|
123
|
-
|
|
124
|
-
Free tier: 25 MB. Apache-2.0. German servers.
|
|
125
|
-
|
|
126
|
-
GitHub: https://github.com/cachly-dev/cachly-mcp
|
|
127
|
-
|
|
128
|
-
---
|
|
129
|
-
|
|
130
|
-
## Twitter/X Thread
|
|
131
|
-
|
|
132
|
-
**Tweet 1:**
|
|
133
|
-
Your AI forgets everything between sessions.
|
|
134
|
-
I built the fix.
|
|
135
|
-
|
|
136
|
-
`npx @cachly-dev/mcp-server@latest setup`
|
|
137
|
-
|
|
138
|
-
One command → persistent AI memory across Claude, Cursor, Copilot, Windsurf.
|
|
139
|
-
Free forever. 🧵
|
|
140
|
-
|
|
141
|
-
**Tweet 2:**
|
|
142
|
-
The part that took the longest to build: `causal_trace`
|
|
143
|
-
|
|
144
|
-
You type: "auth breaks after restart"
|
|
145
|
-
|
|
146
|
-
It returns:
|
|
147
|
-
→ Root: k8s:namespace-terminating
|
|
148
|
-
→ Via: keycloak:jwks-race
|
|
149
|
-
→ Fix: PollUntilContextTimeout 3min ← you used this March 12, it worked
|
|
150
|
-
|
|
151
|
-
30 minutes of git blame. One call.
|
|
152
|
-
|
|
153
|
-
**Tweet 3:**
|
|
154
|
-
How setup works:
|
|
155
|
-
1. Run the command
|
|
156
|
-
2. Browser opens → one click sign-in (no password)
|
|
157
|
-
3. It detects every editor you have
|
|
158
|
-
4. Writes MCP config for each automatically
|
|
159
|
-
5. Bootstraps Brain from your git history
|
|
160
|
-
6. Installs git hook for automatic future learning
|
|
161
|
-
|
|
162
|
-
Restart editor. Done.
|
|
163
|
-
|
|
164
|
-
**Tweet 4:**
|
|
165
|
-
What your AI sees every morning:
|
|
166
|
-
|
|
167
|
-
🧠 Session Briefing
|
|
168
|
-
⏱️ Brain saved you ~4h 30m total
|
|
169
|
-
✅ api:auth — Bearer in header, not cookie
|
|
170
|
-
✅ docker:build — ARG changes bust cache
|
|
171
|
-
⚠️ k8s:deploy — namespace terminating race condition
|
|
172
|
-
|
|
173
|
-
🤝 Your team has 3 new lessons since yesterday
|
|
174
|
-
|
|
175
|
-
**Tweet 5:**
|
|
176
|
-
Free tier: 25 MB, German servers, GDPR-compliant, no credit card.
|
|
177
|
-
Open source: Apache-2.0
|
|
178
|
-
|
|
179
|
-
GitHub: github.com/cachly-dev/cachly-mcp
|
|
180
|
-
npm: @cachly-dev/mcp-server
|
|
181
|
-
|
|
182
|
-
If this saves you time, a ⭐ means a lot.
|
package/LICENSE
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Apache License
|
|
3
|
-
Version 2.0, January 2004
|
|
4
|
-
http://www.apache.org/licenses/
|
|
5
|
-
|
|
6
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
-
|
|
8
|
-
1. Definitions.
|
|
9
|
-
|
|
10
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
-
|
|
13
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
-
the copyright owner that is granting the License.
|
|
15
|
-
|
|
16
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
-
other entities that control, are controlled by, or are under common
|
|
18
|
-
control with that entity. For the purposes of this definition,
|
|
19
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
-
direction or management of such entity, whether by contract or
|
|
21
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
-
|
|
24
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
-
exercising permissions granted by this License.
|
|
26
|
-
|
|
27
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
-
including but not limited to software source code, documentation
|
|
29
|
-
source, and configuration files.
|
|
30
|
-
|
|
31
|
-
"Object" form shall mean any form resulting from mechanical
|
|
32
|
-
transformation or translation of a Source form, including but
|
|
33
|
-
not limited to compiled object code, generated documentation,
|
|
34
|
-
and conversions to other media types.
|
|
35
|
-
|
|
36
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
-
Object form, made available under the License, as indicated by a
|
|
38
|
-
copyright notice that is included in or attached to the work
|
|
39
|
-
(an example is provided in the Appendix below).
|
|
40
|
-
|
|
41
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
-
form, that is based on (or derived from) the Work and for which the
|
|
43
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
-
of this License, Derivative Works shall not include works that remain
|
|
46
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
-
the Work and Derivative Works thereof.
|
|
48
|
-
|
|
49
|
-
"Contribution" shall mean any work of authorship, including
|
|
50
|
-
the original version of the Work and any modifications or additions
|
|
51
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
-
means any form of electronic, verbal, or written communication sent
|
|
56
|
-
to the Licensor or its representatives, including but not limited to
|
|
57
|
-
communication on electronic mailing lists, source code control systems,
|
|
58
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
-
excluding communication that is conspicuously marked or otherwise
|
|
61
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
-
|
|
63
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
-
subsequently incorporated within the Work.
|
|
66
|
-
|
|
67
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
-
Work and such Derivative Works in Source or Object form.
|
|
73
|
-
|
|
74
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
-
(except as stated in this section) patent license to make, have made,
|
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
-
where such license applies only to those patent claims licensable
|
|
80
|
-
by such Contributor that are necessarily infringed by their
|
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
-
institute patent litigation against any entity (including a
|
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
-
or contributory patent infringement, then any patent licenses
|
|
87
|
-
granted to You under this License for that Work shall terminate
|
|
88
|
-
as of the date such litigation is filed.
|
|
89
|
-
|
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
-
modifications, and in Source or Object form, provided that You
|
|
93
|
-
meet the following conditions:
|
|
94
|
-
|
|
95
|
-
(a) You must give any other recipients of the Work or
|
|
96
|
-
Derivative Works a copy of this License; and
|
|
97
|
-
|
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
|
99
|
-
stating that You changed the files; and
|
|
100
|
-
|
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
|
103
|
-
attribution notices from the Source form of the Work,
|
|
104
|
-
excluding those notices that do not pertain to any part of
|
|
105
|
-
the Derivative Works; and
|
|
106
|
-
|
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
|
109
|
-
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
|
112
|
-
of the following places: within a NOTICE text file distributed
|
|
113
|
-
as part of the Derivative Works; within the Source form or
|
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
|
115
|
-
within a display generated by the Derivative Works, if and
|
|
116
|
-
wherever such third-party notices normally appear. The contents
|
|
117
|
-
of the NOTICE file are for informational purposes only and
|
|
118
|
-
do not modify the License. You may add Your own attribution
|
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
-
that such additional attribution notices cannot be construed
|
|
122
|
-
as modifying the License.
|
|
123
|
-
|
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
|
125
|
-
may provide additional or different license terms and conditions
|
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
-
the conditions stated in this License.
|
|
130
|
-
|
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
-
this License, without any additional terms or conditions.
|
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
-
the terms of any separate license agreement you may have executed
|
|
137
|
-
with Licensor regarding such Contributions.
|
|
138
|
-
|
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
-
except as required for reasonable and customary use in describing the
|
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
-
|
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
|
153
|
-
|
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
|
159
|
-
incidental, or consequential damages of any character arising as a
|
|
160
|
-
result of this License or out of the use or inability to use the
|
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
-
other commercial damages or losses), even if such Contributor
|
|
164
|
-
has been advised of the possibility of such damages.
|
|
165
|
-
|
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
-
or other liability obligations and/or rights consistent with this
|
|
170
|
-
License. However, in accepting such obligations, You may act only
|
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
-
of your accepting any such warranty or additional liability.
|
|
176
|
-
|
|
177
|
-
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
-
|
|
181
|
-
To apply the Apache License to your work, attach the following
|
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
-
replaced with your own identifying information. (Don't include
|
|
184
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
-
comment syntax for the file format. We also recommend that a
|
|
186
|
-
file or class name and description of purpose be included on the
|
|
187
|
-
same "printed page" as the copyright notice for easier
|
|
188
|
-
identification within third-party archives.
|
|
189
|
-
|
|
190
|
-
Copyright [yyyy] [name of copyright owner]
|
|
191
|
-
|
|
192
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
-
you may not use this file except in compliance with the License.
|
|
194
|
-
You may obtain a copy of the License at
|
|
195
|
-
|
|
196
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
-
|
|
198
|
-
Unless required by applicable law or agreed to in writing, software
|
|
199
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
-
See the License for the specific language governing permissions and
|
|
202
|
-
limitations under the License.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|