virlow-mcp 3.14.4 → 3.14.5

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 +8 -6
  2. package/package.json +4 -4
package/dist/cli.js CHANGED
@@ -1326,6 +1326,8 @@ function mapError(err) {
1326
1326
  return err.message;
1327
1327
  return String(err);
1328
1328
  }
1329
+ 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.';
1330
+ 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.";
1329
1331
  function wrap(fn) {
1330
1332
  return async (...args) => {
1331
1333
  try {
@@ -1535,7 +1537,7 @@ page ${pagination.page} of ${pagination.pages} (${pagination.total} total)` + fi
1535
1537
  return textResult(body + notice);
1536
1538
  }));
1537
1539
  server.registerTool("read_note", {
1538
- description: "Read the full title and content of a note by id. Requires the vault to be unlocked.",
1540
+ description: "Read the full title and content of a note by id. Requires the vault to be unlocked. Content comes back as the HTML the editor stores \u2014 write it back in the same form.",
1539
1541
  inputSchema: {
1540
1542
  id: z.string().min(1)
1541
1543
  }
@@ -1546,10 +1548,10 @@ page ${pagination.page} of ${pagination.pages} (${pagination.total} total)` + fi
1546
1548
  ${note.content}`);
1547
1549
  }));
1548
1550
  server.registerTool("create_note", {
1549
- description: "Create a new note with a title and content, optionally placed in a folder. Requires the vault to be unlocked.",
1551
+ description: "Create a new note with a title and content, optionally placed in a folder. Requires the vault to be unlocked.\n\n" + CONTENT_FORMAT,
1550
1552
  inputSchema: {
1551
1553
  title: z.string().min(1).max(200),
1552
- content: z.string().max(5e4).optional(),
1554
+ content: z.string().max(5e4).optional().describe(HTML_FIELD_HINT),
1553
1555
  folderId: z.string().optional(),
1554
1556
  type: z.string().max(50).optional()
1555
1557
  }
@@ -1558,11 +1560,11 @@ ${note.content}`);
1558
1560
  return textResult(`created note ${note.id}`);
1559
1561
  }));
1560
1562
  server.registerTool("update_note", {
1561
- description: "Update the title and/or content of an existing note by id. Only the provided fields are changed. Requires the vault to be unlocked.",
1563
+ description: "Update the title and/or content of an existing note by id. Only the provided fields are changed. Content replaces the note body entirely \u2014 read the note first if you mean to add to it. Requires the vault to be unlocked.\n\n" + CONTENT_FORMAT,
1562
1564
  inputSchema: {
1563
1565
  id: z.string().min(1),
1564
1566
  title: z.string().min(1).max(200).optional(),
1565
- content: z.string().max(5e4).optional()
1567
+ content: z.string().max(5e4).optional().describe(HTML_FIELD_HINT)
1566
1568
  }
1567
1569
  }, wrap(async (args) => {
1568
1570
  await notesService.updateNote(args.id, { title: args.title, content: args.content });
@@ -1921,7 +1923,7 @@ function startUnlockServer(api, vault, opts = {}) {
1921
1923
  }
1922
1924
 
1923
1925
  // src/version.ts
1924
- var VERSION = true ? "3.14.4" : "dev";
1926
+ var VERSION = true ? "3.14.5" : "dev";
1925
1927
 
1926
1928
  // src/server.ts
1927
1929
  function defaultEmbeddingCacheDir() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virlow-mcp",
3
- "version": "3.14.4",
3
+ "version": "3.14.5",
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-crypto": "3.14.4",
38
- "@batalabs/virlow-memory": "3.14.4",
39
- "@batalabs/virlow-mcp-core": "3.14.4"
37
+ "@batalabs/virlow-crypto": "3.14.5",
38
+ "@batalabs/virlow-memory": "3.14.5",
39
+ "@batalabs/virlow-mcp-core": "3.14.5"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "node build.mjs",