@cachly-dev/mcp-server 0.10.76 → 0.10.77
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 +40 -0
- package/dist/src/handlers/brain.js +8 -1
- package/dist/src/handlers/brain.js.map +1 -1
- package/dist/src/index.js +102 -36
- package/dist/src/index.js.map +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -418,6 +418,46 @@ On the first tool call your AI will prompt you to sign in — takes 10 seconds.
|
|
|
418
418
|
|
|
419
419
|
---
|
|
420
420
|
|
|
421
|
+
## Self-hosting & BYOK
|
|
422
|
+
|
|
423
|
+
cachly is **bring-your-own-key and self-host friendly out of the box** — no
|
|
424
|
+
enterprise contract required to keep data in your own infra.
|
|
425
|
+
|
|
426
|
+
**Bring your own embedding key (BYOK).** Semantic search runs on the embedding
|
|
427
|
+
provider *you* choose. Set one env var and cachly auto-detects it; no key needed if
|
|
428
|
+
you prefer cachly's server-side embeddings (uses your JWT):
|
|
429
|
+
|
|
430
|
+
| Provider | Env var | Model |
|
|
431
|
+
|---|---|---|
|
|
432
|
+
| OpenAI | `OPENAI_API_KEY` | `text-embedding-3-small` |
|
|
433
|
+
| Google Gemini | `GEMINI_API_KEY` | `text-embedding-004` |
|
|
434
|
+
| Mistral | `MISTRAL_API_KEY` | `mistral-embed` |
|
|
435
|
+
| Cohere | `COHERE_API_KEY` | `embed-english-v3.0` |
|
|
436
|
+
| Ollama (local, free) | `OLLAMA_BASE_URL` | `nomic-embed-text` |
|
|
437
|
+
| cachly (server-side) | *(none — uses JWT)* | managed |
|
|
438
|
+
|
|
439
|
+
Force a specific one with `CACHLY_EMBED_PROVIDER=openai`. Run
|
|
440
|
+
`npx @cachly-dev/mcp-server@latest health` to confirm which provider is active.
|
|
441
|
+
|
|
442
|
+
**Point at your own backend (self-hosting).** Every cachly install can talk to a
|
|
443
|
+
private backend instead of `api.cachly.dev`:
|
|
444
|
+
|
|
445
|
+
```bash
|
|
446
|
+
# One-shot: wire up the wizard against your self-hosted backend
|
|
447
|
+
npx @cachly-dev/mcp-server@latest setup --api-url https://cachly.mycorp.internal
|
|
448
|
+
|
|
449
|
+
# Or non-interactively
|
|
450
|
+
npx @cachly-dev/mcp-server@latest init \
|
|
451
|
+
--instance-id <uuid> --api-key <cky_live_...> \
|
|
452
|
+
--api-url https://cachly.mycorp.internal
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
`setup`/`init` bake `CACHLY_API_URL` into the editor config **only** when it differs
|
|
456
|
+
from the default cloud — so default installs stay clean, and self-hosted installs
|
|
457
|
+
keep talking to your backend on every editor launch. All data stays in your infra.
|
|
458
|
+
|
|
459
|
+
---
|
|
460
|
+
|
|
421
461
|
## Pricing
|
|
422
462
|
|
|
423
463
|
| Tier | RAM | Price | Best for |
|
|
@@ -7,8 +7,15 @@ import { keywordSearch, tokenize, splitMultiQuery, levenshtein, indexVocab as _i
|
|
|
7
7
|
import { rerankByQuality } from '../rerank.js';
|
|
8
8
|
import { computeEmbedding, hasEmbedProvider } from '../embeddings.js';
|
|
9
9
|
// ── Changelog (shown once per version in session_start) ──────────────────────
|
|
10
|
-
const MCP_VERSION = '0.10.
|
|
10
|
+
const MCP_VERSION = '0.10.77';
|
|
11
11
|
const WHATS_NEW = {
|
|
12
|
+
'0.10.77': [
|
|
13
|
+
`🩹 **Frictionless onboarding + first-class self-hosting/BYOK**`,
|
|
14
|
+
` 🚀 Editor-launched server now serves all tools even before sign-in — zero-credential device flow finally triggers on first tool call`,
|
|
15
|
+
` 🔒 No more stdout pollution: stdio JSON-RPC stream stays clean when no JWT is set`,
|
|
16
|
+
` 🏠 \`setup --api-url\` / \`init --api-url\` point at a self-hosted backend; URL baked into config only when non-default`,
|
|
17
|
+
` 🧬 \`health\` now shows your BYOK embedding provider + accepts cky_ long-lived keys (was a false "invalid token" failure)`,
|
|
18
|
+
],
|
|
12
19
|
'0.10.76': [
|
|
13
20
|
`📊 **Agent-trace benchmark + editor matrix + setup timer**`,
|
|
14
21
|
` 📂 New \`agent-traces-corpus.json\` — 22 lessons, 15 queries, realistic AI-agent debug patterns`,
|