@drawio/mcp 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +12 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -108,7 +108,18 @@ const tools =
|
|
|
108
108
|
"Opens the draw.io editor with a diagram from XML content. " +
|
|
109
109
|
"Use this to view, edit, or create diagrams in draw.io format. " +
|
|
110
110
|
"The XML should be valid draw.io/mxGraph XML format. " +
|
|
111
|
-
"IMPORTANT: Do NOT use double hyphens (--) inside XML comments, as this is invalid XML and will break the parser. Use single hyphens or rephrase instead."
|
|
111
|
+
"IMPORTANT: Do NOT use double hyphens (--) inside XML comments, as this is invalid XML and will break the parser. Use single hyphens or rephrase instead. " +
|
|
112
|
+
"EDGE ROUTING: Use edgeStyle=orthogonalEdgeStyle for right-angle connectors. " +
|
|
113
|
+
"Space nodes at least 60px apart to avoid overlapping edges. " +
|
|
114
|
+
"Use exitX/exitY/entryX/entryY (0-1) to control which side of a node an edge connects to, spreading connections across different sides. " +
|
|
115
|
+
"Add explicit waypoints via <Array as=\"points\"><mxPoint x=\"...\" y=\"...\"/></Array> inside mxGeometry when edges would overlap. " +
|
|
116
|
+
"CONTAINERS: For architecture diagrams and any diagram with nested elements, use proper parent-child containment (set parent=\"containerId\" on children, use relative coordinates). " +
|
|
117
|
+
"Container types: (1) group style (style=\"group;\") for invisible containers with no connections - includes pointerEvents=0 so child connections are not captured by the container; " +
|
|
118
|
+
"(2) swimlane style (style=\"swimlane;startSize=30;\") for labeled containers with a title bar - use when the container needs visual borders/headers or when the container itself has connections; " +
|
|
119
|
+
"(3) any shape can be a container by adding container=1 to its style, but also add pointerEvents=0 unless the container itself needs to be connectable. " +
|
|
120
|
+
"Always use pointerEvents=0 on container styles that should not capture connections being rewired between children. " +
|
|
121
|
+
"LAYOUT: Align nodes to a grid (multiples of 10). Use consistent spacing (e.g., 200px horizontal, 120px vertical between nodes). " +
|
|
122
|
+
"See https://www.drawio.com/doc/faq/drawio-style-reference.html for the complete style reference.",
|
|
112
123
|
inputSchema:
|
|
113
124
|
{
|
|
114
125
|
type: "object",
|