@markdy/mcp-server 0.8.25 → 0.8.26

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/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ interface ToolResult {
13
13
  isError?: boolean;
14
14
  }
15
15
  declare function handleValidateMarkdy(code: string, checkArchitecture?: boolean): ToolResult;
16
- declare function handleTranspileToMarkdy(source: string, format: "mermaid" | "docker-compose" | "k8s" | "terraform", title?: string): ToolResult;
16
+ declare function handleTranspileToMarkdy(source: string, format: "mermaid" | "docker-compose" | "k8s" | "terraform" | "drawio", title?: string): Promise<ToolResult>;
17
17
  declare function handleExplainArchitecture(code: string): ToolResult;
18
18
  declare function handleGenerateMarkdyPrompt(userGoal: string): ToolResult;
19
19
 
package/dist/index.js CHANGED
@@ -18,7 +18,8 @@ import {
18
18
  transpileMermaidToMarkdy,
19
19
  transpileDockerComposeToMarkdy,
20
20
  transpileKubernetesManifestsToMarkdy,
21
- transpileTerraformStateToMarkdy
21
+ transpileTerraformStateToMarkdy,
22
+ transpileDrawioToMarkdy
22
23
  } from "@markdy/compat";
23
24
  function handleValidateMarkdy(code, checkArchitecture = true) {
24
25
  try {
@@ -58,7 +59,7 @@ ${repairPrompt}`
58
59
  };
59
60
  }
60
61
  }
61
- function handleTranspileToMarkdy(source, format, title = "Imported Scene") {
62
+ async function handleTranspileToMarkdy(source, format, title = "Imported Scene") {
62
63
  try {
63
64
  let markdyCode = "";
64
65
  switch (format) {
@@ -74,6 +75,9 @@ function handleTranspileToMarkdy(source, format, title = "Imported Scene") {
74
75
  case "terraform":
75
76
  markdyCode = transpileTerraformStateToMarkdy(source, title);
76
77
  break;
78
+ case "drawio":
79
+ markdyCode = (await transpileDrawioToMarkdy(source, title)).code;
80
+ break;
77
81
  default:
78
82
  throw new Error(`Unsupported ingestion format: ${format}`);
79
83
  }
@@ -178,14 +182,14 @@ function createMarkdyMcpServer() {
178
182
  },
179
183
  {
180
184
  name: "transpile_to_markdy",
181
- description: "Converts external infrastructure or diagram code (Mermaid, Docker Compose, Kubernetes manifests, or Terraform state) into animated MarkdyScript scenes.",
185
+ description: "Converts external infrastructure or diagram code (Mermaid, Docker Compose, Kubernetes manifests, Terraform state, or Draw.io XML) into animated MarkdyScript scenes.",
182
186
  inputSchema: {
183
187
  type: "object",
184
188
  properties: {
185
189
  source: { type: "string", description: "The source code or content to transpile." },
186
190
  format: {
187
191
  type: "string",
188
- enum: ["mermaid", "docker-compose", "k8s", "terraform"],
192
+ enum: ["mermaid", "docker-compose", "k8s", "terraform", "drawio"],
189
193
  description: "The source format."
190
194
  },
191
195
  title: { type: "string", description: "Optional title for the resulting scene." }
@@ -228,7 +232,7 @@ function createMarkdyMcpServer() {
228
232
  safeArgs.checkArchitecture !== false
229
233
  );
230
234
  case "transpile_to_markdy":
231
- return handleTranspileToMarkdy(
235
+ return await handleTranspileToMarkdy(
232
236
  String(safeArgs.source ?? ""),
233
237
  safeArgs.format,
234
238
  safeArgs.title ? String(safeArgs.title) : void 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/mcp-server",
3
- "version": "0.8.25",
3
+ "version": "0.8.26",
4
4
  "description": "Model Context Protocol server for Markdy diagram validation, transpilation, and generation.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -16,8 +16,8 @@
16
16
  ],
17
17
  "dependencies": {
18
18
  "@modelcontextprotocol/sdk": "^1.6.1",
19
- "@markdy/compat": "0.8.25",
20
- "@markdy/core": "0.8.25"
19
+ "@markdy/core": "0.8.26",
20
+ "@markdy/compat": "0.8.26"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^25.9.5",