Adeu

ai.adeu由 adeu.ai 發布v1.7.1更新於 Oct 24, 2026

Automated DOCX Redlining Engine

概覽

AI 產生的概覽

讓助理以原生修訂模式讀取、審閱和編輯 Microsoft Word DOCX 檔案,同時保留原有格式。

可以做什麼
Adeu 會把 DOCX 檔案轉成節省 token 的 Markdown/CriticMarkup 表示,方便助理讀取文件文字,再把編輯結果轉回 Word 原生修訂。工具包括 read_docx(讀取乾淨檢視或標記檢視,支援搜尋與分頁)、process_document_batch(依 ID 套用、接受、拒絕或回覆修訂與註解),以及 finalize_document(清除中繼資料並鎖定文件)。另外也提供 CLI、Python 與 TypeScript SDK,以及 LangChain 和 n8n 整合。
適用情境
適合助理需要以非破壞性方式對合約及其他 Word 文件進行修訂、審閱或編輯,並保留現有版面、字型與註解的情境。適用於法律科技流程、文件審閱作業,以及需要產出可直接散布檔案的代理。
執行需求
透過 stdio 在本機執行;清單未宣告任何身分驗證、環境變數或標頭。可透過 npm 套件 @adeu/mcp-server(npx)或 Python 後端(uvx --from adeu adeu-server)安裝。即時 Microsoft Word 整合需要 Windows 並安裝 Word,且使用 Python 後端。未宣告需要帳號或 API 金鑰。
安裝前請注意
此伺服器會寫入並修改 DOCX 檔案,包括套用、接受或拒絕修訂與註解,finalize_document 還可清除中繼資料並把文件鎖定為唯讀。README 表示本機引擎在使用者電腦上執行、不會把文件送到其自有伺服器,但你選用的 LLM 供應商會處理助理讀取到的文字。選用的雲端服務會增加郵件擷取與草擬功能。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Adeu,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Adeu: Track Changes for the LLM era

[GitHub Repo stars] [PyPI version] [npm version] [Downloads] [MCP Compatible] [Smithery] [CI] [License: MIT]

LLMs speak Markdown; reviewers speak "Track Changes."

Adeu is a docx ↔ LLM translator: a Model Context Protocol (MCP) server (Python and Node.js implementations) and accompanying SDKs that act as a Virtual DOM for Microsoft Word. It provides a two-way abstraction layer that lets AI agents freely edit document text without destroying the underlying formatting or complex DOCX XML.

While standard libraries like python-docx excel at generating documents from scratch, they fail at non-destructive redlining. Adeu solves this by translating .docx files into a token-efficient Markdown representation. This frees AI agents to focus entirely on document semantics instead of wasting tokens wrestling with OpenXML.

Adeu acts as an intelligent proxy, processing AI edits as safe, atomic transactions:

  1. Read: Translates the document (from disk or live Word) into LLM-friendly CriticMarkup with a Semantic Appendix of defined terms, cross-references, and likely typos. The agent starts with semantic structure, not raw data.
  2. Validate: Acts as a strict safety gate. It protects the document's integrity by automatically blocking ambiguous text matches or invalid structural changes before they touch the file.
  3. Apply: Translates the AI's text edits into native Word Track Changes. Adeu handles the complex XML under the hood, ensuring existing layouts, fonts, and margin comments are perfectly preserved.

Built and maintained by the team at Adeu.


Installation

Adeu can be installed directly into AI assistants as an MCP server, used as a Claude Code plugin or Agent Skill, CLI tool, or used locally as a developer toolchain.

Claude Code (Plugin)

Adeu ships as a Claude Code plugin with a built-in agent skill that teaches Claude how to use the engine effectively. Inside Claude Code:

/plugin marketplace add dealfluence/adeu/plugin install adeu-redlining@adeu-skills

For best results, also connect either the Node MCP server (npx -y @adeu/mcp-server) or the Python MCP server (uvx --from adeu adeu-server). The plugin works without an MCP server too — it falls back to driving the uvx adeu CLI via Bash.

Other Skills-Compatible Agents (Cursor, Windsurf, VS Code Copilot, etc.)

Adeu's redlining skill follows the open Agent Skills specification and works with any compatible agent:

bash
npx skills add dealfluence/adeu

The skill installs to your agent's skills directory and activates automatically when you ask Claude to redline, edit, or review a .docx file.

Claude Desktop

You can install Adeu directly into Claude Desktop using the official extension package:

  1. Download the latest Adeu.mcpb file from the GitHub Releases page.
  2. Open Claude Desktop and navigate to Settings > Extensions.
  3. Click Advanced settings and find the Extension Developer section.
  4. Click Install Extension..., select the downloaded .mcpb file, and follow the prompts.

Gemini CLI

Adeu is available as a native Gemini CLI extension. To install:

bash
gemini extensions install https://github.com/dealfluence/adeu

Other MCP Clients (Cursor, Windsurf, etc.)

For IDEs or clients that configure MCP servers via JSON, you can use either the Node.js or Python backend:

Node.js

json
{  "mcpServers": {    "adeu": {      "command": "npx",      "args": ["-y", "@adeu/mcp-server"]    }  }}

Python (Required for Live MS Word integration on Windows)

json
{  "mcpServers": {    "adeu": {      "command": "uvx",      "args": ["--from", "adeu", "adeu-server"]    }  }}

Smithery

To install Adeu using the Smithery package manager:

bash
npx -y @smithery/cli install adeu --client claude

Agent Workflows

