virlow-mcp 3.14.7 → 3.15.0

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.
Files changed (2) hide show
  1. package/dist/cli.js +9 -2
  2. package/package.json +4 -4
package/dist/cli.js CHANGED
@@ -1383,6 +1383,11 @@ function mapError(err) {
1383
1383
  return String(err);
1384
1384
  }
1385
1385
  var CONTENT_FORMAT = 'CONTENT FORMAT: content is HTML, not Markdown. Virlow renders it in a rich-text editor, so Markdown syntax is stored and displayed literally \u2014 "# Heading" appears as those characters, not as a heading. Use <h1>-<h4>, <p>, <strong>, <em>, <u>, <s>, <mark>, <ul>/<ol>/<li>, <blockquote>, <pre><code>, <a href>, <hr>, <img src>, and <table>/<tr>/<th>/<td>. Task lists are <ul data-type="taskList"> with <li data-checked="true|false">. Wrap every paragraph in <p>; a bare newline is not a paragraph break. STYLE: never use em-dashes (\u2014). Use a comma, a colon, or two sentences.';
1386
+ function serverInstructions(memoriesEnabled) {
1387
+ const memory = "MEMORY: Virlow holds durable facts about this user, their preferences and their projects. At the start of a task, call search_memory with the topic of the task (and namespace set to the project, when there is one) before acting, so earlier decisions are honoured instead of rediscovered. When you learn something that will still be true next week and would be wasteful to work out again (a decision, a convention, a preference, a fact about the environment), call add_memory with a short label and the fact itself; do this without being asked. Do not store transient task state, secrets, or anything the user asked to keep out. Memories are ordinary encrypted notes the user can read and edit in the Virlow app. ";
1388
+ const notes = "NOTES: note content is HTML, never Markdown; wrap paragraphs in <p>. Never use em-dashes. If a tool reports the vault is locked, call unlock, tell the user to finish in the browser, and confirm with status before retrying.";
1389
+ return (memoriesEnabled ? memory : "") + notes;
1390
+ }
1386
1391
  var HTML_FIELD_HINT = "Note body as HTML (not Markdown). Paragraphs in <p>, headings in <h1>-<h4>. See the tool description for the full tag list.";
1387
1392
  function wrap(fn) {
1388
1393
  return async (...args) => {
@@ -1427,7 +1432,9 @@ function createServices(opts) {
1427
1432
  }
1428
1433
  function buildServer(opts) {
1429
1434
  const { api, vault, memoryStore, notesService } = opts.services ?? createServices(opts);
1430
- const server = new McpServer(opts.serverInfo);
1435
+ const server = new McpServer(opts.serverInfo, {
1436
+ instructions: serverInstructions(opts.memoriesEnabled !== false)
1437
+ });
1431
1438
  server.registerTool("unlock", { description: opts.unlock.description }, wrap(async () => textResult(await opts.unlock.begin({ api, vault, memoryStore, notesService }))));
1432
1439
  server.registerTool("lock", {
1433
1440
  description: "Immediately lock the vault, discarding the in-memory decryption key and clearing all cached memories and notes. Use this when the user is done with a session or asks to lock explicitly. Safe to call even if already locked."
@@ -1979,7 +1986,7 @@ function startUnlockServer(api, vault, opts = {}) {
1979
1986
  }
1980
1987
 
1981
1988
  // src/version.ts
1982
- var VERSION = true ? "3.14.7" : "dev";
1989
+ var VERSION = true ? "3.15.0" : "dev";
1983
1990
 
1984
1991
  // src/server.ts
1985
1992
  function defaultEmbeddingCacheDir() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virlow-mcp",
3
- "version": "3.14.7",
3
+ "version": "3.15.0",
4
4
  "description": "Local MCP server for Virlow Secure Notes: end-to-end-encrypted AI memories and notes for Cursor, Claude, Codex, and any MCP client.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -34,9 +34,9 @@
34
34
  "esbuild": "^0.25.0",
35
35
  "typescript": "^5.8.0",
36
36
  "vitest": "^3.0.0",
37
- "@batalabs/virlow-memory": "3.14.7",
38
- "@batalabs/virlow-mcp-core": "3.14.7",
39
- "@batalabs/virlow-crypto": "3.14.7"
37
+ "@batalabs/virlow-crypto": "3.15.0",
38
+ "@batalabs/virlow-mcp-core": "3.15.0",
39
+ "@batalabs/virlow-memory": "3.15.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "node build.mjs",