example-host: fix sandboxing setup (#21)

* example-host: prevent accidental non-iframing of sandbox (or iframing in prod)

* fix sandbox isolation + "test in prod"

* Update package.json

* Update sandbox.ts
This commit is contained in:
Olivier Chafik 2025-11-25 02:45:55 +00:00 • committed by GitHub
commit b4c6019d47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,7 +8,7 @@ import { Tool } from "@modelcontextprotocol/sdk/types.js";
import { AppRenderer, AppRendererProps } from "../src/AppRenderer";
import { AppBridge } from "../../../dist/src/app-bridge";
const SANDBOX_PROXY_URL = URL.parse("/sandbox.html", location.href)!;
const SANDBOX_PROXY_URL = new URL("http://localhost:8081/sandbox.html");
/**
* Example React application demonstrating the AppRenderer component.