slatebox-mcp 0.4.0 → 0.5.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Slatebox exec: MCP server and CLI
2
2
 
3
- **Slatebox is an open source visual intelligence platform where you can invite any AI via MCP to collaborate with you and your team.** Mind maps, diagrams, project plans and presentations, drawn by your assistant and edited live with your team. 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.
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. Free and collaborative since 2009. Open source since 2012. An open-source alternative to whiteboard tools such as Miro. MIT licensed. The canvas is free. On Slatebox Cloud, agent features come with Slatebox Pro, or use your own AI key and spend no Slatebox credits; on a self-hosted Slatebox, the administrator's keys or your own turn them on.
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`, five prompts (mind map, flowchart, project plan, presentation, install Slatebox) and resources (the client's types and guide, and any slate as JSON or 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`, `show_slate` and `export_mermaid`, six prompts (mind map, brainstorm, flowchart, project plan, presentation, install Slatebox) and resources (the client's types and guide, any slate as JSON or Mermaid, and the view `show_slate` draws in).
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.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
37
+ curl -fLO https://docs.slatebox.com/assets/downloads/slatebox-mcp-0.5.1.tgz
38
+ curl -fLO https://docs.slatebox.com/assets/downloads/slatebox-mcp-0.5.1.tgz.sha256
39
+ shasum -a 256 -c slatebox-mcp-0.5.1.tgz.sha256
40
+ npm install --global ./slatebox-mcp-0.5.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.0.tgz.sha256`. npm installs the public MCP SDK.
44
+ On Linux you can also verify the checksum with `sha256sum -c slatebox-mcp-0.5.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
 
@@ -100,6 +100,12 @@ A refused edit throws `edit_refused` with the sentence a person would see (`deta
100
100
 
101
101
  A saved workshop edit answers with a `receiptId`. `{ kind: "undo_workshop_edit", receiptId, expectedRevision }` puts the board back as it was before that edit, only while nothing has changed since; otherwise it is refused with `slate_changed` and the board as it stands.
102
102
 
103
+ ## See the slate in the conversation
104
+
105
+ `show_slate({shareId})` shows the slate inside the conversation, in hosts that draw MCP Apps views (Claude, ChatGPT, VS Code and others). The view draws the notes and lines, follows edits as people make them, and has an **Open in Slatebox** button. A person can select a note and change its text there; that change is your agent's own `edit_slate` call, with the same checks.
106
+
107
+ The view refreshes with a token that only reads that one slate, lasts 15 minutes and is made for each call. The result keeps the token in `_meta`, which hosts give to the view and keep out of the model's context. The view loads nothing from anywhere and reaches only your Slatebox (`SLATEBOX_BASE_URL`). Call `show_slate` again for a fresh token. Hosts that do not draw views get the slate's name, address and note count as text.
108
+
103
109
  ## Show people what your agent is doing
104
110
 
105
111
  Everyone who can open a slate sees your run as a named pointer: "Ada's agent", or "Ada's agent · Your client" when your MCP client reports its name. The pointer moves to what each save changes. Show them your plan, and tick it as you go: