slatebox-mcp 0.4.0 → 0.4.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 +7 -7
- package/generated/client.json +58 -58
- package/generated/exec-tool.json +71 -53
- package/generated/slatebox.d.ts +32 -6
- package/package.json +5 -2
- package/src/cli.js +5 -2
- package/src/client/index.js +6 -1
- package/src/mcp.js +21 -0
- package/src/server.js +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Slatebox exec: MCP server and CLI
|
|
2
2
|
|
|
3
|
-
**Slatebox is
|
|
3
|
+
**Slatebox is the free, open-source visual intelligence platform for your team and agents.** Diagrams, flowcharts, mind maps, whiteboards and brainstorms, retro boards, Gantt plans and presentations that compose themselves: you, your team and any agent you invite over MCP work on them together, live. On the web as a mind-mapping tool since 2010. An open-source alternative to whiteboard tools such as Miro. MIT licensed. The canvas is free. On Slatebox Cloud, AI comes with Slatebox Pro; a self-hosted Slatebox can use its own AI key.
|
|
4
4
|
|
|
5
5
|
*Not affiliated with or endorsed by Miro. Miro is a trademark of its owner.*
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
Agents create and edit Slatebox slates (mind maps, flowcharts, diagrams, project plans, slides and boards) by running a short script, or by calling one tool per task. This package gives them two ways to do it:
|
|
10
10
|
|
|
11
|
-
- `slatebox-mcp`, an MCP server. **`exec`** runs a JavaScript or TypeScript script, and **`describe`** explains the typed client the script uses. Beside them it lists one typed tool per client method, such as `create_slate`, `import_mermaid`, `get_slate`, `edit_slate` and `export_mermaid`,
|
|
11
|
+
- `slatebox-mcp`, an MCP server. **`exec`** runs a JavaScript or TypeScript script, and **`describe`** explains the typed client the script uses. Beside them it lists one typed tool per client method, such as `create_slate`, `import_mermaid`, `get_slate`, `edit_slate` and `export_mermaid`, six prompts (mind map, brainstorm, flowchart, project plan, presentation, install Slatebox) and resources (the client's types and guide, and any slate as JSON or Mermaid).
|
|
12
12
|
- `slatebox`, a command that runs the same scripts from a terminal.
|
|
13
13
|
|
|
14
14
|
Inside a script, the global `slatebox` is a typed client with one method for each thing your token may do, such as `slatebox.slates.get({ shareId })` and `slatebox.slates.applyOperations({ shareId, plan })`. The client is generated from the Slatebox action registry, so new Slatebox actions appear in it without a new tool.
|
|
@@ -34,14 +34,14 @@ If you want a script to run on your Slatebox instead, in its sealed runner with
|
|
|
34
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.4.
|
|
38
|
-
curl -fLO https://docs.slatebox.com/assets/downloads/slatebox-mcp-0.4.
|
|
39
|
-
shasum -a 256 -c slatebox-mcp-0.4.
|
|
40
|
-
npm install --global ./slatebox-mcp-0.4.
|
|
37
|
+
curl -fLO https://docs.slatebox.com/assets/downloads/slatebox-mcp-0.4.1.tgz
|
|
38
|
+
curl -fLO https://docs.slatebox.com/assets/downloads/slatebox-mcp-0.4.1.tgz.sha256
|
|
39
|
+
shasum -a 256 -c slatebox-mcp-0.4.1.tgz.sha256
|
|
40
|
+
npm install --global ./slatebox-mcp-0.4.1.tgz
|
|
41
41
|
slatebox-mcp exec --help
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
On Linux you can also verify the checksum with `sha256sum -c slatebox-mcp-0.4.
|
|
44
|
+
On Linux you can also verify the checksum with `sha256sum -c slatebox-mcp-0.4.1.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
|
|