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.
- package/dist/index.js +5 -0
- 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) {
|