
stetdoc
io.github.clauseo-ai由 GitHub 帳號 clauseo-ai 發布v0.9.2更新於 Nov 3, 2026
讀取、紅線標註並比較Word .docx檔案,支援真實的修訂記錄
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
Read, redline and compare Word .docx files with real tracked changes
概覽
stetdoc 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 stetdoc,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
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.
來源:README.md,提交 71c7e3b
工具
0版本歷史
1- v0.9.2最新Nov 3, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
