dodraw-mcp-server 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -38,3 +38,11 @@ On Windows, you might need to use `npx.cmd` if `npx` is not in your PATH or if y
38
38
  }
39
39
  }
40
40
  ```
41
+ ### Example Usage
42
+
43
+ Prompt to my agent:
44
+
45
+ "Using dodraw MCP server generate example of decision diagram of some real life situation"
46
+
47
+ Agent response:
48
+ ![alt text](image.png)
@@ -326,7 +326,7 @@ async function handleToolCall(name, args) {
326
326
  state.nodes.push(newNode);
327
327
  state.edges.push(newEdge);
328
328
  await (0, fileHandler_1.saveDiagramFile)(args.filePath, state);
329
- return { content: [{ type: "text", text: `Added node '${args.label}' to the ${args.direction} of '${sourceNode.label}' and connected them.` }] };
329
+ return { content: [{ type: "text", text: `Added node '${args.label}' (ID: ${newNodeId}) to the ${args.direction} of '${sourceNode.label}' and connected them.` }] };
330
330
  }
331
331
  case "add_edge": {
332
332
  const state = await (0, fileHandler_1.readDiagramFile)(args.filePath);
package/image.png ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dodraw-mcp-server",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "MCP server for DoDraw",
5
5
  "main": "dist/src/index.js",
6
6
  "bin": {
@@ -344,7 +344,7 @@ export async function handleToolCall(name: string, args: any): Promise<any> {
344
344
  state.edges.push(newEdge);
345
345
 
346
346
  await saveDiagramFile(args.filePath, state);
347
- return { content: [{ type: "text", text: `Added node '${args.label}' to the ${args.direction} of '${sourceNode.label}' and connected them.` }] };
347
+ return { content: [{ type: "text", text: `Added node '${args.label}' (ID: ${newNodeId}) to the ${args.direction} of '${sourceNode.label}' and connected them.` }] };
348
348
  }
349
349
  case "add_edge": {
350
350
  const state = await readDiagramFile(args.filePath);