{
  "name": "drawio-mcp-server",
  "version": "2.1.1",
  "description": "Provides Draw.io services to MCP Clients",
  "type": "module",
  "main": "build/index.js",
  "bin": {
    "drawio-mcp-server": "build/index.js"
  },
  "engines": {
    "node": ">=20.0.0"
  },
  "files": [
    "build"
  ],
  "keywords": [
    "mcp",
    "modelcontextprotocol",
    "server",
    "draw.io",
    "drawio",
    "diagrams.net",
    "diagramsnet",
    "diagram",
    "claude"
  ],
  "author": "Ladislav Gazo",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/lgazo/drawio-mcp-server.git"
  },
  "dependencies": {
    "@hono/node-server": "1.19.13",
    "@modelcontextprotocol/sdk": "1.29.0",
    "cachedir": "2.4.0",
    "hono": "4.12.23",
    "nanoid": "5.1.6",
    "node-forge": "1.4.0",
    "unzipper": "0.12.3",
    "ws": "8.21.0",
    "zod": "4.2.1"
  },
  "devDependencies": {
    "@biomejs/biome": "2.4.13",
    "@jest/globals": "30.2.0",
    "@playwright/test": "1.59.1",
    "@types/jest": "30.0.0",
    "@types/node": "25.0.3",
    "@types/node-forge": "1.3.11",
    "@types/unzipper": "0.10.11",
    "@types/ws": "8.18.1",
    "concurrently": "9.1.2",
    "esbuild": "0.25.12",
    "globals": "16.5.0",
    "jest": "30.2.0",
    "jest-environment-node": "30.2.0",
    "prettier": "3.7.4",
    "rimraf": "6.1.3",
    "ts-jest": "29.4.9",
    "typescript": "5.9.3",
    "drawio-mcp-dev-proxy": "1.0.0",
    "drawio-mcp-plugin": "2.1.0"
  },
  "scripts": {
    "build": "rimraf build && tsc && mkdir -p build/plugin && cp node_modules/drawio-mcp-plugin/dist/mcp-plugin.js build/plugin/mcp-plugin.js",
    "ci": "pnpm install --frozen-lockfile",
    "dev": "tsc --watch",
    "dev:server": "concurrently --kill-others-on-fail -n tsc,node -c cyan,green \"tsc --watch --preserveWatchOutput\" \"node --watch --watch-path=build build/index.js\"",
    "inspect": "HOST=0.0.0.0 pnpx @modelcontextprotocol/inspector --config ./inspector.json --server drawio",
    "lint": "biome check src/ && tsc --noEmit",
    "lint:fix": "biome check --write src/",
    "prefetch-assets": "node build/prefetch-assets.js",
    "format": "prettier --write \"**/*.ts\"",
    "format:check": "prettier --check \"**/*.ts\"",
    "test:real-environment": "NODE_OPTIONS=--experimental-vm-modules jest build/real-environment --runInBand",
    "test:real-environment:https": "HARNESS_HTTPS=1 NODE_OPTIONS=--experimental-vm-modules jest build/real-environment --runInBand",
    "test": "NODE_OPTIONS=--experimental-vm-modules jest build/",
    "test:watch": "jest --watch",
    "test:coverage": "jest --config ../../jest.config.js --coverage",
    "clean": "rimraf build coverage .eslintcache",
    "download-assets": "curl -sL \"$(curl -sL https://api.github.com/repos/jgraph/drawio/releases/latest | grep -o '\"browser_download_url\": *\"[^\"]*\\.war\"' | head -1 | cut -d'\"' -f4)\" -o draw.war && unzip -q -o draw.war -d assets/drawio/webapp && rm draw.war",
    "start": "node build/index.js"
  }
}