@fluidgrids/cli 2026.1115.6 → 2026.1124.1
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 +31 -2
- package/dist/cli.js +581 -157
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -485,7 +485,8 @@ fluidgrids import export.json --from n8n --key my-flow --allow-missing-nodes
|
|
|
485
485
|
|
|
486
486
|
# The replay debugger (local code needs no flag; --remote-code needs durable functions)
|
|
487
487
|
fluidgrids replay histories/run.history.json --trace
|
|
488
|
-
fluidgrids replay <runId> --trace --remote-code # the exact code that ran (DD8)
|
|
488
|
+
fluidgrids replay <runId> --trace --remote-code # the exact code that ran (DD8); asks first
|
|
489
|
+
fluidgrids replay <runId> --remote-code --yes --output json # scripts: no prompt, warning in the envelope
|
|
489
490
|
fluidgrids replay <runId> --inspect # node --inspect-brk, stops at the mismatch
|
|
490
491
|
|
|
491
492
|
# One node operation as a durable activity (fluidgrids.standalone-activities)
|
|
@@ -518,7 +519,14 @@ fluidgrids activity start internal:http request --args '{"url":"https://example.
|
|
|
518
519
|
archive and refuses unless the `buildId` is the run's and this CLI bundles
|
|
519
520
|
the `@fluidgrids/workflows` version that built it. The replay runs that code
|
|
520
521
|
on your machine in a Node `vm`, which is not a sandbox (the managed workers
|
|
521
|
-
use the QuickJS isolate)
|
|
522
|
+
use the QuickJS isolate): the code can reach your process, files and
|
|
523
|
+
credentials, so debug only code from people you trust. Any workspace member
|
|
524
|
+
may have pushed that version, so `--remote-code` asks `Run the stored code of
|
|
525
|
+
<key> <version> on this machine? [y/N]` before it downloads anything, and
|
|
526
|
+
stops unless you answer yes. Without a terminal, and always with `--output
|
|
527
|
+
json`, it refuses unless you pass `--yes`. The warning goes to stderr and,
|
|
528
|
+
with `--output json`, is also a `debug.untrustedCode` warning in the
|
|
529
|
+
envelope. With `--inspect` it asks before starting the debuggee.
|
|
522
530
|
- `activity start` (also `activities start`) takes literal arguments; routing
|
|
523
531
|
nodes such as `internal:if` are refused. A repeated `--idempotency-key` (1 to
|
|
524
532
|
128 letters, digits, `.`, `_`, `:` or `-`) from the same caller returns the
|
|
@@ -572,6 +580,27 @@ fluidgrids admin system-info
|
|
|
572
580
|
Destructive commands ask for confirmation; pass `--force` in scripts.
|
|
573
581
|
Every data command takes `-f, --format json|table|yaml` (JSON when not on a terminal).
|
|
574
582
|
|
|
583
|
+
## MCP clients: `mcp connect`
|
|
584
|
+
|
|
585
|
+
`fluidgrids mcp connect <url>` lets a stdio MCP client (Claude Desktop, Cursor, Claude Code) use a
|
|
586
|
+
FluidGrids MCP endpoint: an MCP Server Trigger at `/mcp/fluidgrids/<workspace id>/s/<path>`, or
|
|
587
|
+
the workspace's published tool set at `/mcp/fluidgrids/<workspace id>`. Those endpoints need an
|
|
588
|
+
app token and the app's workspace token, and the workspace token lasts 15 minutes, so the bridge
|
|
589
|
+
holds the app API key, mints both tokens, renews them before they expire (and once after a 401)
|
|
590
|
+
and relays the client's JSON-RPC messages over Streamable HTTP.
|
|
591
|
+
|
|
592
|
+
```bash
|
|
593
|
+
FLUIDGRIDS_MCP_API_KEY=... FLUIDGRIDS_MCP_API_SECRET=... \
|
|
594
|
+
fluidgrids mcp connect https://graphqlworkspaces.burdenoff.com/mcp/fluidgrids/<workspace id>/s/crm-tools
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
- The key and secret are read from the environment only, never from flags.
|
|
598
|
+
- The URL must be on the configured workspace gateway (`FLUIDGRIDS_WORKSPACE_ENDPOINT`); tokens
|
|
599
|
+
are never sent anywhere else.
|
|
600
|
+
- stdout carries MCP messages only; diagnostics go to stderr.
|
|
601
|
+
|
|
602
|
+
Client configuration examples: https://docs.fluidgrids.ai/users/mcp-server-trigger
|
|
603
|
+
|
|
575
604
|
## Configuration
|
|
576
605
|
|
|
577
606
|
State lives in `~/.config/fluidgrids-cli/` (`auth.json` is written `0600`).
|