@statelyai/mcp 0.8.7 → 0.9.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 +13 -8
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -13,11 +13,10 @@ own Stately deployment.
|
|
|
13
13
|
the [hosted resource tools](#hosted-resource-tools) that read your Stately
|
|
14
14
|
projects.
|
|
15
15
|
|
|
16
|
-
**Both
|
|
17
|
-
run entirely on your machine; every other tool
|
|
18
|
-
HTTP API
|
|
19
|
-
|
|
20
|
-
account*.
|
|
16
|
+
**Both use Stately credentials by default.** Only `list_machines` and
|
|
17
|
+
`get_machine` run entirely on your machine; every other tool calls the
|
|
18
|
+
configured HTTP API. Stately's hosted API rejects unauthenticated calls with
|
|
19
|
+
`Missing authentication.` A self-hosted API can define its own auth policy.
|
|
21
20
|
|
|
22
21
|
### Local (stdio)
|
|
23
22
|
|
|
@@ -374,7 +373,9 @@ createMachine({
|
|
|
374
373
|
<!-- visualize_machine registration from src/server.ts and visualize response contract -->
|
|
375
374
|
|
|
376
375
|
MCP Apps hosts render an interactive, read-only graph with hierarchy drill-in,
|
|
377
|
-
breadcrumbs,
|
|
376
|
+
breadcrumbs, select/pan/structural-simulation controls, selection utilities,
|
|
377
|
+
zoom, viewport recovery, keyboard shortcuts, and a host-mediated link to the
|
|
378
|
+
same graph in Stately. It starts in pan mode; AI controls remain hidden.
|
|
378
379
|
Pass XState source text (the default for strings), a JSON machine config, SCXML,
|
|
379
380
|
XGraph, Mermaid, or D2; the server converts it once to canonical XGraph before
|
|
380
381
|
rendering the app and PNG fallbacks.
|
|
@@ -477,7 +478,7 @@ are deliberately absent.
|
|
|
477
478
|
<summary>Summary: list the machines in a hosted project</summary>
|
|
478
479
|
|
|
479
480
|
```text
|
|
480
|
-
Use Stately to list the machines in project project-id
|
|
481
|
+
Use Stately to list the machines in the project with ID `project-id`.
|
|
481
482
|
```
|
|
482
483
|
|
|
483
484
|
```json
|
|
@@ -492,7 +493,7 @@ open-world.
|
|
|
492
493
|
|
|
493
494
|
## Tool-call observation
|
|
494
495
|
|
|
495
|
-
<!-- onToolCall
|
|
496
|
+
<!-- onToolCall and clientId options from src/server.ts and event types from src/toolCallObserver.ts -->
|
|
496
497
|
|
|
497
498
|
Hosts can pass `onToolCall` to `registerStatelyMcpTools` or
|
|
498
499
|
`createStatelyMcpServer`. It receives a content-free completion event with the
|
|
@@ -501,6 +502,10 @@ machine source, and results are never included. Input and output validation
|
|
|
501
502
|
failures are reported as errors. Configure the observer before registering any
|
|
502
503
|
other tools on the same `McpServer`.
|
|
503
504
|
|
|
505
|
+
Set `clientId` to label this server's HTTP analysis calls for channel-level
|
|
506
|
+
telemetry. It defaults to `stately-mcp/embedded`; the stdio binary uses
|
|
507
|
+
`stately-mcp/stdio`. The label carries no user or machine content.
|
|
508
|
+
|
|
504
509
|
The observer is absent by default. Its failures do not affect tool results, and
|
|
505
510
|
its promises are not awaited; serverless hosts should schedule delivery with
|
|
506
511
|
their platform lifecycle primitive.
|