What's New in v0.4.3
This release introduces the MCP Server - enabling AI agents like Claude Desktop, Cursor, and VS Code to generate and edit draw.io diagrams directly.
MCP Server (Preview)
Added Model Context Protocol server for AI-powered diagram generation with real-time browser preview. Now you can use Next AI Draw.io directly from your favorite AI tools!
{
"mcpServers": {
"drawio": {
"command": "npx",
"args": ["@next-ai-drawio/mcp-server@latest"]
}
}
}Available tools:
start_session- Opens browser with real-time diagram previewdisplay_diagram- Create a new diagram from XMLedit_diagram- Edit diagram by ID-based operations (update/add/delete cells)get_diagram- Get the current diagram XMLexport_diagram- Save diagram to a.drawiofile
Supported clients:
- Claude Desktop
- VS Code (Copilot)
- Cursor
- Claude Code CLI
New Features
- Vercel AI Gateway Support: Added support for Vercel AI Gateway (#274)
- PWA Manifest: Added manifest.ts for progressive web app support (#270)
- Theme Change Warning: Added warning dialog for theme and UI style changes (#248)
Improvements
- ID-based Diagram Editing: Replaced text-based
edit_diagramwith ID-based operations for more reliable cell updates, additions, and deletions (#267) - Streaming & JSON Repair: Improved
edit_diagramstreaming performance and JSON repair for better handling of malformed AI responses (#271)
Bug Fixes
- Fixed potential SSRF attack via custom base URL (GHSA-9qf7-mprq-9qgm)
Contributors
Thanks to all contributors who made this release possible!
Full Changelog: v0.4.1...v0.4.3