uisandbox-mcp 0.5.4 → 0.5.5
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 +1 -1
- package/dist/server.mjs +19 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ npx uisandbox-mcp open # inside your project: finds the
|
|
|
42
42
|
npx uisandbox-mcp open http://localhost:3000 --detach # opens it and returns at once (for an agent without MCP); `stop` ends it
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
**The helper.** A page on uisandbox.org cannot read your localhost; the server can. It listens on `127.0.0.1:47319` (inside the MCP server whenever your client runs it, or with `start`) and answers uisandbox.org and localhost pages only: which dev servers run (`GET /apps`) and open one (`POST /open`), served from this process. Chrome asks once whether uisandbox.org may reach your local network. It looks on the usual dev ports and the one your package.json names; `UISANDBOX_PORTS=4400,9000` adds your own.
|
|
45
|
+
**The helper.** A page on uisandbox.org cannot read your localhost; the server can. It listens on `127.0.0.1:47319` (inside the MCP server whenever your client runs it, or with `start`) and answers uisandbox.org and localhost pages only: which dev servers run (`GET /apps`) and open one (`POST /open`), served from this process. Chrome asks once whether uisandbox.org may reach your local network. It looks on the usual dev ports and the runs around them (3000–3010, 4000–4010, 4200–4210, 4300–4330, 5000–5010, 5170–5180, 8000–8010, 8080–8090 and a few more) and the one your package.json names; `UISANDBOX_PORTS=4400,9000` adds your own.
|
|
46
46
|
|
|
47
47
|
## Slash commands
|
|
48
48
|
|
package/dist/server.mjs
CHANGED
|
@@ -10183,7 +10183,7 @@ When to use it — and offer it without being asked:
|
|
|
10183
10183
|
- The user is iterating on the look of an app you are working in: offer the sandbox proactively, once.
|
|
10184
10184
|
|
|
10185
10185
|
Rules: never claim more than \`verify\` and the reach meter report — quote the numbers; if a load is refused (iOS/Android/source-only), relay the reason and suggest building first; \`verify\`/\`screenshot\` need Chromium (npx playwright install chromium once) — \`open\`, \`load\`, \`set\`, \`export\` do not.`;
|
|
10186
|
-
var VERSION = "0.5.
|
|
10186
|
+
var VERSION = "0.5.5";
|
|
10187
10187
|
var server = new McpServer({
|
|
10188
10188
|
name: "uisandbox",
|
|
10189
10189
|
version: VERSION
|
|
@@ -10629,26 +10629,31 @@ function openInBrowser(url) {
|
|
|
10629
10629
|
}).unref();
|
|
10630
10630
|
} catch {}
|
|
10631
10631
|
}
|
|
10632
|
-
/** The ports dev servers start on
|
|
10633
|
-
|
|
10632
|
+
/** The ports dev servers start on, and the runs around them: a project that took
|
|
10633
|
+
* the next one up, or picked its own (Alexander's own site answers on 4320, next
|
|
10634
|
+
* to Astro's 4321, and was not listed). A closed port refuses at once. */
|
|
10635
|
+
var range = (a, b) => Array.from({ length: b - a + 1 }, (_, i) => a + i);
|
|
10636
|
+
var DEV_PORTS = [.../* @__PURE__ */ new Set([
|
|
10634
10637
|
5173,
|
|
10635
10638
|
3e3,
|
|
10636
|
-
5174,
|
|
10637
|
-
3001,
|
|
10638
10639
|
4321,
|
|
10639
10640
|
4200,
|
|
10640
10641
|
8080,
|
|
10641
|
-
3002,
|
|
10642
|
-
5175,
|
|
10643
|
-
8e3,
|
|
10644
|
-
4e3,
|
|
10645
10642
|
1234,
|
|
10646
|
-
5e3,
|
|
10647
|
-
8888,
|
|
10648
10643
|
6006,
|
|
10649
|
-
|
|
10650
|
-
3333
|
|
10651
|
-
|
|
10644
|
+
8888,
|
|
10645
|
+
3333,
|
|
10646
|
+
9e3,
|
|
10647
|
+
...range(3e3, 3010),
|
|
10648
|
+
...range(4e3, 4010),
|
|
10649
|
+
...range(4173, 4174),
|
|
10650
|
+
...range(4200, 4210),
|
|
10651
|
+
...range(4300, 4330),
|
|
10652
|
+
...range(5e3, 5010),
|
|
10653
|
+
...range(5170, 5180),
|
|
10654
|
+
...range(8e3, 8010),
|
|
10655
|
+
...range(8080, 8090)
|
|
10656
|
+
])];
|
|
10652
10657
|
/** What package.json says about this project's dev server: an explicit port, or its framework's default. */
|
|
10653
10658
|
function portsFromPackage(dir) {
|
|
10654
10659
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uisandbox-mcp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "UISandbox as an MCP server: open the real sandbox in your browser with your built web app loaded, turn its own knobs, verify 1:1, export CSS/patch/tokens/Swift/Android. Play with your app's design, right in the browser: nothing is sent to a server, and closing the tab undoes all of it.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|