@statelyai/mcp 0.9.6 → 0.10.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 +44 -2
- package/dist/index.cjs +382 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +382 -10
- package/package.json +8 -5
package/README.md
CHANGED
|
@@ -293,8 +293,11 @@ createMachine({
|
|
|
293
293
|
|
|
294
294
|
<!-- apply_machine_patches registration from src/server.ts and apply-patches response contract -->
|
|
295
295
|
|
|
296
|
-
Applies semantic patches
|
|
297
|
-
|
|
296
|
+
Applies semantic patches in memory and returns a non-mutating behavioral
|
|
297
|
+
proposal: the updated document, the structured patches, and a concise
|
|
298
|
+
`behavioralSummary`. It never writes the source file or invokes Git. Use `to`
|
|
299
|
+
to choose the returned format; the coding agent remains responsible for its
|
|
300
|
+
actual source edit.
|
|
298
301
|
|
|
299
302
|
Patches use semantic graph operations. For example:
|
|
300
303
|
|
|
@@ -335,6 +338,42 @@ createMachine({
|
|
|
335
338
|
|
|
336
339
|
</details>
|
|
337
340
|
|
|
341
|
+
## `review_machine_implementation`
|
|
342
|
+
|
|
343
|
+
<!-- review_machine_implementation registration from src/server.ts -->
|
|
344
|
+
|
|
345
|
+
Reviews an agent-edited machine against the original source and proposed
|
|
346
|
+
semantic patches. It validates the edited machine, derives the behavior the
|
|
347
|
+
edit actually introduced, and reports missing, extra, or divergent changes.
|
|
348
|
+
The returned `stately-behavior-review.md` artifact contains the semantic
|
|
349
|
+
summary plus before/after Mermaid graphs, ready for the agent to save or paste
|
|
350
|
+
into its pull request.
|
|
351
|
+
|
|
352
|
+
The workflow keeps ownership explicit:
|
|
353
|
+
|
|
354
|
+
1. Inspect the existing machine.
|
|
355
|
+
2. Call `apply_machine_patches` for structured behavioral guidance.
|
|
356
|
+
3. Edit the source with the coding agent's normal tools.
|
|
357
|
+
4. Call `review_machine_implementation` with the original source, edited
|
|
358
|
+
source, and proposed patches.
|
|
359
|
+
5. Let the coding agent create its branch, commit, and pull request normally.
|
|
360
|
+
|
|
361
|
+
Neither tool writes files, creates branches, commits, pushes, or contacts a Git
|
|
362
|
+
provider. The surgical writer remains an optional primitive for an agent that
|
|
363
|
+
wants minimal source edits; it does not own the surrounding workflow.
|
|
364
|
+
|
|
365
|
+
<details>
|
|
366
|
+
<summary>Summary: verify an agent-authored behavior change</summary>
|
|
367
|
+
|
|
368
|
+
```text
|
|
369
|
+
Ask Stately for patches that add a verifyingFraud state between processing and
|
|
370
|
+
completed. Edit the machine source yourself, then ask Stately to review the
|
|
371
|
+
edited machine against the original source and those patches. Save the returned
|
|
372
|
+
Markdown behavior review and include it in the pull request you create.
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
</details>
|
|
376
|
+
|
|
338
377
|
## `generate_graph_paths`
|
|
339
378
|
|
|
340
379
|
<!-- generate_graph_paths registration from src/server.ts and graph-paths response contract -->
|
|
@@ -577,6 +616,9 @@ Self-host Stately Studio, then replace the hosted URL above with your
|
|
|
577
616
|
deployment's `/api/mcp` endpoint, for example
|
|
578
617
|
`https://studio.example.com/api/mcp`.
|
|
579
618
|
|
|
619
|
+
When the editor runs with `AUTH_PROVIDER=none`, MCP tool calls do not require a
|
|
620
|
+
bearer credential. Keep the endpoint behind your own trusted access boundary.
|
|
621
|
+
|
|
580
622
|
After deployment, run the protocol and MCP App canary with a read-only bearer
|
|
581
623
|
credential:
|
|
582
624
|
|