@statelyai/mcp 0.1.2 → 0.2.0

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.
Files changed (2) hide show
  1. package/README.md +11 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -308,8 +308,17 @@ createMachine({
308
308
 
309
309
  <!-- visualize_machine registration from src/server.ts and visualize response contract -->
310
310
 
311
- Renders a machine as an SVG diagram. The response contains the SVG string,
312
- its width and height, and any warnings.
311
+ Renders each machine hierarchy level as a directly viewable PNG. Codex,
312
+ Claude, and other image-capable MCP clients receive one native image block per
313
+ parent node. Structured content contains parent IDs, labels, hierarchy levels,
314
+ dimensions, and warnings without duplicating image data. Use `parentNodeIds` to
315
+ select levels; omit it to render every parent with direct child states.
316
+
317
+ Each returned image uses the MCP `ImageContent` shape:
318
+
319
+ ```ts
320
+ { type: 'image', data: pngBase64, mimeType: 'image/png' }
321
+ ```
313
322
 
314
323
  <details>
315
324
  <summary>Summary: visualize a machine</summary>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statelyai/mcp",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "files": [