slatebox-mcp 0.3.5 → 0.4.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 +11 -7
- package/generated/client.json +522 -629
- package/generated/exec-tool.json +22 -23
- package/generated/guest-client.js +1 -1
- package/generated/slatebox.d.ts +157 -190
- package/package.json +5 -4
- package/src/cli.js +15 -60
- package/src/{slatebox.js → commands.js} +57 -41
- package/src/mcp.js +75 -0
package/README.md
CHANGED
|
@@ -31,17 +31,17 @@ If you want a script to run on your Slatebox instead, in its sealed runner with
|
|
|
31
31
|
|
|
32
32
|
## Install
|
|
33
33
|
|
|
34
|
-
Use Node.js 22.13 or later. Download the archive and checksum from the Slatebox docs. The archive includes the JavaScript source of
|
|
34
|
+
Use Node.js 22.13 or later. Download the archive and checksum from the Slatebox docs. The archive includes the JavaScript source of the `slatebox-mcp` command, the generated client files and the MIT license.
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
|
-
curl -fLO https://docs.slatebox.com/assets/downloads/slatebox-mcp-0.
|
|
38
|
-
curl -fLO https://docs.slatebox.com/assets/downloads/slatebox-mcp-0.
|
|
39
|
-
shasum -a 256 -c slatebox-mcp-0.
|
|
40
|
-
npm install --global ./slatebox-mcp-0.
|
|
41
|
-
slatebox help
|
|
37
|
+
curl -fLO https://docs.slatebox.com/assets/downloads/slatebox-mcp-0.4.0.tgz
|
|
38
|
+
curl -fLO https://docs.slatebox.com/assets/downloads/slatebox-mcp-0.4.0.tgz.sha256
|
|
39
|
+
shasum -a 256 -c slatebox-mcp-0.4.0.tgz.sha256
|
|
40
|
+
npm install --global ./slatebox-mcp-0.4.0.tgz
|
|
41
|
+
slatebox-mcp exec --help
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
On Linux you can also verify the checksum with `sha256sum -c slatebox-mcp-0.
|
|
44
|
+
On Linux you can also verify the checksum with `sha256sum -c slatebox-mcp-0.4.0.tgz.sha256`. npm installs the public MCP SDK.
|
|
45
45
|
|
|
46
46
|
Open **Profile → Developer access** in your Slatebox account and create a token. Supply it in the `SLATEBOX_API_TOKEN` environment variable. Set `SLATEBOX_BASE_URL`, or pass `--base-url`, to your own instance's origin when self-hosting. The default is `https://app.slatebox.com`, Slatebox Cloud, which serves the API at `/api/v1` and the hosted MCP endpoint at `/mcp`.
|
|
47
47
|
|
|
@@ -120,6 +120,10 @@ This is a check with a record, not an approval system: an agent you allow to run
|
|
|
120
120
|
|
|
121
121
|
## Use the terminal
|
|
122
122
|
|
|
123
|
+
The `slatebox` command comes from the npm package `slatebox` (`npm install --global slatebox`, or `npx slatebox exec ...`), which also installs and runs your own Slatebox. It runs these commands with this package. Without it, `slatebox-mcp exec` and `slatebox-mcp describe` do the same.
|
|
124
|
+
|
|
125
|
+
Upgrading from slatebox-mcp 0.3, which also named a `slatebox` command: run `npm rm -g slatebox-mcp && npm i -g slatebox slatebox-mcp`.
|
|
126
|
+
|
|
123
127
|
```sh
|
|
124
128
|
slatebox exec script.js
|
|
125
129
|
slatebox exec - < script.ts
|