dx-writing
Provides tools for reviewing LaTeX manuscripts, including reading line-numbered content, anchoring comment threads, applying multi-version rewrite candidates, managing thread state, and generating redline diffs against a baseline.
Provides tools for reviewing Markdown manuscripts, including reading line-numbered content, anchoring comment threads, applying multi-version rewrite candidates, managing thread state, and generating redline diffs against a baseline.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
DX Writing
Academic Minimalist (Paper & Obsidian) collaborative review UI and bidirectional MCP server for LaTeX & Markdown manuscripts.
Live Interactive Demo & Docs: https://soul667.github.io/dx-writing/
DX Writing brings Notion-style stackable margin CommentThreads to local .tex and .md academic writing—powered by zero-dependency Python (>=3.10) and a dual Stdio + Streamable HTTP MCP server:
Zero-Invasion Sidecar (
.dx-writing/): Comments, multi-version AI rewrite candidates (v1a/v1b/v1c), and baseline snapshots live outside your source files—never polluting.texor breakinglatexmk/git diff.Offset-Preserving
CleanLaTeX View: Strips\textbf{},\cite{}, inline$...$math, booktabstabularenvironments, and custom zero-arg\newcommandmacros into calm serif prose while mapping mouse selections back to exact.texcharacter offsets.Hover Preview, One-Click
Apply&Revert: Hover any candidate version in the margin to preview it seamlessly inside the paragraph; clickApplyto write it to disk while keeping the anchor alive for further iteration, orRevertanytime.Multi-Select Copy (
Copy Selected to AI& Multi-Passage Pick):Check multiple margin threads (
Shift+Clickrange select supported) to bundle their quotes, history, and drafts into one structured AI/MCP prompt (Copy Selected (N)orCtrl+C).Hold
Ctrl/Cmdwhile dragging (or click+ Multi-select) inCleanmode to select and copy multiple non-adjacent manuscript passages at once.
Optional
Redline& DirectLaTeX / SourceSync: Switch to inline character-levelRedlinediff against baseline only when needed; edits inSourceautomatically re-anchor existing threads via prefix/suffix context matching.
1. Quick Start
git clone https://github.com/soul667/dx-writing.git
cd dx-writing
pip install -e .
# Launch Web UI + Streamable HTTP MCP inside any paper/notes workspace
dx-writing serve --workspace /path/to/your/paper --port 5926Or run directly without installing (zero third-party dependencies):
PYTHONPATH="src" python3 -m dx_writing serve --workspace /path/to/your/paper --port 5926Web Workspace:
http://127.0.0.1:5926Streamable HTTP MCP Endpoint:
http://127.0.0.1:5926/mcpCLI Status & Config Generator:
dx-writing status --workspace /path/to/your/paper dx-writing mcp-config --workspace /path/to/your/paper
Related MCP server: litewrite-mcp-server
2. Connect Your AI Agent (MCP)
Option A: Streamable HTTP MCP (when dx-writing serve is running)
# Claude Code
claude mcp add --transport http dx-writing http://127.0.0.1:5926/mcpOr in mcp_config.json (Antigravity / Cursor / Windsurf):
{
"mcpServers": {
"dx-writing": {
"serverUrl": "http://127.0.0.1:5926/mcp"
}
}
}Option B: Stdio MCP (works even without the Web server running)
# Codex CLI
codex mcp add dx-writing -- dx-writing mcp --workspace /path/to/your/paper{
"mcpServers": {
"dx-writing": {
"command": "dx-writing",
"args": ["mcp", "--workspace", "/path/to/your/paper"]
}
}
}An optional agent skill guiding non-invasive multi-version academic review is included at skills/dx-writing/SKILL.md.
3. MCP Tools Reference
Tool | Purpose |
| List |
| Read line-numbered manuscript content together with anchored |
| Query threads ( |
| Anchor a new |
| Stack revised AI candidates ( |
| Write a chosen candidate ( |
|
|
| Return unified diff against the initial baseline snapshot |
4. Development & Tests
python3 -m unittest discover -s tests -vLicense
MIT © soul667
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Versioned artifact review for people and AI agents, with contextual comments and human control.
Comment.io lets people and trusted agents work on the same files. Review edits and comments in the browser, manage structured data with DocDB, and build apps over your workspace. Connect your preferred agent through a single run tool using OAuth and Streamable HTTP.
Shared, versioned context that humans and AI agents can publish, review, annotate, and continue.
MarkupBase turns AI-generated Markdown and HTML into durable, versioned artifacts that people can review and discuss. Its MCP server lets agents publish new versions, preserve contextual comments, include hosted images, and respond to feedback through secure account-linked identities, creating a clear human review boundary without requiring real-time editing.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables agents to compile LaTeX documents, manage anchored comments as actionable review tasks, inspect section-level history, and view diff images in a live workspace.AGPL 3.0
- AlicenseAqualityCmaintenanceEnables local AI agents to discover projects and read, upload, update, and delete files in a self-hosted collaborative LaTeX/Markdown writing platform, plus maintain a local mirror with git-style pull, push, and status synchronization.14MIT
- AlicenseNot gradedqualityCmaintenanceEnables humans and AI coding agents such as Claude Code, Codex, Cursor, and Gemini CLI to pass in-progress work between each other through shared, versioned, authenticated context that preserves decisions, artifacts, evidence, review history, and authorship. It exposes identity, search, retrieval, review, continuation, publishing, and portability tools over a Streamable HTTP endpoint.4MIT
- AlicenseAqualityBmaintenanceEnables LLM agents to propose non-destructive CriticMarkup edits, manage threaded review comments, and inspect Markdown efficiently so authors can accept or reject changes in compatible editors.6MIT