@statelyai/mcp 0.5.2 → 0.6.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 +33 -9
- package/dist/index.cjs +76 -15
- package/dist/index.d.cts +9 -2
- package/dist/index.d.mts +9 -2
- package/dist/index.mjs +75 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,13 +7,37 @@ an MCP-compatible agent.
|
|
|
7
7
|
|
|
8
8
|
<!-- public Stately MCP URL -->
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Connect without creating an account, then ask your agent to extract and
|
|
11
|
+
visualize a machine:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
codex mcp add stately --url https://stately.ai/mcp
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
Use Stately to extract and visualize the state machine in this code:
|
|
19
|
+
|
|
20
|
+
import { createMachine } from 'xstate';
|
|
21
|
+
|
|
22
|
+
export const toggleMachine = createMachine({
|
|
23
|
+
initial: 'inactive',
|
|
24
|
+
states: {
|
|
25
|
+
inactive: { on: { TOGGLE: 'active' } },
|
|
26
|
+
active: { on: { TOGGLE: 'inactive' } }
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Clients with MCP Apps support render an interactive graph. Other clients
|
|
32
|
+
receive the graph data and image fallback. Sign in only when you want to use
|
|
33
|
+
hosted Stately projects or other account-backed tools.
|
|
34
|
+
|
|
35
|
+
Choose another client below if you do not use Codex.
|
|
11
36
|
|
|
12
37
|
### Codex
|
|
13
38
|
|
|
14
39
|
```bash
|
|
15
40
|
codex mcp add stately --url https://stately.ai/mcp
|
|
16
|
-
codex mcp login stately
|
|
17
41
|
```
|
|
18
42
|
|
|
19
43
|
### Claude Code
|
|
@@ -22,7 +46,7 @@ codex mcp login stately
|
|
|
22
46
|
claude mcp add --transport http stately https://stately.ai/mcp
|
|
23
47
|
```
|
|
24
48
|
|
|
25
|
-
Then open Claude Code
|
|
49
|
+
Then open Claude Code and run `/mcp` to confirm the server is connected.
|
|
26
50
|
|
|
27
51
|
### Cursor
|
|
28
52
|
|
|
@@ -38,8 +62,7 @@ Open **Cursor Settings → MCP → Add new global MCP server**, then add:
|
|
|
38
62
|
}
|
|
39
63
|
```
|
|
40
64
|
|
|
41
|
-
Save the configuration
|
|
42
|
-
share the server with a project, put the same configuration in
|
|
65
|
+
Save the configuration. To share the server with a project, put the same configuration in
|
|
43
66
|
`.cursor/mcp.json` at the project root.
|
|
44
67
|
|
|
45
68
|
### VS Code with GitHub Copilot
|
|
@@ -57,9 +80,9 @@ Create `.vscode/mcp.json` in your project:
|
|
|
57
80
|
}
|
|
58
81
|
```
|
|
59
82
|
|
|
60
|
-
Open the Command Palette and run **MCP: List Servers**, start `stately
|
|
61
|
-
|
|
62
|
-
|
|
83
|
+
Open the Command Palette and run **MCP: List Servers**, then start `stately`.
|
|
84
|
+
For a personal configuration available in every workspace, run **MCP: Open User
|
|
85
|
+
Configuration** instead.
|
|
63
86
|
|
|
64
87
|
### Other MCP clients
|
|
65
88
|
|
|
@@ -69,7 +92,8 @@ Add a remote server using the Streamable HTTP transport and this URL:
|
|
|
69
92
|
https://stately.ai/mcp
|
|
70
93
|
```
|
|
71
94
|
|
|
72
|
-
|
|
95
|
+
The anonymous connection exposes machine extraction and visualization. Sign in
|
|
96
|
+
later to unlock account-backed tools.
|
|
73
97
|
|
|
74
98
|
## Machine input
|
|
75
99
|
|