What’s New
It’s got more token-efficient when updating notes by an agent!
patch-note tool
A new tool that lets AI agents update a note’s Markdown body by sending a unified diff patch instead of the entire body. This is much more efficient for making small edits to large notes, as it significantly reduces token usage.
- Accepts
_id,_rev, and apatchstring in standard unified diff format - Returns a clear error when the patch fails to apply
- Uses the jsdiff library with exact matching (no fuzzy)
update-note improvements
The update-note tool now only requires _id and _rev. All other fields (bookId, title, body, status, tags) are optional — only the fields you provide will be updated. Previously, all fields were required even when changing a single property.
Changes
- Migrated to
registerTool/registerResource/registerPromptAPIs — replaced all deprecatedserver.tool(),server.resource(), andserver.prompt()calls with the new config-object-based registration methods from@modelcontextprotocol/sdk - Bumped dependencies — updated
@modelcontextprotocol/sdk,zod,@types/node,typescript, andprettierto their latest versions - Added
skipLibCheckto tsconfig — resolves type conflicts with newer SDK type definitions