@skedulo/memory-hub-mcp 0.2.12 → 0.2.14

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/setup.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runSetup = exports.registerPromptHook = exports.registerSessionStartHook = exports.removeMcpServer = exports.removeCopiedAssets = exports.unregisterHooks = exports.installPlugin = exports.enableMarketplaceAutoUpdate = exports.writeUserEnv = exports.writeDesktopConfig = exports.writeMcpServer = exports.functionUrl = exports.desktopConfigPath = exports.mcpLaunch = exports.pluginInstalled = exports.PLUGIN_ID = exports.MARKETPLACE_REF = exports.MARKETPLACE_REPO = exports.MARKETPLACE_NAME = exports.launchPath = exports.PACKAGE_SPEC = void 0;
3
+ exports.runSetup = exports.runCapture = exports.registerPromptHook = exports.registerSessionStartHook = exports.removeMcpServer = exports.removeCopiedAssets = exports.setCapture = exports.captureOn = exports.CAPTURE_FLAG = exports.unregisterHooks = exports.installPlugin = exports.enableMarketplaceAutoUpdate = exports.removeUserEnv = exports.writeUserEnv = exports.writeDesktopConfig = exports.writeMcpServer = exports.functionUrl = exports.desktopConfigPath = exports.mcpLaunch = exports.pluginInstalled = exports.PLUGIN_ID = exports.MARKETPLACE_REF = exports.MARKETPLACE_REPO = exports.MARKETPLACE_NAME = exports.launchPath = exports.PACKAGE_SPEC = void 0;
4
4
  const child_process_1 = require("child_process");
5
5
  const fs_1 = require("fs");
6
6
  const os_1 = require("os");
@@ -156,11 +156,19 @@ function writeUserEnv(path, env) {
156
156
  writeJson(path, settings);
157
157
  }
158
158
  exports.writeUserEnv = writeUserEnv;
159
+ function removeUserEnv(path, key) {
160
+ const settings = readJson(path);
161
+ if (!settings.env || !(key in settings.env))
162
+ return;
163
+ delete settings.env[key];
164
+ writeJson(path, settings);
165
+ }
166
+ exports.removeUserEnv = removeUserEnv;
159
167
  // Only our own entries are touched — a developer may have their own SessionStart hooks.
160
168
  // "Ours" is the script's identity, not its exact path: setup-dev.sh registers the repo
161
169
  // checkout and this installer ~/.claude/memory-hub-hook, so matching the exact string
162
170
  // lets both stack copies of the same script. Replaces, keeping any timeout it carried.
