
stetdoc
io.github.clauseo-aiPublished by GitHub account clauseo-aiv0.9.2Updated Nov 3, 2026
Read, redline and compare Word .docx files with real tracked changes
Overview
stetdoc's local MCP server; no sign-in required; STDIO.
No AI overview yet: these facts come from the registry entry and the server itself.
Installation
In SourceWeft
- Open stetdoc in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
stetdoc is how AI agents work in Word. Every change your agent makes lands in Word as a tracked change with its name on it, and everything it didn't touch comes back exactly as it was.
stetdoc init installs the skill for the agents you pick, or for every agent it finds when there's no terminal. Every
other way to install is in the channels below.
Read the docs · Quickstart · Changelog · Free and open source, MIT or Apache-2.0
stetdoc 0.9.1 on a Harvey LAB supply agreement, with the long lines cut short. {--…--} is the deletion and
{++…++} the insertion, each a Word revision by Claude.
Word found unreadable content.
Every agent that edits a .docx's XML gets this message from Word sooner or later. Word splits a sentence across many runs and stores tracked changes as XML structure. It refuses a file whose elements fall out of schema order. One slip in the XML and the document won't open.
stetdoc checks every edit against the schema and Word's own rules before it writes a byte. A batch of edits applies in full or not at all. Bad input, a hostile file included, fails with a stable error code. stetdoc never panics, hangs or touches the network.
Fastest on every model.
We gave agents eight contract tasks and three long markups, five ways: with stetdoc, with no plugin, with Anthropic's docx skill, with Anthropic's legal plugin and with Adeu. Then we opened every file they wrote in Word. The agents using stetdoc were fastest on all three models.
- 0 of 118 stetdoc runs left Word anything to repair.
- 6 of 6 long Harvey LAB markups passed their checks and opened clean in Word, on every model.
- 5 ms for each stetdoc call to start.
docx-agent-bench: 639 runs in Claude Code 2.1.311 and Antigravity CLI 1.4.8, every file opened in Microsoft Word for Mac 16.114.3. How it was graded.
Open, save, same bytes.
Run a document through stetdoc without editing it and you get the identical file back, byte for byte. Edit one clause and only that clause's elements change. Styles, numbering, comments, other people's tracked changes and macros stay where their authors left them.
Every build checks this on 306 documents, and every night random edits run on 48,595 public documents.
FIDELITY.md says, feature by feature, what stetdoc keeps exactly, what it normalizes, what it shows
read-only and what it leaves out.
It knows where 11.1 is.
Lawyers cite clauses by number. Word works those numbers out when it draws the page, so they appear nowhere in the file. stetdoc computes them, and a search hands your agent the clause, a stable paragraph ref and the exact text.
Three of the 16 hits, with the long lines cut short. This block leaves out the other 13 and the clause headings stetdoc prints above them.
Twelve matches is not one.
replace matches text the way it reads, across bold, italics and run breaks. When the text appears more than once,
stetdoc writes nothing and lists every match with its clause. Missing text gets the same refusal. stetdoc also refuses
an edit aimed at a paragraph that changed after the agent read it, so a change never lands in the wrong place.
Two of the 12 places, with the long last line cut short. stetdoc lists all 12.
Hands off the XML.
stetdoc gives your agent the document as text, with a ref on every paragraph and a number on every clause. The zip and its XML stay with stetdoc. In Claude Code, the plugin adds a hook that stops Claude from unzipping a .docx, scripting it with python-docx or rewriting its XML. The only way into the file is the one stetdoc checks.
In Claude Code 2.1.275 or later, one line installs the plugin. It carries the skill and the hook. The binary must still be on the PATH, because Claude Code runs the command rather than MCP.
One install for every agent you run.
stetdoc init installs the skill for the agents you pick, or for the ones it detects. It knows Claude Code, Codex,
Cursor, OpenCode, OpenClaw, Hermes Agent, Grok Build, cmx2, Antigravity CLI, GitHub Copilot CLI, Amp and Factory. It
still installs for Gemini CLI, which Google retired in favour of Antigravity CLI.
Agents that take tools instead of a shell get the same commands over the Model Context Protocol from stetdoc mcp.
stetdoc init --mcp prints how to register it with each agent. Install the skill with the server. Without the skill, an
agent whose server fails to start falls back to unzipping the .docx and editing its XML. Use stetdoc with your agent has the setup
for each one. To serve stetdoc mcp to cloud apps, with auth and TLS, see
Self-hosting the MCP server.
Install stetdoc
Pick any channel. Every one installs the same binary.
The uv and pipx wheel holds the native binary, so no Python runs after the install. The install script checks the SHA-256
and installs to ~/.local/bin. npm swaps its Node launcher for the binary when install scripts run.
An agent can run stetdoc dozens of times in one task. Homebrew, uv, pipx and the install script put the binary itself
on your PATH, so each call starts in about 5 ms. Through npx, every call starts Node and npm first, which costs a tenth
of a second or more. Keep npx stetdoc mcp for the MCP server, which starts once per session. uvx stetdoc runs
stetdoc once without installing it. Install covers Windows, updating, uninstalling and pinning a
version.
The commands
An edit writes NAME.edited.docx beside the input, then NAME.edited-2.docx, and never overwrites. -o FILE names
the output and --in-place writes back. Receipts and views name the tracked changes other people made, so the agent
can report them.
For longer work, unpack a working copy and edit its readable files with any tool, string replacement and apply_patch
included:
Inserting paragraphs, formatting, and accepting or rejecting revisions go to stetdoc edit as a batch of
operations. How stetdoc works explains working copies, refs, base
tokens and receipts. The CLI reference lists every command and flag, such as --clause,
--range, --all and --manual, with examples that run as tests.
Build on stetdoc
The engine is a Rust library, stetdoc-core, built around one handle:
Node and Bun use it through the npm package @clauseo/stetdoc, with TypeScript types generated from the engine's
definitions. Its textEditor is a backend for Claude's text editor tool, as the crate stetdoc-editor is in Rust.
Errors carry a stable code, a message and a next hint, and the npm package throws them as StetdocError.
Build on stetdoc compares the crate, the npm package, the CLI and MCP for products. The npm
package has its own guide, crates/stetdoc-napi/npm/README.md, and the
error reference lists every code.
Repository
ARCHITECTURE.md: the map for anyone new to the codeGLOSSARY.md: what each domain term meansdocs/decisions/anddocs/design/: the decision records and the design notes behind each moduleAGENTS.mdandCONTRIBUTING.md: the commands, the rules the checks enforce, and how to make a change and get it reviewedSECURITY.md: how to report a vulnerability, and how we test hostile inputCODE_OF_CONDUCT.md: how we expect people to treat each other here
Build and verify with cargo xtask check. Besides formatting, lints and unit tests, it runs the laws on the curated
corpus of 306 documents. Every unedited round trip must come back byte-identical. On each document, 50 seeded random
edit batches must keep the laws: they change only what they edit, the edits stick, accepting or
rejecting them restores the expected text, and the file stays valid. Every night they run on 48,595 public documents in
CI, and CI fuzzes all four targets on every pull request.
Licence
You can use stetdoc under either the Apache License, Version 2.0 or the MIT licence, at
your option. See NOTICE.
Stet is the proofreader's mark for "let it stand". It goes under a word that was struck out by mistake, and the word stays. stetdoc is open source, from Clauseo.
Source: README.md at commit 71c7e3b
Tools
0Version history
1- v0.9.2LatestNov 3, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
