EditableImage MCP — Editable Draw.io Diagrams

v0.1.0
io.github.j-river/editableimage Checked 1 day ago Published 19 days ago

EditableImage MCP: build structured diagrams and export editable Draw.io nodes and connectors.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

validate_diagram_scene Validate editable diagram geometry

Validate scene JSON for supported nodes, text and bound connectors. Reject duplicate IDs, dangling references, unsupported styles and invalid XML characters. Returns counts without silently repairing or re-laying out the scene. Max 32 KiB and 200 elements.

ParameterTypeDescription
scene *object

export_drawio Export an editable Draw.io diagram

Convert supplied scene geometry into native Draw.io cells with attached connectors. Return an uncompressed mxfile document or a bare mxGraphModel. Labels are escaped, not executed. Does not recognize images, automatically infer layout, open an editor or write files. Max 32 KiB/200 elements input and 96 KiB XML.

ParameterTypeDescription
scene *object
containerstring
pageNamestring

create_flowchart_scene Create a simple ordered flowchart scene

Create a simple one-row or one-column scene from ordered nodes and references. Positions follow input order with fixed spacing, not graph optimization or image recognition. Returns scene JSON for review and export_drawio. Maximum 30 nodes and 60 edges.

ParameterTypeDescription
nodes *array
directionstring
edgesarray