{
  "name": "@usejunior/docx-mcp",
  "version": "0.19.1",
  "description": "MCP server for reading, editing, and comparing Word (.docx) and OpenDocument (.odt) files with tracked changes. For Claude, Gemini CLI, Cursor, and any MCP client. Apache-2.0 licensed.",
  "type": "module",
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
  "bin": {
    "safedocx": "dist/cli.js",
    "safe-docx": "dist/cli.js"
  },
  "scripts": {
    "clean:dist": "node -e \"const { rmSync } = require('node:fs'); rmSync('dist', { recursive: true, force: true });\"",
    "build": "npm run build -w @usejunior/docx-core && npm run build -w @usejunior/docx-compare && npm run build -w @usejunior/odf-core --if-present && npm run build -w @usejunior/google-docs-core --if-present && npm run clean:dist && tsc -p tsconfig.build.json",
    "dev": "tsx watch src/cli.ts",
    "check:spec-coverage": "node scripts/validate_openspec_coverage.mjs",
    "conformance:discover": "tsx scripts/discover_docx_fixtures.ts --out conformance/discovery.report.json",
    "conformance:run": "tsx scripts/run_conformance_harness.ts --manifest conformance/fixtures.manifest.json --report conformance/last-report.json",
    "conformance:smoke": "tsx scripts/run_conformance_harness.ts --manifest conformance/fixtures.manifest.json --mode smoke --report conformance/smoke-report.json",
    "docs:generate:tools": "node --import tsx scripts/generate_tool_reference.ts",
    "test:conformance": "vitest run src/conformance/harness.test.ts",
    "test": "npm run build -w @usejunior/docx-core && npm run build -w @usejunior/docx-compare && npm run build -w @usejunior/odf-core --if-present && npm run check:spec-coverage && node ../../node_modules/vitest/vitest.mjs",
    "test:run": "npm run build -w @usejunior/docx-core && npm run build -w @usejunior/docx-compare && npm run build -w @usejunior/odf-core --if-present && npm run check:spec-coverage && node ../../node_modules/vitest/vitest.mjs run",
    "test:coverage": "npm run build -w @usejunior/docx-core && npm run build -w @usejunior/docx-compare && npm run build -w @usejunior/odf-core --if-present && npm run check:spec-coverage && node ../../node_modules/vitest/vitest.mjs run --coverage --coverage.reporter=text-summary --coverage.reporter=json-summary --coverage.reporter=lcov",
    "prepack": "npm run build",
    "lint": "tsc --noEmit --pretty false"
  },
  "dependencies": {
    "@modelcontextprotocol/sdk": "^1.0.0",
    "@usejunior/docx-compare": "^0.19.1",
    "@usejunior/docx-core": "^0.19.1",
    "@usejunior/odf-core": "^0.19.1",
    "@xmldom/xmldom": "^0.9.10",
    "zod": "^4.3.6"
  },
  "devDependencies": {
    "@types/node": "^22.10.0",
    "@vitest/coverage-v8": "^4.1.8",
    "@vitest/runner": "^4.1.8",
    "allure-vitest": "^3.9.0",
    "tsx": "^4.19.2",
    "typescript": "^5.7.2",
    "vitest": "^4.1.8"
  },
  "engines": {
    "node": ">=18.0.0"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/UseJunior/safe-docx"
  },
  "publishConfig": {
    "access": "public"
  },
  "files": [
    "dist",
    "NOTICE"
  ],
  "peerDependencies": {
    "@usejunior/google-docs-core": "^0.19.1"
  },
  "peerDependenciesMeta": {
    "@usejunior/google-docs-core": {
      "optional": true
    }
  },
  "license": "Apache-2.0",
  "keywords": [
    "mcp",
    "mcp-server",
    "model-context-protocol",
    "docx",
    "word",
    "document-editing",
    "tracked-changes",
    "document-comparison",
    "ai",
    "llm",
    "formatting-preservation",
    "ooxml",
    "serverless",
    "cloudflare-workers",
    "edge",
    "vercel",
    "microsoft-word",
    "contract-review",
    "legal-tech",
    "document-automation",
    "coding-agent",
    "claude-code",
    "cursor",
    "windsurf",
    "redline",
    "redlining",
    "contract",
    "legal",
    "markup",
    "mark-up",
    "word-editing",
    "word-document",
    "ai-agent",
    "local-first",
    "offline",
    "diff",
    "safedocx",
    "odt",
    "opendocument",
    "libreoffice"
  ],
  "homepage": "https://github.com/UseJunior/safe-docx/tree/main/packages/docx-mcp",
  "bugs": {
    "url": "https://github.com/UseJunior/safe-docx/issues"
  }
}
