@drawio/mcp 1.1.6 → 1.1.8
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 +6 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -109,6 +109,7 @@ const tools =
|
|
|
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
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 GEOMETRY: Every edge mxCell MUST contain a <mxGeometry relative=\"1\" as=\"geometry\" /> child element, even when there are no waypoints. Self-closing edge cells (<mxCell ... edge=\"1\" ... />) are invalid and will not render correctly. " +
|
|
112
113
|
"EDGE ROUTING: Use edgeStyle=orthogonalEdgeStyle for right-angle connectors. " +
|
|
113
114
|
"Space nodes at least 60px apart to avoid overlapping edges. " +
|
|
114
115
|
"Use exitX/exitY/entryX/entryY (0-1) to control which side of a node an edge connects to, spreading connections across different sides. " +
|
|
@@ -119,7 +120,12 @@ const tools =
|
|
|
119
120
|
"(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; " +
|
|
120
121
|
"(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. " +
|
|
121
122
|
"Always use pointerEvents=0 on container styles that should not capture connections being rewired between children. " +
|
|
123
|
+
"EDGE LABELS: Do NOT wrap edge labels in HTML markup to reduce font size. The default font size for edge labels is already 11px (vs 12px for vertices), so they are already smaller. Just set the value attribute directly. " +
|
|
122
124
|
"LAYOUT: Align nodes to a grid (multiples of 10). Use consistent spacing (e.g., 200px horizontal, 120px vertical between nodes). " +
|
|
125
|
+
"DARK MODE COLORS: To enable dark mode color adaptation, the mxGraphModel element must include adaptiveColors=\"auto\". " +
|
|
126
|
+
"strokeColor, fillColor, and fontColor default to 'default', which renders as black in light theme and white in dark theme. " +
|
|
127
|
+
"Explicit colors (e.g. fillColor=#DAE8FC) specify the light-mode color; the dark-mode color is computed automatically by inverting RGB values and rotating the hue 180 degrees. " +
|
|
128
|
+
"To specify both colors explicitly, use light-dark(lightColor,darkColor) in the style string, e.g. fontColor=light-dark(#7EA6E0,#FF0000). " +
|
|
123
129
|
"See https://www.drawio.com/doc/faq/drawio-style-reference.html for the complete style reference.",
|
|
124
130
|
inputSchema:
|
|
125
131
|
{
|