@cachly-dev/mcp-server 0.10.74 → 0.10.76

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 CHANGED
@@ -331,6 +331,40 @@ sessions + WIP registry — typically one tool call.
331
331
 
332
332
  ---
333
333
 
334
+ ## Editor support matrix
335
+
336
+ `npx @cachly-dev/mcp-server@latest setup` auto-detects and configures all of the
337
+ following. Manual snippets are in the **Manual Setup** section below.
338
+
339
+ | Editor / Client | Auto-setup | Config file written | Global config | Notes |
340
+ |---|---|---|---|---|
341
+ | **Claude Code** | ✅ | `~/.claude/mcp.json` + `.mcp.json` | ✅ global always | Runtime device-flow sign-in on first tool call |
342
+ | **Cursor** | ✅ detected via `.cursor/` | `.cursor/mcp.json` | — | Project-level; restart Cursor after setup |
343
+ | **Windsurf** | ✅ detected via `.windsurf/` | `.windsurf/mcp.json` | — | Project-level; restart Windsurf after setup |
344
+ | **VS Code + Copilot** | ✅ detected via `.vscode/` | `.vscode/mcp.json` | — | Requires VS Code MCP extension or Copilot chat |
345
+ | **Cline** | ✅ detected via VS Code | `.vscode/mcp.json` | — | Shares config with Copilot; restart VS Code |
346
+ | **Continue.dev** | ✅ detected via `.continue/` | `.continue/config.json` | — | Uses `modelContextProtocolServers` key |
347
+ | **Zed** | ✅ detected via `.zed/` | `.zed/settings.json` | — | Uses `context_servers` key |
348
+ | **Windsurf (global)** | `setup --editor windsurf` | `~/.windsurf/mcp.json` | ✅ | Pass `--editor` to target global config |
349
+ | **Any other MCP client** | `init --editor claude` | `.mcp.json` | — | Standard `mcpServers` stdio format |
350
+
351
+ **Which sign-in path each editor uses:**
352
+
353
+ | Scenario | Path |
354
+ |---|---|
355
+ | `setup` from a real terminal (TTY) | OAuth device-flow → browser click → API key saved automatically |
356
+ | `setup` from VSCode task / CI (non-TTY) | Auto-detects non-interactive, opens browser with step-by-step guide, prints `CACHLY_JWT=... setup` instruction |
357
+ | First tool call from Claude Code (no JWT yet) | Inline device-flow: MCP returns URL + code, browser opens automatically, next call proceeds |
358
+ | `CACHLY_JWT=cky_live_xxx npx ... setup` | Skips auth step entirely, uses provided key |
359
+
360
+ > **Tip — fastest per-project setup from inside Claude Code:**
361
+ > ```
362
+ > Set up cachly for this project: npx @cachly-dev/mcp-server@latest setup
363
+ > ```
364
+ > Claude runs it and restarts automatically.
365
+
366
+ ---
367
+
334
368
  ## Manual Setup
335
369
 
336
370
  <details>
@@ -7,8 +7,22 @@ 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.73';
10
+ const MCP_VERSION = '0.10.76';
11
11
  const WHATS_NEW = {
12
+ '0.10.76': [
13
+ `📊 **Agent-trace benchmark + editor matrix + setup timer**`,
14
+ ` 📂 New \`agent-traces-corpus.json\` — 22 lessons, 15 queries, realistic AI-agent debug patterns`,
15
+ ` 🏆 Benchmark result: **P@1 +66.7%, MRR +9.5% vs flat-file** (adversarial failure-distractors per category)`,
16
+ ` 📋 README: first-class editor support matrix (Claude Code, Cursor, Windsurf, VSCode, Cline, Continue.dev, Zed)`,
17
+ ` ⏱️ setup now shows elapsed time + "Brain is ready" banner at the end`,
18
+ ],
19
+ '0.10.75': [
20
+ `🩹 **Setup hardened — works from the VSCode plugin & any non-TTY terminal**`,
21
+ ` 🔌 \`setup\` no longer hangs on a non-interactive stdin (VSCode tasks, CI) — auto-detects + runs in automatic mode`,
22
+ ` 🔐 Device-flow now uses the API proxy first (the old direct-Keycloak call returned 403) — sign-in actually completes`,
23
+ ` 🌐 When auto sign-in is unavailable, the browser opens with a step-by-step API-key guide instead of a silent paste prompt`,
24
+ ` 📊 Funnel fix: \`device_flow_completed\` / \`device_flow_failed(reason)\` now emitted from setup too`,
25
+ ],
12
26
  '0.10.73': [
13
27
  `🔐 **Team visibility scopes + one-command init + external bench**`,
14
28
  ` 🆕 \`team_grant_scope\` / \`team_scopes\` — scope lessons to a sub-team (group="security"); only members + admins recall them`,