uisandbox-mcp 0.3.3 → 0.5.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.
Files changed (48) hide show
  1. package/README.md +4 -2
  2. package/dist/app/assets/antd-DhIfMnKY.js +1 -0
  3. package/dist/app/assets/bootstrap-COnYSIiB.js +1 -0
  4. package/dist/app/assets/daisyui-BMsY9tCy.js +1 -0
  5. package/dist/app/assets/index-BnSGvar5.js +792 -0
  6. package/dist/app/assets/index-DT-CQEO6.css +1 -0
  7. package/dist/app/assets/mantine-_j_jRC3m.js +1 -0
  8. package/dist/app/assets/material-Dztr9pnA.js +1 -0
  9. package/dist/app/assets/openprops-8c8qkGJk.js +1 -0
  10. package/dist/app/assets/radix-XX7gl5Rg.js +1 -0
  11. package/dist/app/assets/shadcn-HwCY0maC.js +1 -0
  12. package/dist/app/assets/tailwind-DqpNPM-k.js +1 -0
  13. package/dist/app/index.html +46 -37
  14. package/dist/app/kits/antd/index.html +49 -0
  15. package/dist/app/kits/antd.jpg +0 -0
  16. package/dist/app/kits/antd.zip +0 -0
  17. package/dist/app/kits/bootstrap/index.html +49 -0
  18. package/dist/app/kits/bootstrap.jpg +0 -0
  19. package/dist/app/kits/bootstrap.zip +0 -0
  20. package/dist/app/kits/daisyui/index.html +49 -0
  21. package/dist/app/kits/daisyui.jpg +0 -0
  22. package/dist/app/kits/daisyui.zip +0 -0
  23. package/dist/app/kits/index.html +41 -0
  24. package/dist/app/kits/mantine/index.html +49 -0
  25. package/dist/app/kits/mantine.jpg +0 -0
  26. package/dist/app/kits/mantine.zip +0 -0
  27. package/dist/app/kits/material/index.html +49 -0
  28. package/dist/app/kits/material.jpg +0 -0
  29. package/dist/app/kits/material.zip +0 -0
  30. package/dist/app/kits/radix/index.html +49 -0
  31. package/dist/app/kits/radix.jpg +0 -0
  32. package/dist/app/kits/radix.zip +0 -0
  33. package/dist/app/kits/shadcn/index.html +49 -0
  34. package/dist/app/kits/shadcn.jpg +0 -0
  35. package/dist/app/kits/shadcn.zip +0 -0
  36. package/dist/app/kits/tailwind/index.html +49 -0
  37. package/dist/app/kits/tailwind.jpg +0 -0
  38. package/dist/app/kits/tailwind.zip +0 -0
  39. package/dist/app/live.js +119 -0
  40. package/dist/app/llms-full.txt +22 -13
  41. package/dist/app/llms.txt +15 -12
  42. package/dist/app/site.css +119 -0
  43. package/dist/app/sitemap.xml +10 -0
  44. package/dist/app/sw.js +57 -6
  45. package/dist/server.mjs +831 -22
  46. package/package.json +1 -1
  47. package/dist/app/assets/index-BWE5YOmA.js +0 -376
  48. package/dist/app/assets/index-DgULzJ3R.css +0 -1
package/README.md CHANGED
@@ -18,9 +18,10 @@ npx tsx mcp/smoke.ts fixtures/x.zip # load → set → export → verify
18
18
 
19
19
  | tool | input | returns |
20
20
  |---|---|---|
21
- | `load` | `zipUrl` or `zipPath` | project id, screens, values, the baseline (brand, fonts, families, palette, canvas, dark mode) — or a refusal with the reason |
21
+ | `load` | `devUrl`, or `zipUrl` / `zipPath` | `devUrl` (e.g. `http://localhost:5173`): a RUNNING dev server, in live mode, no build needed, hot reload passed through; a zip: project id, screens, values, the baseline (brand, fonts, families, palette, canvas, dark mode), or a refusal with the reason |
22
22
  | `open` | `id`, `screen?` | **the sandbox itself** in the user's browser — the web app ships in the package and is served from 127.0.0.1 by this process with the archive; what the user turns flows back (`state`) |
23
23
  | `state` | `id` | the knobs now, including what was turned by hand in an opened sandbox |
24
+ | `wait_for_send` | `id`, `timeoutSeconds?` | waits until the user presses **Send to your agent** in the opened sandbox, then returns what they turned (from → to), how many values moved, and the patch for their source; says `stillOpen` when the time runs out first |
24
25
  | `screens` | `id` | the screens |
25
26
  | `set` | `id`, `knobs` — `cPrimary`, `fontDisplay`, `fontBody`, dials (`radius`, `space`, `type`, `lineHeight`, `tracking`, `weight`, `borderWidth`, `borderTone`, `shadow`, `motion`, `hue`, `sat`, `contrast`, `gradAngle`), `cBackground`, family colours, `dark`, `reset` | what moved (count, sample) |
26
27
  | `export` | `id`, `format` — `sheet-css` · `sheet-json` · `patch` · `tokens-css` · `tokens-json` · `tailwind` · `shadcn` · `swift` · `android-xml` · `android-kotlin` | text |
@@ -29,11 +30,12 @@ npx tsx mcp/smoke.ts fixtures/x.zip # load → set → export → verify
29
30
 
30
31
  `load`/`set`/`export`/`state` are pure Node. `open` serves the bundled app on 127.0.0.1 and opens the browser — nothing leaves the machine. `verify`/`screenshot` drive the app in headless Chromium (the bundled one on 127.0.0.1; `UISANDBOX_URL` to point elsewhere) with the archive served from a route inside the browser — the number an agent gets is the number a visitor gets.
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
+ 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 and calls `wait_for_send`; you play in the real sandbox and press **Send to your agent**; the agent gets what you turned and the patch, and applies it. (Or come back and say *"export what I did"* → `state` → `export`.) Opened from the terminal with `npx uisandbox-mcp open`, the button is **Send to the terminal** and prints the same there.
33
34
 
34
35
  ## Without an agent
35
36
 
36
37
  ```bash
38
+ npx uisandbox-mcp open http://localhost:3000 # your RUNNING dev server, live: knobs on the app as you develop it, hot reload included
37
39
  npx uisandbox-mcp open # inside your project: finds the build, opens the sandbox (a folder or zip as argument works too)
38
40
  ```
39
41