@cachly-dev/mcp-server 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +97 -0
- package/Dockerfile +12 -15
- package/README.md +161 -280
- package/dist/__tests__/namespace.test.d.ts +1 -0
- package/dist/__tests__/namespace.test.js +114 -0
- package/dist/__tests__/namespace.test.js.map +1 -0
- package/dist/index.d.ts +36 -3
- package/dist/index.js +4223 -2344
- package/dist/index.js.map +1 -1
- package/dist/search.test.js +276 -3
- package/dist/search.test.js.map +1 -1
- package/package.json +2 -6
- package/scripts/postinstall.js +36 -0
- package/smithery.yaml +10 -5
- package/src/__tests__/namespace.test.ts +126 -0
- package/src/index.ts +4278 -2379
- package/src/search.test.ts +330 -3
- package/test-features.cjs +23 -0
- package/.github/workflows/publish.yml +0 -28
- package/LICENSE +0 -202
- package/glama.json +0 -6
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Changelog – cachly SDK (mcp)
|
|
2
|
+
|
|
3
|
+
**Language:** MCP (Model Context Protocol)
|
|
4
|
+
**Package:** `@cachly-dev/mcp-server` on **npm**
|
|
5
|
+
|
|
6
|
+
> Full cross-SDK release notes: [../CHANGELOG.md](../CHANGELOG.md)
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## [0.5.37] – 2026-04-24
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **RTL language support (Arabic, Hebrew)** — word-level tokenization with Unicode ranges U+0590–U+05FF (Hebrew) and U+0600–U+06FF (Arabic); Arabic light stemmer strips definite article `ال` and single-char prefix particles (`و`,`ب`,`ل`,`ف`,`ك`)
|
|
15
|
+
- **Arabic and Hebrew stopwords** — ~60 high-frequency function words per language added to the STOPWORDS set
|
|
16
|
+
- **Romanization matching** — katakana segments now additionally emit Hepburn romaji tokens at index time (e.g. `デプロイ` → `depuroi`), so users can query Japanese docs using romaji
|
|
17
|
+
- **Full katakana→romaji converter** — handles digraphs (シャ→sha, チェ→che, ファ→fa), voiced consonants, geminate consonants (ッ), long vowel marks (ー), and loanword combinations
|
|
18
|
+
- **Cross-language retrieval** — 130+ tech term synonyms spanning EN↔JA↔ZH↔KO↔AR↔HE; searching `deploy` now finds docs containing `デプロイ`, `部署`, `배포` and vice versa; applies bidirectionally at tokenize time (zero runtime overhead)
|
|
19
|
+
- **73 unit tests** all passing — new test suites for `katakanaToRomaji`, `arabicLightStem`, `expandCrossLingual`, RTL tokenization, and cross-lingual expansion
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## [0.5.36] – 2026-04-22
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- **Roadmap tools** — `roadmap_add`, `roadmap_update`, `roadmap_list`, `roadmap_next` for persistent project planning inside the Brain
|
|
28
|
+
- `session_start` now shows open roadmap items automatically
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## [0.5.35] – 2026-04-20
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
|
|
36
|
+
- **CJK language support** — Chinese (Simplified + Traditional), Japanese, Korean
|
|
37
|
+
- Character bigram extraction for CJK Unicode ranges
|
|
38
|
+
- ~140 CJK stopwords (Chinese particles, Japanese hiragana particles, Korean postpositions)
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Added
|
|
45
|
+
|
|
46
|
+
- **`setup` command** — interactive zero-arg CLI wizard (`npx @cachly-dev/mcp-server setup`):
|
|
47
|
+
- Reads `CACHLY_JWT` from env or prompts interactively via readline
|
|
48
|
+
- Fetches instances from API; presents list when multiple exist
|
|
49
|
+
- Auto-detects installed editors (Cursor, Windsurf, VS Code, Continue.dev) by checking for their config directories
|
|
50
|
+
- Writes the correct MCP config file for each detected editor in one step
|
|
51
|
+
- Always writes/updates `CLAUDE.md` (idempotent via `<!-- cachly-brain-start/end -->` markers)
|
|
52
|
+
- **`init` command** now idempotent — re-running `npx @cachly-dev/mcp-server init` updates the brain block in `CLAUDE.md` instead of appending a duplicate
|
|
53
|
+
- Shared helpers: `buildMcpConfig()`, `buildClaudeMdBlock()`, `writeClaudeMd()` — used by both `setup` and `init`
|
|
54
|
+
|
|
55
|
+
### Fixed
|
|
56
|
+
|
|
57
|
+
- `init` no longer duplicates the brain block in `CLAUDE.md` when run multiple times
|
|
58
|
+
- Correct package name `@cachly-dev/mcp-server` used consistently (was `@cachly-dev/mcp` in generated configs)
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## [0.1.1] – 2026-04-07
|
|
63
|
+
|
|
64
|
+
### Fixed
|
|
65
|
+
|
|
66
|
+
- Broken `index_project` tool schema – properties were accidentally placed outside the `TOOLS` array
|
|
67
|
+
- Unused `openai` variable removed from `cache_warmup` handler
|
|
68
|
+
- `readdir` type mismatch (`Dirent<string>` vs. `NonSharedBuffer`) fixed
|
|
69
|
+
- Version bumped to `0.3.0` in server metadata
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## [0.1.0] – 2026-04-07
|
|
74
|
+
|
|
75
|
+
Initial release.
|
|
76
|
+
|
|
77
|
+
### Added
|
|
78
|
+
|
|
79
|
+
- MCP tool: `cache_set` – store a value with optional TTL
|
|
80
|
+
- MCP tool: `cache_get` – retrieve a cached value
|
|
81
|
+
- MCP tool: `cache_delete` – remove a key
|
|
82
|
+
- MCP tool: `semantic_search` – vector-similarity lookup for LLM response caching
|
|
83
|
+
- MCP tool: `cache_clear` – flush namespace or entire cache
|
|
84
|
+
- Compatible with Claude Desktop, Cursor, Windsurf, and any MCP-capable host
|
|
85
|
+
- API-key-based authentication
|
|
86
|
+
- EU data residency (German servers, DSGVO compliant)
|
|
87
|
+
|
|
88
|
+
### Known limitations
|
|
89
|
+
|
|
90
|
+
- ~~Streaming tools not yet supported~~ (tracked for a future release)
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## [Unreleased]
|
|
95
|
+
|
|
96
|
+
See [../CHANGELOG.md](../CHANGELOG.md) for upcoming features.
|
|
97
|
+
|
package/Dockerfile
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
FROM node:22-alpine
|
|
1
|
+
FROM node:22-alpine AS builder
|
|
2
2
|
WORKDIR /app
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
COPY package*.json ./
|
|
6
|
-
RUN npm ci
|
|
7
|
-
|
|
8
|
-
# Build TypeScript
|
|
3
|
+
COPY package*.json tsconfig*.json ./
|
|
4
|
+
RUN npm ci --ignore-scripts
|
|
9
5
|
COPY src/ ./src/
|
|
10
|
-
|
|
11
|
-
RUN npm run build && npm prune --omit=dev
|
|
12
|
-
|
|
13
|
-
# MCP servers communicate over stdio — no port needed
|
|
14
|
-
ENV CACHLY_JWT=""
|
|
15
|
-
ENV CACHLY_INSTANCE_ID=""
|
|
16
|
-
ENV CACHLY_NO_TELEMETRY=1
|
|
17
|
-
ENV CACHLY_NO_UPDATE_CHECK=1
|
|
6
|
+
RUN npm run build
|
|
18
7
|
|
|
8
|
+
FROM node:22-alpine
|
|
9
|
+
WORKDIR /app
|
|
10
|
+
COPY package*.json ./
|
|
11
|
+
RUN npm ci --omit=dev --ignore-scripts
|
|
12
|
+
COPY --from=builder /app/dist/ ./dist/
|
|
13
|
+
ENV NODE_ENV=production
|
|
14
|
+
ENV PORT=3000
|
|
15
|
+
EXPOSE 3000
|
|
19
16
|
ENTRYPOINT ["node", "dist/index.js"]
|