From 5d6fff291005cad8cbc55bfc9e76617fa76096d1 Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Fri, 6 Mar 2026 08:38:12 -0600 Subject: [PATCH] Update basic-host imports to use package exports (#400) Change `sandbox.ts` imports from relative paths into `dist/` to use the proper `@modelcontextprotocol/ext-apps/app-bridge` package entry point. This aligns the example with how external consumers would import from the package. Co-authored-by: Claude Opus 4.5 --- examples/basic-host/src/sandbox.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/basic-host/src/sandbox.ts b/examples/basic-host/src/sandbox.ts index 1caf1c5..6f1dd93 100644 --- a/examples/basic-host/src/sandbox.ts +++ b/examples/basic-host/src/sandbox.ts @@ -1,5 +1,5 @@ -import type { McpUiSandboxProxyReadyNotification, McpUiSandboxResourceReadyNotification } from "../../../dist/src/types"; -import { buildAllowAttribute } from "../../../dist/src/app-bridge"; +import type { McpUiSandboxProxyReadyNotification, McpUiSandboxResourceReadyNotification } from "@modelcontextprotocol/ext-apps/app-bridge"; +import { buildAllowAttribute } from "@modelcontextprotocol/ext-apps/app-bridge"; const ALLOWED_REFERRER_PATTERN = /^http:\/\/(localhost|127\.0\.0\.1)(:|\/|$)/;