DX Writing v0.1.0 · MCP + Web
ACADEMIC MINIMALISM · STACKABLE REVIEW · MCP SERVER

面向 LaTeX 与 Markdown 学术写作的非侵入式叠评工作台。 Non-invasive stackable margin review for LaTeX & Markdown manuscripts.

在纯净的衬线体阅读视图中审阅论文,将所有批注、人类追评与 AI 多版本候选(v1a / v1b / v1c)存放在侧车目录 .dx-writing/——讨论阶段对 .tex 原稿零侵入。支持悬停无痕预览、多选线程批量 Copy to AI、多处选句复制与按需 Redline 对照。 Read raw LaTeX as calm editorial prose while storing comments, human feedback, and multi-version AI rewrites (v1a / v1b / v1c) in a sidecar .dx-writing/ directory—zero mutation to .tex files until you click Apply. Built with live hover preview, multi-select Copy to AI, and dual Stdio + HTTP MCP.

ZERO-DEPENDENCY PYTHON >= 3.10
pip install git+https://github.com/soul667/dx-writing.git
dx-writing serve --workspace . --port 5926
LIVE IN-BROWSER SANDBOX · 在线交互沙盒 · 悬停右侧 v1a/v1b 实时预览 · 勾选多条线程体验多选 Copy to AI · 在左侧划词或按住 Ctrl 多选句子 · Hover v1a/v1b for live preview · Check multiple threads to batch Copy to AI · Select or Ctrl+Drag prose on the left
DX Writing · sandbox live
SECTIONS/METHOD.TEX

Loading…

提示:选中任意词句可叠评或点 + Multi-select(或按住 Ctrl/Cmd 拖拽)跨段多选复制。 Tip: Highlight any phrase to stack a comment, or click + Multi-select (or hold Ctrl/Cmd while dragging) to copy multiple passages.
01 · ARCHITECTURE & DESIGN PHILOSOPHY

极简即高雅:专为学术推敲设计的三层闭环 Built for rigorous prose iteration without LaTeX clutter

SIDECAR STORAGE

非侵入式侧车存储 Zero-Invasion Sidecar

所有评论栈、多版本候选与初始基线均独立保存在 <workspace>/.dx-writing/。在反复推敲措辞期间,.tex 原稿一字未改,绝不弄脏 git diff 或干扰 latexmk 编译。 Threads, candidate stacks, and baseline snapshots live in <workspace>/.dx-writing/. Your .tex files stay 100% untouched during review—keeping git diff and latexmk pristine.

OFFSET-PRESERVING PROJECTION

保偏移纯文本 LaTeX 投影 Clean Plain-Text LaTeX Engine

自动消隐 \cite{}、\textbf{}、行内公式与自定义 \newcommand 宏,并将 tabular 渲染为标准学术三线表;同时每个字符精确映射回源文件偏移,划词即锚定原句。 Projects \cite{}, \textbf{}, inline math, zero-arg \newcommand macros, and booktabs tabular blocks into clean serif prose while mapping mouse selections back to exact source offsets.

MULTI-SELECT & MCP LOOP

多选批量复制与双向 MCP Multi-Select Copy & MCP Loop

既可勾选多条批注线程一键 Copy Selected to AI,也可让 Claude Code、Codex 或 Antigravity 通过 dx-writing MCP 直接拉取反馈并在原锚点上叠楼回复 v2a / v2b。 Batch-check multiple threads for one-click Copy Selected to AI, or connect Claude Code, Codex, and Antigravity directly via Stdio / Streamable HTTP MCP to stack v2a / v2b rewrites in place.

02 · MODEL CONTEXT PROTOCOL

双向 MCP 工具集(Stdio & Streamable HTTP) Bidirectional MCP Tools Reference

Tool Name Key Parameters 功能说明Description
dx_list_documents — 列出工作区内所有 .tex / .md / .txt 文稿、开放线程数与待 AI 回复计数 List workspace manuscripts with open thread counts and pending_human_feedback counts
dx_read_document doc_path, start_line?, end_line? 读取带行号的源文稿及锚定在其上的开放 CommentThread Read line-numbered source text alongside all anchored CommentThreads
dx_list_threads doc_path?, only_pending_feedback? 精准拉取作者刚追评、等待 AI 续写多版本的线程(only_pending_feedback=true) Query open/resolved threads or filter strictly to human feedback awaiting AI reply
dx_add_comment doc_path, anchor_quote, body, candidates[] 在精确子串上新建叠评线程并挂载 v1a / v1b / v1c 多版本候选,不改动原稿 Anchor a new stackable thread onto anchor_quote with v1a / v1b / v1c candidates
dx_reply_comment thread_id, body, candidates[] 针对人类反馈在同一 thread_id 下继续叠楼回复 AI · v2 候选 Stack revised AI · v2 candidates onto an existing thread_id
dx_apply_candidate thread_id, candidate_ref 将选定版本(如 v2a)写入源文件(自动转义 LaTeX %),保留锚点可继续叠评 Commit a chosen candidate into the file while keeping the thread anchored & revertible
dx_manage_thread thread_id, action 执行 resolve(结项)、reopen、revert(回退至初始原句)或 delete Execute resolve, reopen, revert (restore baseline quote), or delete
dx_get_redline_diff doc_path 输出当前文稿相对初始基线快照的 Unified Redline 差异 Inspect unified Redline diff comparing working manuscript against baseline snapshot
03 · QUICKSTART & MCP INTEGRATION

30 秒接入本地写作工作区与 AI 客户端 Connect your workspace and AI coding agent in 30 seconds

1. INSTALL & SERVE (:5926)
git clone https://github.com/soul667/dx-writing.git
pip install -e dx-writing

# Starts Web UI + http://127.0.0.1:5926/mcp
dx-writing serve --workspace /path/to/paper --port 5926
2. CLAUDE CODE & CODEX CLI
# Claude Code (Streamable HTTP)
claude mcp add --transport http dx-writing \
  http://127.0.0.1:5926/mcp

# Codex CLI (Stdio)
codex mcp add dx-writing -- \
  dx-writing mcp --workspace /path/to/paper
3. HTTP MCP_CONFIG.JSON (ANTIGRAVITY / CURSOR)
{
  "mcpServers": {
    "dx-writing": {
      "serverUrl": "http://127.0.0.1:5926/mcp"
    }
  }
}
4. STDIO MCP_CONFIG.JSON (STANDALONE)
{
  "mcpServers": {
    "dx-writing": {
      "command": "dx-writing",
      "args": ["mcp", "--workspace", "/path/to/paper"]
    }
  }
}