@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.
- package/README.md +11 -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
|
|
312
|
-
|
|
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>
|