uisandbox-mcp 0.2.0 → 0.3.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 +11 -1
- package/dist/app/assets/index-Bj469ZCA.js +318 -0
- package/dist/app/assets/index-BoluCeWz.css +1 -0
- package/dist/app/index.html +45 -18
- package/dist/app/llms-full.txt +37 -6
- package/dist/app/llms.txt +5 -2
- package/dist/app/og.png +0 -0
- package/dist/app/shot-reach-dark.png +0 -0
- package/dist/app/shot-reach.png +0 -0
- package/dist/app/shot-refusal-dark.png +0 -0
- package/dist/app/shot-refusal.png +0 -0
- package/dist/app/shot-stage-dark.png +0 -0
- package/dist/app/shot-stage.png +0 -0
- package/dist/app/shot-verify-dark.png +0 -0
- package/dist/app/shot-verify.png +0 -0
- package/dist/app/site.webmanifest +1 -1
- package/dist/server.mjs +216 -13
- package/package.json +3 -10
- package/dist/app/assets/index-BAi4QoSo.js +0 -316
- package/dist/app/assets/index-DgIoYtvB.css +0 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ pnpm mcp:build && pnpm mcp:pack # bundle the engine into mcp/dist/ser
|
|
|
12
12
|
npx tsx mcp/smoke.ts fixtures/x.zip # load → set → export → verify → screenshot (MCP_CMD to point at a build)
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
`verify` and `screenshot` need
|
|
15
|
+
`verify` and `screenshot` need Chromium: `npx playwright install chromium` once (Playwright ships with the package; only the browser is downloaded — `load`/`set`/`export`/`open` work without it).
|
|
16
16
|
|
|
17
17
|
## Tools
|
|
18
18
|
|
|
@@ -31,6 +31,16 @@ npx tsx mcp/smoke.ts fixtures/x.zip # load → set → export → verify
|
|
|
31
31
|
|
|
32
32
|
The conversation this is built for: *"Can I look at this app in a sandbox and change the design a bit?"* → the agent builds, `load`s, `open`s; you play in the real sandbox; *"export what I did"* → `state` → `export`.
|
|
33
33
|
|
|
34
|
+
## Without an agent
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npx uisandbox-mcp open ./dist # a folder or a zip: the sandbox opens in your browser, served from 127.0.0.1
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Slash commands
|
|
41
|
+
|
|
42
|
+
Where the client shows MCP prompts (Claude Desktop, Claude Code): `/uisandbox:open` (build the current repo, load, open the sandbox) and `/uisandbox:try <change>` (apply, verify 1:1, screenshot, patch). The server also sends `instructions` to the client, so the model knows when to offer the sandbox on its own.
|
|
43
|
+
|
|
34
44
|
## Claude Desktop / Claude Code / Cursor
|
|
35
45
|
|
|
36
46
|
```json
|