@statelyai/mcp 0.2.0 → 0.3.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 +24 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -78,6 +78,30 @@ Most tools accept a machine config object or a source document. Conversion
78
78
  supports XState, SCXML, XGraph, and D2. Validation also supports JSON, YAML, and
79
79
  Mermaid.
80
80
 
81
+ ## `create_state_machine`
82
+
83
+ <!-- create_state_machine registration from src/server.ts and convert/visualize response contracts -->
84
+
85
+ Creates a new XState v5 machine from a natural-language request. The connected
86
+ agent authors the XState source, then Stately normalizes it and returns the
87
+ source. Visualization defaults on and returns native PNG image blocks because a
88
+ diagram usually makes generated behavior easier to verify. Set `visualization`
89
+ to `false` only for code-only requests, clients that cannot display images, or
90
+ machines where a diagram adds no useful information.
91
+
92
+ <details>
93
+ <summary>Summary: create and visualize a machine</summary>
94
+
95
+ ```text
96
+ Make a state machine representing an order checkout flow.
97
+ ```
98
+
99
+ The agent calls Stately with complete XState v5 source. Omit `visualization` to
100
+ render PNG diagrams, customize it with `direction` or `parentNodeIds`, or set it
101
+ to `false` to return only the normalized XState source.
102
+
103
+ </details>
104
+
81
105
  ## `validate_machine`
82
106
 
83
107
  <!-- validate_machine registration from src/server.ts and validate response contract -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statelyai/mcp",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "files": [