@getnote/mcp 1.4.2 → 1.4.3

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/index.js CHANGED
@@ -86,9 +86,9 @@ const TOOLS = [
86
86
  type: "object",
87
87
  properties: {
88
88
  since_id: {
89
- type: ["number", "string"],
90
- description: "游标,返回 ID 小于此值的笔记。首次传 0",
91
- default: 0,
89
+ type: "string",
90
+ description: "游标,返回 ID 小于此值的笔记。首次传 \"0\",后续传上一页最后一条笔记的 note_id(字符串格式,禁止转为 number,笔记 ID 为 19 位整数会超过 JS 精度上限)",
91
+ default: "0",
92
92
  },
93
93
  },
94
94
  required: [],
@@ -602,7 +602,7 @@ async function handleTool(name, input, client) {
602
602
  switch (name) {
603
603
  // ── Notes ──
604
604
  case "list_notes": {
605
- const since_id = input.since_id ?? 0;
605
+ const since_id = String(input.since_id ?? "0");
606
606
  return client.listNotes({ since_id });
607
607
  }
608
608
  case "get_note": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getnote/mcp",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "MCP server for Get笔记 (GetNotes) API",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -70,9 +70,9 @@ const TOOLS: Tool[] = [
70
70
  type: "object" as const,
71
71
  properties: {
72
72
  since_id: {
73
- type: ["number", "string"],
74
- description: "游标,返回 ID 小于此值的笔记。首次传 0",
75
- default: 0,
73
+ type: "string",
74
+ description: "游标,返回 ID 小于此值的笔记。首次传 \"0\",后续传上一页最后一条笔记的 note_id(字符串格式,禁止转为 number,笔记 ID 为 19 位整数会超过 JS 精度上限)",
75
+ default: "0",
76
76
  },
77
77
  },
78
78
  required: [],
@@ -622,7 +622,7 @@ async function handleTool(
622
622
  switch (name) {
623
623
  // ── Notes ──
624
624
  case "list_notes": {
625
- const since_id = (input.since_id as number | string | undefined) ?? 0;
625
+ const since_id = String((input.since_id as number | string | undefined) ?? "0");
626
626
  return client.listNotes({ since_id });
627
627
  }
628
628
  case "get_note": {