Call the addcomment MCP tool to anchor a comment onto the paper. Read the exact quoted passage and the note from $ARGUMENTS. Use role: "reviewer" for a suggested change, or role: "defender" when challenging a claim. The comment appears anchored on the PDF for me to Accept or Reject — don't edit the source.
Call the checkcomments MCP tool to fetch the comments I've accepted, as structured edit instructions. List them back to me grouped by file, each with its quoted passage and note — but don't edit anything yet. If I then say "address them", make each edit and call resolvecomment per comment.
Call the listcheckpoints MCP tool and show me the recent checkpoints (sha, time, files/lines changed), newest first. Use $ARGUMENTS as the limit if given, else the default. If I then want to see one, tell me I can run /showdiff .
Call the renderpreview MCP tool to compile the current LaTeX project and open the MagicTeX live preview. If the preview is already running this recompiles and refreshes it. When it finishes, tell me the workspace URL and the page count, and remind me I can select text on the PDF to leave comments.
Call the replytocomment MCP tool to add a threaded reply to an existing comment. Read the comment id and the reply text from $ARGUMENTS. Use this to respond to my feedback, or as the author/defender role in a review thread before I resolve it. If no id is given, ask me which comment to reply to.
Call the resolvecomment MCP tool to mark a comment as resolved once the edit is made. Read the comment id and a one-line note from $ARGUMENTS. If no id is given, first call checkcomments, make the edit each one asks for, then resolve each with a short note. Resolved comments turn green in the workspace so I can review…
Call the showdiff MCP tool to show me a side-by-side visual diff (it returns an image in the chat). If I passed a checkpoint sha in $ARGUMENTS, diff that checkpoint; otherwise show my current uncommitted changes.
MagicTeX — a LaTeX editor for AI agents (Claude Code), via an MCP server: live PDF preview, an editable source panel with a Visual (WYSIWYG) mode, anchored PDF comments that drive edits, and git-backed history. Compiles your .tex with a WASM TeX Live engi. Runs locally from the magictex-mcp npm package.