Safe Docx

السجل الرسمي الذكاء الاصطناعي والوكلاء

AI-native surgical editing of Word .docx and OpenDocument .odt files with formatting preservation

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package @usejunior/safe-docx
Claude Code
claude mcp add safe-docx -- npx -y @usejunior/safe-docx@0.25.0
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "safe-docx": {
            "command": "npx",
            "args": [
                "-y",
                "@usejunior/safe-docx@0.25.0"
            ]
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. Safe Docx
  2. Example
  3. Comparisons
  4. Install
  5. Documentation
  6. Standards Conformance
  7. What Safe Docx Is Not Optimized For

Safe Docx

Edit Word and OpenDocument files with coding agents.

English · Español · 简体中文 · Português · Deutsch

Safe Docx is a local MCP server and CLI for reading, searching, editing, comparing, converting, and saving document files. It preserves DOCX structure and can produce clean or tracked-changes output.

Example

Ask your coding agent:

Edit NDA.docx. Change the governing law from New York to Delaware.
Save a clean copy and a tracked-changes copy. Do not change anything else.

Safe Docx finds the clause, applies the targeted edit, and writes both files for review. The rest of the document stays outside the requested edit.

Follow the complete editing walkthrough.

Comparisons

Install

npm install --global @usejunior/safe-docx

Then configure your MCP client with the installed executable's absolute path. For Claude Code:

claude mcp add safe-docx -- /absolute/path/to/safe-docx
Antigravity CLI

Add Safe Docx to ~/.gemini/config/mcp_config.json:

{
  "mcpServers": {
    "safe-docx": {
      "command": "/absolute/path/to/safe-docx",
      "args": []
    }
  }
}

Restart agy, then ask it to edit a .docx file. Antigravity may ask you to approve the MCP server before first use.

See Installation and verification for locating the executable, pinning a version, and configuring clients.

Documentation

Standards Conformance

Browse the Safe Docx Conformance Explorer to navigate ECMA-376 sections, OOXML schema declarations, capability claims, explicit non-goals, and measured cross-implementation outcomes.

The generated repository conformance report remains the source-controlled record of targeted sections, non-goals, and verification references.

What Safe Docx Is Not Optimized For

Safe Docx is not a visual editor or layout engine. It does not provide browser rendering, real-time collaboration, or pixel-level pagination guarantees. .dotx templates must be converted to .docx before use.

الأسئلة الشائعة

ما هو Safe Docx؟

AI-native surgical editing of Word .docx and OpenDocument .odt files with formatting preservation

كيف أثبّت Safe Docx؟

يعمل على جهازك. في Claude Code: claude mcp add safe-docx -- npx -y @usejunior/safe-docx@0.25.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Safe Docx إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل Safe Docx مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص Apache-2.0.

من يصون Safe Docx؟

ينشره UseJunior. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.