mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-10-08 10:47:48 +08:00
- Pass themes=1 and dark=auto to the draw.io iframe, so the Extras menu offers the Theme submenu and draw.io follows the system dark mode; the header and dialogs follow it too through prefers-color-scheme - Download dialog: new Editable SVG (.drawio.svg) format through draw.io's xmlsvg export, default name diagram-YYYY-MM-DD, Enter saves and Escape closes it and the history dialog - export_diagram accepts format "drawio.svg" and detects the .drawio.svg extension - Use system fonts instead of Google Fonts, so the page works offline with a self-hosted draw.io (DRAWIO_BASE_URL)
61 lines
1.6 KiB
JSON
61 lines
1.6 KiB
JSON
{
|
|
"name": "@next-ai-drawio/mcp-server",
|
|
"version": "0.6.0",
|
|
"description": "MCP server for Next AI Draw.io - AI-powered diagram generation with real-time browser preview",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"bin": {
|
|
"next-ai-drawio-mcp": "./dist/index.js"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc && node scripts/copy-assets.mjs",
|
|
"check-package": "node scripts/check-package.mjs",
|
|
"dev": "tsx watch src/index.ts",
|
|
"start": "node dist/index.js",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
"keywords": [
|
|
"mcp",
|
|
"drawio",
|
|
"diagram",
|
|
"ai",
|
|
"claude",
|
|
"model-context-protocol"
|
|
],
|
|
"author": "DayuanJiang",
|
|
"license": "Apache-2.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/DayuanJiang/next-ai-draw-io",
|
|
"directory": "packages/mcp-server"
|
|
},
|
|
"homepage": "https://next-ai-drawio.jiang.jp",
|
|
"bugs": {
|
|
"url": "https://github.com/DayuanJiang/next-ai-draw-io/issues"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.31.0",
|
|
"linkedom": "^0.18.0",
|
|
"open": "^11.0.0",
|
|
"saxes": "^6.0.0",
|
|
"zod": "^4.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.0.0",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5",
|
|
"vitest": "^4.1.8"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
]
|
|
}
|