@statelyai/mcp 0.6.1 → 0.6.3
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 +10 -34
- package/dist/index.cjs +12 -9
- package/dist/index.mjs +12 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,37 +7,13 @@ an MCP-compatible agent.
|
|
|
7
7
|
|
|
8
8
|
<!-- public Stately MCP URL -->
|
|
9
9
|
|
|
10
|
-
|
|
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.
|
|
10
|
+
Choose your client and add Stately MCP using one of these methods.
|
|
36
11
|
|
|
37
12
|
### Codex
|
|
38
13
|
|
|
39
14
|
```bash
|
|
40
15
|
codex mcp add stately --url https://stately.ai/mcp
|
|
16
|
+
codex mcp login stately
|
|
41
17
|
```
|
|
42
18
|
|
|
43
19
|
### Claude Code
|
|
@@ -46,7 +22,7 @@ codex mcp add stately --url https://stately.ai/mcp
|
|
|
46
22
|
claude mcp add --transport http stately https://stately.ai/mcp
|
|
47
23
|
```
|
|
48
24
|
|
|
49
|
-
Then open Claude Code
|
|
25
|
+
Then open Claude Code, run `/mcp`, and complete Stately sign-in.
|
|
50
26
|
|
|
51
27
|
### Cursor
|
|
52
28
|
|
|
@@ -62,8 +38,9 @@ Open **Cursor Settings → MCP → Add new global MCP server**, then add:
|
|
|
62
38
|
}
|
|
63
39
|
```
|
|
64
40
|
|
|
65
|
-
Save the configuration
|
|
66
|
-
`.cursor/mcp.json`
|
|
41
|
+
Save the configuration and complete Stately sign-in when Cursor connects. To
|
|
42
|
+
share the server with a project, put the same configuration in `.cursor/mcp.json`
|
|
43
|
+
at the project root.
|
|
67
44
|
|
|
68
45
|
### VS Code with GitHub Copilot
|
|
69
46
|
|
|
@@ -80,9 +57,9 @@ Create `.vscode/mcp.json` in your project:
|
|
|
80
57
|
}
|
|
81
58
|
```
|
|
82
59
|
|
|
83
|
-
Open the Command Palette and run **MCP: List Servers**,
|
|
84
|
-
For a personal configuration available in every
|
|
85
|
-
Configuration** instead.
|
|
60
|
+
Open the Command Palette and run **MCP: List Servers**, start `stately`, then
|
|
61
|
+
complete Stately sign-in. For a personal configuration available in every
|
|
62
|
+
workspace, run **MCP: Open User Configuration** instead.
|
|
86
63
|
|
|
87
64
|
### Other MCP clients
|
|
88
65
|
|
|
@@ -92,8 +69,7 @@ Add a remote server using the Streamable HTTP transport and this URL:
|
|
|
92
69
|
https://stately.ai/mcp
|
|
93
70
|
```
|
|
94
71
|
|
|
95
|
-
|
|
96
|
-
later to unlock account-backed tools.
|
|
72
|
+
Complete Stately sign-in when the client connects.
|
|
97
73
|
|
|
98
74
|
## Machine input
|
|
99
75
|
|