MCP: move documents, create folders, and subscribe to changes #103

Closed
opened 2026-11-27 16:48:37 +00:00 by jfro · 0 comments
Owner

Part of #99 (agent plan review). Follows up the comment on #99 about subscribing to changes.

Problem: no MCP tool can move a document or create a folder (make_pdf/create_notebook only take an existing folder_id). Sync stores parent (remarkable/sync.ex:170) but doesn't treat a move as its own event. Broadcasts are sync-level only (sync_server.ex), and nothing outside can subscribe.

Proposal:

  • move_document(document_id, folder_id) and create_folder(name, parent_id), gated like the other write tools. This lets folders act as stages: To review → Back to Claude → Reviewed.

  • Record document change events in sync (moved to folder X, new ink on pages N, new pages).

  • Expose them as a cursor-based list_changes(since) MCP tool (cheap for any agent that polls). Push delivery is a separate issue (#104).

  • move_document/create_folder stay inside the API key's folder scope (no moving out of or creating outside the folders the key can see).

  • Versions: replace_document(document_id, …), or a way for v2 to supersede v1, so revisions don't pile up next to the old copy.

Done when: an agent can wait for "document moved into Back to Claude" by polling list_changes, then file the reviewed copy into Reviewed and send v2 to To review, all within the key's folders.

Part of #99 (agent plan review). Follows up the comment on #99 about subscribing to changes. **Problem:** no MCP tool can move a document or create a folder (`make_pdf`/`create_notebook` only take an existing `folder_id`). Sync stores `parent` (`remarkable/sync.ex:170`) but doesn't treat a move as its own event. Broadcasts are sync-level only (`sync_server.ex`), and nothing outside can subscribe. **Proposal:** - `move_document(document_id, folder_id)` and `create_folder(name, parent_id)`, gated like the other write tools. This lets folders act as stages: To review → Back to Claude → Reviewed. - Record document change events in sync (moved to folder X, new ink on pages N, new pages). - Expose them as a cursor-based `list_changes(since)` MCP tool (cheap for any agent that polls). Push delivery is a separate issue (#104). - `move_document`/`create_folder` stay inside the API key's folder scope (no moving out of or creating outside the folders the key can see). - Versions: `replace_document(document_id, …)`, or a way for v2 to supersede v1, so revisions don't pile up next to the old copy. **Done when:** an agent can wait for "document moved into Back to Claude" by polling `list_changes`, then file the reviewed copy into Reviewed and send v2 to To review, all within the key's folders.
jfro closed this issue 2026-11-27 19:32:45 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/rm-analyzer#103
No description provided.