feat: add comment support (list, get, create, update, delete, check_new) #9
Reference in New Issue
Block a user
Delete Branch "feat/comment-support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds 6 new MCP tools for managing Docmost page comments. Replaces PR #3 which had a broken
head: mainreference.list_comments— List all comments on a page (content as Markdown)get_comment— Retrieve a single comment by IDcreate_comment— Create page-level or inline comment (Markdown input, auto-converted to ProseMirror JSON)update_comment— Update comment content (creator only)delete_comment— Delete a comment (creator or space admin)check_new_comments— Poll for new comments across a space since a given timestampNew files
src/lib/markdown-to-json.ts—markdownToTiptapJson()utility (Markdown → TipTap JSON viamarked+generateJSON)Modified files
src/lib/filters.ts— newfilterComment()functionsrc/index.ts— imports, 6 client methods, 6 registered MCP toolsREADME.md— documentation for comment toolsTest plan
list_commentsreturns comments for a page with Markdown contentget_commentreturns a single comment with correct fieldscreate_commentcreates a page-level comment visible in Docmost UIcreate_commentwithtype: "inline"andselectioncreates inline commentcreate_commentwithparentCommentIdcreates a replyupdate_commentupdates comment contentdelete_commentremoves the commentcheck_new_commentsreturns only comments created after the given timestamp🤖 Generated with Claude Code