Adeu provides agents with specific tools to read, review, and edit documents safely.

MCP Apps UI: The read_docx tool supports the MCP Apps UI protocol. When an agent reads a document, Adeu dynamically renders a custom, interactive Markdown view directly inside the chat window.

Recommended Agent Prompt: You can guarantee the best behavioral results by adding this context to your agent's system prompt or project instructions:

Role: Document Specialist Tools:

  • read_docx(clean_view=True): Read the final "clean" version of the text to understand context. Use search_query and page filters to locate specific clauses without reading the whole document.
  • process_document_batch: Commit & Negotiate Mode. Apply a unified list of changes. Use type: "modify" for specific search-and-replace text edits (supports match_mode="all" and regex=True for bulk updates), and type: "accept", "reject", or "reply" to manage existing Track Changes and Comments by ID.
  • finalize_document: Pre-Send Scrub. Strip dangerous metadata, author names, and internal tracking IDs, lock the document (protection_mode="read_only"), and prepare it for distribution.

Live MS Word Integration

If you are running on Windows with Microsoft Word installed, Adeu can act as a real-time copilot, editing the active document right in front of you. This requires running the Python MCP server backend (see Developer Tools below).


Developer Tools (Python & TypeScript)

If you are building a legal-tech application, an automated pipeline, or want to use the local CLI, use our SDKs.

The Python CLI

The Python toolchain is managed via uv.

bash
pip install uvuv tool install adeu
# Extract clean text for RAG or promptingadeu extract contract.docx -o contract.md
# Generate a visual diff between two versionsadeu diff v1.docx v2.docx
# Apply edits to the DOCXadeu apply contract.docx edits.json --author "Review Bot"
# Apply valid edits in salvage mode while reporting failing editsadeu apply contract.docx edits.json --partial
# High-throughput JSON-Lines daemonadeu serve
# Scrub author metadata and internal trackersadeu sanitize redline.docx -o clean.docx --keep-markup --author "My Firm" --report

What the text projection preserves exactly, what it normalizes (lists, styles, synthetic pages), and what stays read-only is specified in docs/FIDELITY.md.

The Python SDK

python
from adeu import RedlineEngine, ModifyTextfrom io import BytesIO
with open("MSA.docx", "rb") as f:    stream = BytesIO(f.read())
edit = ModifyText(    target_text="State of New York",    new_text="State of Delaware",    comment="Standardizing governing law.")
engine = RedlineEngine(stream, author="AI Copilot")engine.apply_edits([edit])
with open("MSA_Redlined.docx", "wb") as f:    f.write(engine.save_to_stream().getvalue())

The TypeScript SDK

The entire core parsing and diffing engine is also available in pure TypeScript.

typescript
import { readFileSync, writeFileSync } from "fs";import { DocumentObject, RedlineEngine } from "@adeu/core";
const buffer = readFileSync("MSA.docx");const doc = await DocumentObject.load(buffer);
const engine = new RedlineEngine(doc, "AI Copilot");engine.process_batch([{  type: "modify",  target_text: "State of New York",  new_text: "State of Delaware",  comment: "Standardizing governing law."}]);
const outBuffer = await doc.save();writeFileSync("MSA_Redlined.docx", outBuffer);

See the @adeu/core documentation for full installation and usage details.

n8n Community Node

Adeu ships as an n8n community node (n8n-nodes-adeu) for teams who prefer visual workflow automation over code. It exposes the full engine (extract Markdown, apply tracked changes, generate diffs, and finalize documents) as drop-in nodes that work in both deterministic pipelines and AI Agent tool calls.

bash
# In n8n: Settings → Community Nodes → Install: n8n-nodes-adeu

See the n8n-nodes-adeu README for installation, $fromAI recipes, and example workflows.


LangChain Integration

langchain-adeu is an official integration package that exposes Adeu's local, offline-capable document manipulation tools directly to the LangChain ecosystem.

bash
pip install langchain-adeu

Bundle its capabilities as tools in your agent workflow:

python
from langchain_adeu import AdeuToolkit
# Instantiate and retrieve all document toolstools = AdeuToolkit().get_tools()

Refer to the LangChain Workspace Guide for full development instructions and detailed parameters.


Ecosystem & Integrations

Adeu is designed as a Virtual DOM for DOCX. Because we keep the core strictly focused on OpenXML safety, we maintain a dedicated ecosystem/ directory for third-party integrations.

The ecosystem folder hosts policies and guidelines for third-party contributions such as legal validation workflows, CLM sync scripts, and specialized multi-agent architectures.

Are you a vendor or builder? We welcome PRs to the ecosystem folder! Please see our Vendor & Integration Policy to get started.


Adeu Cloud

By default, the core Adeu redlining engine and local file tools are fully open-source and execute entirely on your machine. Adeu never phones home with your local documents (though your chosen LLM provider will naturally process the text the agent reads).

However, for teams requiring end-to-end workflows, you can connect to Adeu Cloud to unlock:

  • Email Processing & Fetching: We offer an extended MCP server with secure email thread fetching, document extraction, and automated drafting capabilities to handle contracts directly from your inbox.

Learn more about Adeu Cloud.


Contributing

We welcome contributions from the community! Whether it's fixing bugs, adding capabilities, or improving documentation, please see our Contributing Guide for instructions on setting up the local uv environment, running tests, and understanding the project's strict XML safety guidelines.


License

MIT License. Open source and free to use in commercial applications.

來源:README.md,提交 f940634

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.7.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分