@squirrelnotes.app/mcp 2.7.1-test.395 → 2.8.0-test.396

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
@@ -90,9 +90,9 @@ For a note over about 8,000 characters (about 2,000 tokens), an agent should not
90
90
 
91
91
  | Tool | Description |
92
92
  |------|-------------|
93
- | `share_note` | Publishes a note as a public link protected by a share passphrase, with optional `expiry` and `allowDownload` (default off). The note is decrypted here and re-encrypted under a key derived from the share passphrase, so the server never sees plaintext. Returns the share URL and token. The share passphrase is a tool argument, so it passes through your agent and its model provider; send it to recipients separately from the link. |
93
+ | `share_note` | Publishes a note as a public link protected by a share passphrase of at least 8 characters, with optional `expiry` and `allowDownload` (default off). The note is decrypted here and re-encrypted under a key derived from the share passphrase, so the server never sees plaintext. Returns the share URL and token. The share passphrase is a tool argument, so it passes through your agent and its model provider; send it to recipients separately from the link. |
94
94
  | `get_share_status` | Returns a note's share URL, view count, expiry and settings, or `null` if it is not shared. |
95
- | `republish_share` | Re-encrypts an existing share with the note's latest content. Needs the share passphrase (the same one or a new one). |
95
+ | `republish_share` | Re-encrypts an existing share with the note's latest content. Needs the share passphrase (the same one or a new one, at least 8 characters). |
96
96
  | `update_share_settings` | Changes a share's `expiry` and/or `allowDownload` without changing its content. |
97
97
  | `revoke_share` | Revokes a share link permanently; it stops working at once. The note is not affected. |
98
98
 
@@ -41723,12 +41723,14 @@ var init_note_text = __esm({
41723
41723
  function utf8Bytes(text) {
41724
41724
  return Buffer.byteLength(text, "utf8");
41725
41725
  }
41726
- var NOTE_BODY_MAX_BYTES, NOTE_TITLE_MAX_BYTES;
41726
+ var NOTE_BODY_MAX_BYTES, NOTE_TITLE_MAX_BYTES, SHARE_PASSPHRASE_MIN_LENGTH, SHARE_PBKDF2_ITERATIONS;
41727
41727
  var init_note_limits = __esm({
41728
41728
  "src/note-limits.ts"() {
41729
41729
  "use strict";
41730
41730
  NOTE_BODY_MAX_BYTES = 75e4;
41731
41731
  NOTE_TITLE_MAX_BYTES = 12e3;
41732
+ SHARE_PASSPHRASE_MIN_LENGTH = 8;
41733
+ SHARE_PBKDF2_ITERATIONS = 6e5;
41732
41734
  }
41733
41735
  });
41734
41736
 
@@ -43246,7 +43248,7 @@ function createMcpServer(creds, opts = {}) {
43246
43248
  "Publish a note as a public, passphrase-protected link. The note content is decrypted in this process and then re-encrypted with a share-specific key derived from the share passphrase \u2014 the server never sees plaintext. The share URL and token are returned. Pro tier required.",
43247
43249
  {
43248
43250
  noteId: external_exports.string().describe("ID of the note to share"),
43249
- sharePassphrase: external_exports.string().min(1).describe("Passphrase recipients must enter to read the note. Choose something memorable but not easily guessed."),
43251
+ sharePassphrase: external_exports.string().min(SHARE_PASSPHRASE_MIN_LENGTH).describe("Passphrase recipients must enter to read the note. Choose something memorable but not easily guessed."),
43250
43252
  expiry: expirySchema,
43251
43253
  allowDownload: external_exports.boolean().optional().describe('When true, viewers see a "Download as Markdown" button (default: false)')
43252
43254
  },
@@ -43258,7 +43260,7 @@ function createMcpServer(creds, opts = {}) {
43258
43260
  const tooLarge = bodyTooLong(content, "too-large-to-share");
43259
43261
  if (tooLarge) return refusalResult(tooLarge);
43260
43262
  const shareSalt = generateSalt();
43261
- const shareKey = await deriveKey(sharePassphrase, shareSalt);
43263
+ const shareKey = await deriveKey(sharePassphrase, shareSalt, SHARE_PBKDF2_ITERATIONS);
43262
43264
  const encTitle = encrypt(title, shareKey);
43263
43265
  const encContent = encrypt(content, shareKey);
43264
43266
  const status = await client.publishShare({
@@ -43267,7 +43269,7 @@ function createMcpServer(creds, opts = {}) {
43267
43269
  titleIv: encTitle.iv,
43268
43270
  ...inlineContentFields(encContent),
43269
43271
  salt: shareSalt,
43270
- pbkdf2Iterations: 6e5,
43272
+ pbkdf2Iterations: SHARE_PBKDF2_ITERATIONS,
43271
43273
  expiry,
43272
43274
  allowDownload: allowDownload ?? false
43273
43275
  });
@@ -43312,7 +43314,7 @@ function createMcpServer(creds, opts = {}) {
43312
43314
  {
43313
43315
  shareToken: external_exports.string().describe("Share token from get_share_status"),
43314
43316
  noteId: external_exports.string().describe("Note ID (needed to fetch the latest content)"),
43315
- sharePassphrase: external_exports.string().min(1).describe("Passphrase for the share (can be same as before or a new one)")
43317
+ sharePassphrase: external_exports.string().min(SHARE_PASSPHRASE_MIN_LENGTH).describe("Passphrase for the share (can be same as before or a new one)")
43316
43318
  },
43317
43319
  async ({ shareToken, noteId, sharePassphrase }) => {
43318
43320
  const { client, key } = await context.get();
@@ -43322,7 +43324,7 @@ function createMcpServer(creds, opts = {}) {
43322
43324
  const tooLarge = bodyTooLong(content, "too-large-to-share");
43323
43325
  if (tooLarge) return refusalResult(tooLarge);
43324
43326
  const shareSalt = generateSalt();
43325
- const shareKey = await deriveKey(sharePassphrase, shareSalt);
43327
+ const shareKey = await deriveKey(sharePassphrase, shareSalt, SHARE_PBKDF2_ITERATIONS);
43326
43328
  const encTitle = encrypt(title, shareKey);
43327
43329
  const encContent = encrypt(content, shareKey);
43328
43330
  const status = await client.republishShare(shareToken, {
@@ -43330,7 +43332,7 @@ function createMcpServer(creds, opts = {}) {
43330
43332
  titleIv: encTitle.iv,
43331
43333
  ...inlineContentFields(encContent),
43332
43334
  salt: shareSalt,
43333
- pbkdf2Iterations: 6e5
43335
+ pbkdf2Iterations: SHARE_PBKDF2_ITERATIONS
43334
43336
  });
43335
43337
  return {
43336
43338
  content: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squirrelnotes.app/mcp",
3
- "version": "2.7.1-test.395",
3
+ "version": "2.8.0-test.396",
4
4
  "description": "MCP stdio CLI for Squirrel Notes — bridges AI agents to the encrypted note-taking API",
5
5
  "type": "module",
6
6
  "repository": {