163
- function registerHook(path, event, hookPath, script, timeout) {
171
+ function registerHook(path, event, hookPath, script, timeout, extra = {}) {
164
172
  const settings = readJson(path);
165
173
  const hooks = (settings.hooks ||= {});
166
174
  const entries = (hooks[event] ||= []);
@@ -168,7 +176,7 @@ function registerHook(path, event, hookPath, script, timeout) {
168
176
  (command.trim() === hookPath || command.trim().endsWith(`memory-hub-hook/${script}`));
169
177
  const ours = entries.flatMap((entry) => (entry.hooks || []).filter((h) => isOurs(h.command)));
170
178
  const already = ours.length === 1 && ours[0].command === hookPath;
171
- const kept = { type: 'command', ...(timeout ? { timeout } : {}), ...ours[0], command: hookPath };
179
+ const kept = { type: 'command', ...(timeout ? { timeout } : {}), ...extra, ...ours[0], command: hookPath };
172
180
  for (const entry of entries) {
173
181
  entry.hooks = (entry.hooks || []).filter((h) => !isOurs(h.command));
174
182
  }
@@ -220,28 +228,78 @@ function claudeRunner() {
220
228
  };
221
229
  }
222
230
  // The plugin brings its own hooks, so setup's copies would run every hook twice.
231
+ // Empty event lists are dropped too: left behind, they read as "the hooks are missing".
232
+ function removeHookCommands(settings, event, matches) {
233
+ const entries = settings.hooks?.[event];
234
+ if (!Array.isArray(entries))
235
+ return { removed: 0, changed: false };
236
+ let removed = 0;
237
+ for (const entry of entries) {
238
+ const before = (entry.hooks || []).length;
239
+ entry.hooks = (entry.hooks || []).filter((h) => !(typeof h.command === 'string' && matches(h.command.trim())));
240
+ removed += before - entry.hooks.length;
241
+ }
242
+ const kept = entries.filter((entry) => entry.hooks.length > 0);
243
+ if (kept.length > 0) {
244
+ settings.hooks[event] = kept;
245
+ }
246
+ else {
247
+ delete settings.hooks[event];
248
+ }
249
+ return { removed, changed: removed > 0 || kept.length !== entries.length || kept.length === 0 };
250
+ }
223
251
  function unregisterHooks(path) {
224
252
  const settings = readJson(path);
225
253
  let removed = 0;
254
+ let changed = false;
226
255
  for (const [event, script] of [['SessionStart', 'session-start.sh'], ['UserPromptSubmit', 'user-prompt-submit.sh']]) {
227
- const entries = settings.hooks?.[event];
228
- if (!Array.isArray(entries))
229
- continue;
230
- for (const entry of entries) {
231
- const before = (entry.hooks || []).length;
232
- entry.hooks = (entry.hooks || []).filter((h) => !(typeof h.command === 'string' && h.command.trim().endsWith(`memory-hub-hook/${script}`)));
233
- removed += before - entry.hooks.length;
234
- }
235
- settings.hooks[event] = entries.filter((entry) => entry.hooks.length > 0);
256
+ const result = removeHookCommands(settings, event, (command) => command.endsWith(`memory-hub-hook/${script}`));
257
+ removed += result.removed;
258
+ changed ||= result.changed;
236
259
  }
237
- if (removed > 0)
260
+ if (changed)
238
261
  writeJson(path, settings);
239
262
  return removed;
240
263
  }
241
264
  exports.unregisterHooks = unregisterHooks;
242
- // Under the plugin a copied SKILL.md lists the skill twice. state/ and cli-path stay: the plugin's prompt hook uses them.
243
- function removeCopiedAssets(settingsPath, home = (0, os_1.homedir)()) {
244
- const { hookDir, skillFile } = (0, asset_sync_1.installDirs)(home);
265
+ exports.CAPTURE_FLAG = 'MEMORY_HUB_AUTO_CAPTURE';
266
+ const CAPTURE_EVENTS = ['Stop', 'SessionEnd'];
267
+ // Same reading as the hooks' opted_in; change both together.
268
+ function flagOn(value) {
269
+ return typeof value === 'string' && ['1', 'true', 'yes', 'on'].includes(value.toLowerCase());
270
+ }
271
+ function captureOn(settingsPath) {
272
+ const settings = readJson(settingsPath);
273
+ if (flagOn(settings.env?.[exports.CAPTURE_FLAG]))
274
+ return true;
275
+ return CAPTURE_EVENTS.some((event) => (settings.hooks?.[event] ?? []).some((entry) => (entry.hooks || []).some((h) => typeof h.command === 'string' && h.command.includes('session-stop.sh'))));
276
+ }
277
+ exports.captureOn = captureOn;
278
+ // With the plugin its own hooks wait for the flag; without it the copied hook is registered here.
279
+ function setCapture(settingsPath, on, mode) {
280
+ if (on) {
281
+ writeUserEnv(settingsPath, { [exports.CAPTURE_FLAG]: '1' });
282
+ if (!mode.plugin && mode.hookPath) {
283
+ registerHook(settingsPath, 'Stop', mode.hookPath, 'session-stop.sh', undefined, { async: true });
284
+ registerHook(settingsPath, 'SessionEnd', mode.hookPath, 'session-stop.sh', 60);
285
+ }
286
+ return;
287
+ }
288
+ removeUserEnv(settingsPath, exports.CAPTURE_FLAG);
289
+ if (!mode.plugin && mode.hookPath) {
290
+ const settings = readJson(settingsPath);
291
+ let changed = false;
292
+ for (const event of CAPTURE_EVENTS) {
293
+ changed = removeHookCommands(settings, event, (command) => command === mode.hookPath).changed || changed;
294
+ }
295
+ if (changed)
296
+ writeJson(settingsPath, settings);
297
+ }
298
+ }
299
+ exports.setCapture = setCapture;
300
+ // Under the plugin a copied skill is listed twice. state/ and cli-path stay: the plugin's prompt hook uses them.
301
+ function removeCopiedAssets(settingsPath, home = (0, os_1.homedir)(), assetsDir = ASSETS) {
302
+ const { hookDir, skillsDir } = (0, asset_sync_1.installDirs)(home);
245
303
  const referenced = JSON.stringify(readJson(settingsPath).hooks || {});
246
304
  // By suffix, so a hook written as ~/... or $HOME/... still protects its copy.
247
305
  const removed = [];
@@ -251,9 +309,11 @@ function removeCopiedAssets(settingsPath, home = (0, os_1.homedir)()) {
251
309
  (0, fs_1.unlinkSync)(path);
252
310
  removed.push(path);
253
311
  };
254
- remove(skillFile);
255
- if ((0, fs_1.existsSync)((0, path_1.dirname)(skillFile)) && (0, fs_1.readdirSync)((0, path_1.dirname)(skillFile)).length === 0)
256
- (0, fs_1.rmdirSync)((0, path_1.dirname)(skillFile));
312
+ for (const name of new Set([asset_sync_1.LEGACY_SKILL, ...(0, asset_sync_1.packagedSkills)(assetsDir), ...(0, asset_sync_1.markedSkills)(skillsDir)])) {
313
+ const srcRoot = (0, path_1.join)(assetsDir, 'skills', name);
314
+ const packaged = (0, fs_1.existsSync)(srcRoot) ? (0, asset_sync_1.filesUnder)(srcRoot).map((src) => (0, path_1.relative)(srcRoot, src)) : [];
315
+ removed.push(...(0, asset_sync_1.removeSkill)(skillsDir, name, packaged));
316
+ }
257
317
  for (const script of asset_sync_1.HOOK_SCRIPTS) {
258
318
  const path = (0, path_1.join)(hookDir, script);
259
319
  if (!referenced.includes(`memory-hub-hook/${script}`))
@@ -283,15 +343,14 @@ function registerPromptHook(path, hookPath) {
283
343
  }
284
344
  exports.registerPromptHook = registerPromptHook;
285
345
  function installAssets() {
286
- const { hookDir, skillFile } = (0, asset_sync_1.installDirs)();
346
+ const { hookDir, skillsDir } = (0, asset_sync_1.installDirs)();
287
347
  (0, fs_1.mkdirSync)(hookDir, { recursive: true });
288
- (0, fs_1.mkdirSync)((0, path_1.dirname)(skillFile), { recursive: true });
289
348
  for (const name of ['session-start.sh', 'session-stop.sh', 'user-prompt-submit.sh']) {
290
349
  const dest = (0, path_1.join)(hookDir, name);
291
350
  (0, fs_1.copyFileSync)((0, path_1.join)(ASSETS, name), dest);
292
351
  (0, fs_1.chmodSync)(dest, 0o755);
293
352
  }
294
- (0, fs_1.copyFileSync)((0, path_1.join)(ASSETS, 'SKILL.md'), skillFile);
353
+ (0, asset_sync_1.copySkills)(ASSETS, skillsDir, (line) => console.log(` ${line}`));
295
354
  (0, asset_sync_1.recordInstall)(hookDir, (0, asset_sync_1.packageVersion)(), (0, path_1.join)(__dirname, 'cli.js'));
296
355
  return { hookPath: (0, path_1.join)(hookDir, 'session-start.sh'), promptHookPath: (0, path_1.join)(hookDir, 'user-prompt-submit.sh') };
297
356
  }
@@ -344,6 +403,60 @@ function existingToken(hosts) {
344
403
  const env = readJson(desktopConfigPath()).mcpServers?.['memory-hub']?.env || {};
345
404
  return { token: env.MEMORY_HUB_MCP_TOKEN, url: env.MEMORY_HUB_FUNCTION_URL };
346
405
  }
406
+ const CAPTURE_SWITCH_HINT = 'Switch it any time with `npx -y @skedulo/memory-hub-mcp@latest capture on` (or `off`).';
407
+ function warnHookTools() {
408
+ if ((0, os_1.platform)() === 'win32') {
409
+ console.log(' warning: the hooks are bash scripts, so on Windows they only run inside Git Bash or WSL');
410
+ }
411
+ for (const tool of ['bash', 'curl', 'jq']) {
412
+ if ((0, child_process_1.spawnSync)('which', [tool]).status !== 0) {
413
+ console.log(` warning: ${tool} is not installed. The hooks need it, so memory is not injected until you install it (macOS: brew install ${tool}).`);
414
+ }
415
+ }
416
+ }
417
+ async function askCapture(current) {
418
+ console.log(' After long stretches and at session end, a background Claude run saves what the');
419
+ console.log(' session learned. New memories are Private (shared only if you share them); an');
420
+ console.log(' update keeps the memory\'s visibility. It uses your Claude usage, and you see what');
421
+ console.log(' it saved at the start of your next session.');
422
+ const answer = (await ask(` Turn on auto-capture? (${current ? 'Y/n' : 'y/N'}): `)).toLowerCase();
423
+ if (!answer)
424
+ return current;
425
+ return answer.startsWith('y');
426
+ }
427
+ async function runCapture(argv = []) {
428
+ const settingsPath = (0, path_1.join)((0, os_1.homedir)(), '.claude', 'settings.json');
429
+ const plugin = pluginInstalled();
430
+ const hookPath = (0, path_1.join)((0, asset_sync_1.installDirs)().hookDir, 'session-stop.sh');
431
+ const choice = argv[0];
432
+ const pluginNote = "If you turned on the plugin's Auto-capture option in /plugin configure, that keeps it on too.";
433
+ if (choice !== 'on' && choice !== 'off') {
434
+ console.log(`auto-capture is ${captureOn(settingsPath) ? 'on' : 'off'} in ~/.claude/settings.json.`);
435
+ if (plugin)
436
+ console.log(pluginNote);
437
+ console.log('Usage: memory-hub-mcp capture on|off');
438
+ return;
439
+ }
440
+ if (choice === 'on' && !plugin && !(0, fs_1.existsSync)(hookPath)) {
441
+ console.log('memory-hub is not set up for Claude Code yet. Run `npx -y @skedulo/memory-hub-mcp setup` first.');
442
+ process.exitCode = 1;
443
+ return;
444
+ }
445
+ setCapture(settingsPath, choice === 'on', { plugin, hookPath: plugin ? undefined : hookPath });
446
+ if (choice === 'on') {
447
+ console.log('auto-capture is on: after long stretches and at session end, a background Claude run, using your Claude usage, saves what the session learned. New memories are Private; updates keep their visibility.');
448
+ }
449
+ else if (captureOn(settingsPath)) {
450
+ console.log('auto-capture is still on: a session-stop.sh entry under Stop or SessionEnd in ~/.claude/settings.json keeps it running. Remove that entry by hand to stop it.');
451
+ }
452
+ else {
453
+ console.log('auto-capture is off.');
454
+ if (plugin)
455
+ console.log(pluginNote);
456
+ }
457
+ console.log('Restart Claude Code to pick this up.');
458
+ }
459
+ exports.runCapture = runCapture;
347
460
  async function runSetup(argv = []) {
348
461
  console.log('==> Setting up the memory hub');
349
462
  let hosts;
@@ -463,12 +576,22 @@ async function runSetup(argv = []) {
463
576
  console.log(` SessionStart hook -> ${hookPath}${note}`);
464
577
  const prompt = registerPromptHook((0, path_1.join)((0, os_1.homedir)(), '.claude', 'settings.json'), promptHookPath);
465
578
  console.log(` UserPromptSubmit hook -> ${promptHookPath}${prompt.already ? ' (already registered)' : ''}`);
466
- console.log(' skill -> ~/.claude/skills/se-ai-memory-hub/SKILL.md');
467
- for (const tool of ['curl', 'jq']) {
468
- if ((0, child_process_1.spawnSync)('which', [tool]).status !== 0) {
469
- console.log(` warning: ${tool} is not installed — the startup hook needs it`);
470
- }
471
- }
579
+ console.log(` skills -> ~/.claude/skills/ (${(0, asset_sync_1.packagedSkills)(ASSETS).join(', ')})`);
580
+ }
581
+ if (hosts.includes('code')) {
582
+ warnHookTools();
583
+ console.log();
584
+ console.log('==> Auto-capture');
585
+ const hookPath = plugin ? undefined : (0, path_1.join)((0, asset_sync_1.installDirs)().hookDir, 'session-stop.sh');
586
+ let on = captureOn(settingsPath);
587
+ if (argv.includes('--capture'))
588
+ on = true;
589
+ else if (argv.includes('--no-capture'))
590
+ on = false;
591
+ else if (process.stdin.isTTY)
592
+ on = await askCapture(on);
593
+ setCapture(settingsPath, on, { plugin, hookPath });
594
+ console.log(on ? ` on. ${CAPTURE_SWITCH_HINT}` : ` off. ${CAPTURE_SWITCH_HINT}`);
472
595
  }
473
596
  if (hosts.includes('desktop')) {
474
597
  console.log();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/memory-hub-mcp",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "MCP server for the SE AI Memory Hub: recall and save developer memory from Claude Code and Claude Desktop.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
package/skill-guide.md CHANGED
@@ -74,7 +74,8 @@ Fact, Skill, or Wiki saves alike. Newer tags: `AI` (LLMs, agents, MCP, prompts),
74
74
  `API` (REST/GraphQL endpoints and schemas), `Mobile` (the Skedulo mobile app/v3 —
75
75
  not `MobileExtension`, which is MEX forms), `Infrastructure` (CI/CD, pipelines,
76
76
  hosting, environments), `Security` (permissions, secrets, vulnerabilities),
77
- `Messaging` (SMS, email, notifications, queues). The tool schema enforces this, so an invalid tag fails
77
+ `Messaging` (SMS, email, notifications, queues), `ProductRules` (a product's rules and
78
+ don't-build wiki pages, written by the product-knowledge skill; see "Product knowledge"). The tool schema enforces this, so an invalid tag fails
78
79
  with a clear validation error rather than reaching the backend — if this
79
80
  list and the schema's actual error ever disagree, trust the error: this
80
81
  list is prose, kept in sync by hand.
@@ -164,12 +165,12 @@ it. A save that happens is worth more than a better-timed one that doesn't.
164
165
 
165
166
  ## Automatic capture (when enabled)
166
167
 
167
- Nothing saves on its own unless the user has switched on the optional capture
168
- hook. It is `memory-hub-hook/session-stop.sh`, registered by hand in
169
- `~/.claude/settings.json` as a `Stop` and/or `SessionEnd` hook; the plugin and
170
- `setup` do not install it. The session-start Reminder says "Auto-capture is on"
171
- when it is registered. Without it, a memory exists only if you called
172
- `memory_save`.
168
+ Nothing saves on its own unless the user has switched on auto-capture. It is
169
+ off by default: `setup` asks, and `npx -y @skedulo/memory-hub-mcp@latest capture on`
170
+ (or `off`) switches it, as does the plugin's Auto-capture option. The
171
+ session-start Reminder says "Auto-capture is on" when it is. Without it, a
172
+ memory exists only if you called `memory_save`. If the user asks how to turn it
173
+ on, give them that one command; never ask them to edit hook JSON.
173
174
 
174
175
  When it runs, it resumes the session headlessly and asks the model to keep
175
176
  anything durable:
@@ -179,7 +180,10 @@ anything durable:
179
180
  - **`SessionEnd`**: once, in the background, when the session ends.
180
181
 
181
182
  It updates the existing Fact for a ticket instead of adding copies, so a
182
- ticket's Fact is revised as the work moves on. Saving yourself is still the
183
+ ticket's Fact is revised as the work moves on. New memories it saves are
184
+ Private, even in a repo linked to a team, because nobody reviewed them first;
185
+ the user shares one with `memory_setVisibility` once they have read it. An
186
+ update to an existing memory keeps that memory's visibility. Saving yourself is still the
183
187
  right move for anything you know matters now. The capture model is
184
188
  `MEMORY_HUB_CAPTURE_MODEL`, default `sonnet`.
185
189
 
@@ -194,8 +198,10 @@ the list of saves in `~/.claude/memory-hub-hook/state/captures-<session>.jsonl`,
194
198
  and a one-line entry per run in `$TMPDIR/memory-hub-stop-hook.log`
195
199
  (`/tmp/memory-hub-stop-hook.log` when `TMPDIR` is unset).
196
200
 
197
- To turn it off, remove the `session-stop.sh` entry from the `Stop` and
198
- `SessionEnd` hooks in `~/.claude/settings.json`.
201
+ To turn it off: `npx -y @skedulo/memory-hub-mcp@latest capture off`, and switch off the
202
+ plugin's Auto-capture option if it was turned on there. A `session-stop.sh`
203
+ registered by hand in `~/.claude/settings.json` keeps capturing until its entry
204
+ is removed.
199
205
 
200
206
  ## Revise, don't re-save
201
207
 
@@ -209,9 +215,15 @@ repeats a memory of yours, change that memory instead of saving another one:
209
215
  `links` (target wiki uids) and `factIds` (uids of your facts that belong to
210
216
  the scenario) replace the whole list; `[]` clears it. A fact that is not
211
217
  yours comes back in `skippedFactIds` instead of failing; facts left out of the
212
- new list are unlinked from the scenario. It re-embeds the text, so search keeps working. Only
213
- the author can update.
214
- - **`memory_delete`** removes one of your memories for good. Use it for a copy
218
+ new list are unlinked from the scenario. It re-embeds the text, so search keeps working. The
219
+ author can update any of their memories. Any member of the team that owns an item's repo can
220
+ update that item when it is Team-visible, but only the author can change its `repo`, `links` or
221
+ `factIds`; Private, Restricted, Org and repo-less items stay author-only. When you are not the
222
+ author, `expectedLastModified` (the `lastModifiedDate` from `memory_get`) is required: without it
223
+ the update is treated as author-only and fails with `Not found`, so a `Not found` on an item you
224
+ can read usually means it was left out. If the item changed since you read it, the update fails
225
+ with `Conflict:` instead of overwriting it. Read it again, re-apply your change, and retry.
226
+ - **`memory_delete`** removes one of your memories for good. Only the author can delete. Use it for a copy
215
227
  you have just merged into another, or a memory that is wrong or obsolete.
216
228
  Prefer `memory_update` while the memory is still partly right.
217
229
  - **`memory_setTaskStatus`** with the ticket `externalRef` marks that ticket's
@@ -223,8 +235,9 @@ looks like an existing memory, the reply starts with `Saved as <uid>, but it
223
235
  looks like …` and lists each match with its uid, a similarity score and whether
224
236
  it is yours. When a match is yours and already covers the point, keep one copy:
225
237
  `memory_update` the old one with the merged text, then `memory_delete` the one
226
- you just saved. A teammate's memory cannot be edited; keep your new one only if
227
- it adds something theirs does not say. The check only warns, so a distinct
238
+ you just saved. Editing a teammate's memory changes what the whole team reads, so
239
+ do it only when the human asks for it; otherwise keep your new one only if it adds
240
+ something theirs does not say. The check only warns, so a distinct
228
241
  memory that shares vocabulary with another is saved either way.
229
242
 
230
243
  Before saving a decision or root cause that you suspect was recorded before,
@@ -518,6 +531,18 @@ verbatim (or close to it) the one time it appears** — it's the only signal
518
531
  they get that their saves are now shared with that team, and it won't
519
532
  repeat later in the same session even though the join already happened.
520
533
 
534
+ ## Product knowledge
535
+
536
+ A customer product's rules, don't-build list, reference pages and sources live as Team wiki pages on
537
+ the product's delivery repo, titled `<Product> › Rules › <feature>`, `<Product> › Don't build`,
538
+ `<Product> › Reference › <topic>` and `<Product> › Sources`; the rules and don't-build pages carry the
539
+ `ProductRules` tag. Find them with `memory_list type=Wiki titlePrefix="<Product> ›"`. Four skills work
540
+ on them: product-knowledge (create, refresh from sources, import a knowledge pack), plan-ticket,
541
+ delegate-ticket and fold-findings. Change these pages through those skills, which keep the entry
542
+ format and change log and always pass `expectedLastModified` to `memory_update`. Without those
543
+ skills, edit with `memory_update` directly, keep the page's entry format, add a change-log line, and
544
+ still pass `expectedLastModified`.
545
+
521
546
  ## If the tools aren't available
522
547
 
523
548
  The memory-hub MCP tools require `memory-hub-mcp` to be registered as an