note-mcp-server 2.2.8 → 2.2.9

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/index.js +8 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -179,6 +179,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
179
179
  properties: {
180
180
  content: { type: "string", description: "HTML 或純文字內容" },
181
181
  title: { type: "string", description: "標題(可選)" },
182
+ tags: { type: "string", description: "標籤,多個標籤以逗號分隔(可選)" },
182
183
  },
183
184
  required: ["content"],
184
185
  },
@@ -194,6 +195,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
194
195
  c_id: { type: "number", description: "筆記 ID" },
195
196
  content: { type: "string", description: "新內容(可選,若未傳則使用現有內容作為基底)" },
196
197
  title: { type: "string", description: "新標題(可選)" },
198
+ tags: { type: "string", description: "新標籤,多個標籤以逗號分隔(可選)" },
197
199
  append: { type: "string", description: "追加在結尾的內容(可選)" },
198
200
  prepend: { type: "string", description: "追加在開頭的內容(可選)" },
199
201
  },
@@ -322,6 +324,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
322
324
  if (args.title !== undefined && args.title !== "") {
323
325
  payload.title = args.title;
324
326
  }
327
+ if (args.tags !== undefined && args.tags !== "") {
328
+ payload.tags = args.tags;
329
+ }
325
330
  const response = await axios.post(BASE_URL, payload, {
326
331
  headers: { "Content-Type": "application/json" },
327
332
  });
@@ -342,6 +347,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
342
347
  if (args.title !== undefined) {
343
348
  payload.title = args.title;
344
349
  }
350
+ if (args.tags !== undefined) {
351
+ payload.tags = args.tags;
352
+ }
345
353
  if (args.append !== undefined) {
346
354
  payload.append = args.append;
347
355
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "note-mcp-server",
3
- "version": "2.2.8",
3
+ "version": "2.2.9",
4
4
  "description": "MCP (stdio) server for Notes API v2 — list/read/write notes, upload images, Web Push from Cursor and compatible clients.",
5
5
  "main": "index.js",
6
6
  "bin": {