mnote-mcp 1.0.1 → 1.0.2

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/index.js +5 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -171,6 +171,11 @@ server.tool("nowen_update_note", "更新 Nowen Note 中已有笔记的标题或
171
171
  }, async ({ noteId, title, content }) => {
172
172
  try {
173
173
  const body = {};
174
+ const isContentChange = title !== undefined || content !== undefined;
175
+ if (isContentChange) {
176
+ const current = await api.getNote(noteId);
177
+ body.version = current.version;
178
+ }
174
179
  if (title)
175
180
  body.title = title;
176
181
  if (content) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mnote-mcp",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "mnote MCP Server — 让 AI 工具直接操作笔记系统",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",