@statelyai/mcp 0.8.3 → 0.8.4

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
@@ -321,15 +321,17 @@ Pass XState source text (the default for strings), a JSON machine config, SCXML,
321
321
  XGraph, Mermaid, or D2; the server converts it once to canonical XGraph before
322
322
  rendering the app and PNG fallbacks.
323
323
  Other image-capable clients receive one PNG fallback per parent node. Structured
324
- content uses a required `schemaVersion: "1.0"` envelope. Its `interactive` and
325
- `pngFallback` fields independently discriminate `ready` from `unavailable`, so
326
- PNG rendering may succeed when the persisted interactive graph is unavailable.
324
+ content uses a required `schemaVersion: "2.0"` envelope with a canonical XGraph
325
+ JSON string in `interactive.graphJson`. Every V2 field has a concrete JSON
326
+ schema so hosts can persist the result without traversing open XGraph data.
327
+ `interactive` and `pngFallback` independently report `ready` or `unavailable`,
328
+ so PNG rendering may succeed when the persisted interactive graph is unavailable.
327
329
  The graph is capped at 500,000 UTF-8 bytes by default and PNG metadata at 100
328
330
  entries; image bytes remain native MCP content blocks. Use `parentNodeIds` to
329
331
  limit PNG fallback levels; omit it to render every parent with direct children.
330
332
 
331
333
  The App reads only this declared structured output. The stable resource URI is
332
- retained: newer bundles decode V1 and the earlier unversioned `graph` /
334
+ retained: newer bundles decode V2, V1, and the earlier unversioned `graph` /
333
335
  `graphError` shape. Saved results created before graph fields were declared
334
336
  cannot be reconstructed and deliberately ask the user to run the tool again.
335
337