Skip to content

Commit 8f60116

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/virtual-desktop-server
2 parents 1f87978 + ba550f1 commit 8f60116

File tree

45 files changed

+2791
-761
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2791
-761
lines changed

examples/basic-host/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "tsc --noEmit && concurrently \"cross-env INPUT=index.html vite build\" \"cross-env INPUT=sandbox.html vite build\"",
88
"watch": "concurrently \"cross-env INPUT=index.html vite build --watch\" \"cross-env INPUT=sandbox.html vite build --watch\"",
9-
"serve": "bun serve.ts",
9+
"serve": "bun --watch serve.ts",
1010
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
1111
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\""
1212
},

examples/basic-host/src/sandbox.ts

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -95,21 +95,9 @@ window.addEventListener("message", async (event) => {
9595
inner.setAttribute("allow", allowAttribute);
9696
}
9797
if (typeof html === "string") {
98-
// Use document.write instead of srcdoc for WebGL compatibility.
99-
// srcdoc creates an opaque origin which prevents WebGL canvas updates
100-
// from being displayed properly. document.write preserves the sandbox
101-
// origin, allowing WebGL to work correctly.
102-
// CSP is enforced via HTTP headers on this page (sandbox.html).
103-
const doc = inner.contentDocument || inner.contentWindow?.document;
104-
if (doc) {
105-
doc.open();
106-
doc.write(html);
107-
doc.close();
108-
} else {
109-
// Fallback to srcdoc if document is not accessible
110-
console.warn("[Sandbox] document.write not available, falling back to srcdoc");
111-
inner.srcdoc = html;
112-
}
98+
inner.srcdoc = html;
99+
} else {
100+
console.error("[Sandbox] Missing or invalid HTML content in sandbox-resource-ready notification.");
113101
}
114102
} else {
115103
if (inner && inner.contentWindow) {

examples/basic-host/src/tamper-detection.ts

Lines changed: 0 additions & 325 deletions
This file was deleted.

examples/basic-server-preact/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"scripts": {
1919
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build",
2020
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
21-
"serve": "bun server.ts",
21+
"serve": "bun --watch server.ts",
2222
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
2323
"dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'",
2424
"prepublishOnly": "npm run build"

examples/basic-server-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"scripts": {
1919
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build",
2020
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
21-
"serve": "bun server.ts",
21+
"serve": "bun --watch server.ts",
2222
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
2323
"dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'",
2424
"prepublishOnly": "npm run build"

examples/basic-server-solid/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"scripts": {
1919
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build",
2020
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
21-
"serve": "bun server.ts",
21+
"serve": "bun --watch server.ts",
2222
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
2323
"dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'",
2424
"prepublishOnly": "npm run build"

examples/basic-server-svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"scripts": {
1919
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build",
2020
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
21-
"serve": "bun server.ts",
21+
"serve": "bun --watch server.ts",
2222
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
2323
"dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'",
2424
"prepublishOnly": "npm run build"

0 commit comments

Comments
 (0)