Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

feat(mcp): embed Play Together securely

Rahmanfcc950de6d4e
diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md
index cb4a2c34..14539d7f 100644
--- a/docs/ARCHITECTURE.md
+++ b/docs/ARCHITECTURE.md
@@ -272,4 +272,4 @@ future archaeology task.
### ChatGPT MSO Surface trust boundary
-Each MSO connector/server scope owns its own Surface catalog. Core MSO Surface code must not import project identities or trusted frame origins from another server scope. The current Fresh 3/VPSKU app target is Play Together (`game.rahmanef.com`), kept remote while its own CSP remains self-only. Any future iframe origin requires an explicit review and resource-URI/toolset bump.
+Each MSO connector/server scope owns its own Surface catalog. Core MSO Surface code must not import project identities or trusted frame origins from another server scope. The current Fresh 3/VPSKU app target is Play Together (`game.rahmanef.com`). Only its dedicated `/embed` namespace opts into framing by `mso-ui.rahmanef.com`; the normal Play Together shell remains anti-frame. MSO allowlists the exact game origin and enforces the `/embed` prefix in the browser-side Surface renderer. Any future iframe origin requires an explicit review and resource-URI/toolset bump.
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index c92e56fc..05b411dd 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -1,4 +1,5 @@
# mso — Progress Log
+- **Play Together secure iframe / Surface v3 (2026-09-04):** MCP server `1.9.2` / toolset `2026.09.04.3` upgrades `ui://mso/surface-v3.html` so Play Together can render live inside ChatGPT without relaxing the whole app. The Surface allowlists only `https://game.rahmanef.com`, starts it at `/embed`, revalidates the exact origin plus `/embed` path prefix in-browser, and retains a sandbox without popups/top-navigation. The Play Together deployment reciprocally keeps normal routes anti-frame and gives only `/embed` + `/embed/*` the exact `mso-ui.rahmanef.com` ancestor permission. Auth remains normal; no demo bypass or raw HTML/arbitrary URL input is added.
- **MSO Surface v1 scope correction / v2 resource (2026-09-04):** MCP server `1.9.1` / toolset `2026.09.04.2` removes accidental cross-project catalog entries from Fresh 3. `ui://mso/surface-v2.html` keeps the generic secure Surface architecture but its current VPSKU app catalog contains only **Play Together** (`https://game.rahmanef.com`) as a `remote` target because that app currently sends `frame-ancestors 'self'`. The Surface CSP therefore has **no third-party `frameDomains` at all**. Raw HTML/arbitrary URLs remain rejected, project anti-framing headers are never stripped, and app identities from other MSO server scopes are not copied into this connector.
- **MCP App contextual landing hardening (2026-09-03):** `Open in MSO` no longer lands on an idle desktop. Workflow/VPS/project/diff cards target `/assistant/mcp`, `/monitor`, `/files`, and `/code`; the shell also recognizes ChatGPT's root `redirectUrl=https://chatgpt.com/c/...` handoff and redirects it to Alfa → MCP Activity so an already-cached v2 widget still produces a visible result. Assistant deep-link payloads now select their requested tab even when reusing an existing singleton window. MCP tool count, scopes, output schemas, and v2 resource URIs are unchanged.
- **Live-build chunk corruption eliminated (2026-09-03):** a production browser repro proved the shell/Settings crash was not a Settings logic regression: an in-place `next build` in the active service checkout replaced `.next` while the old Next process still served its boot-time manifest, making all 19 root-referenced chunks disappear and one observed JS request return `500 text/plain`. Production was recovered through `mso deploy`; shell + Settings then passed real authenticated Playwright on desktop/mobile with zero failed requests/console errors. `bun run build` is now a fail-closed wrapper that holds the checkout exclusion and refuses a same-checkout live runtime; `mso build` remains the out-of-tree proof and guarded deploy/update lifecycles invoke raw Next only after quiescence. Post-replacement validation now checks every root-referenced JS/CSS asset status+MIME, not one CSS/chunk. The Fresh 3 smoke scratch path moved out of protected `~/.mso`, and recursive `fs_mkdir` now securely supports missing parents while rejecting symlink escapes.
diff --git a/docs/TESTING-HANDOFF.md b/docs/TESTING-HANDOFF.md
index 8c693700..b3d9d6e3 100644
--- a/docs/TESTING-HANDOFF.md
+++ b/docs/TESTING-HANDOFF.md
@@ -8,7 +8,7 @@ Update this file at the end of every manual or automated test session. Keep it f
The current release target is **MSO CLI 1.12.0**, MCP server `1.9.1`, toolset `2026.09.04.2`; use `mso --version` plus `/api/health` for the exact Git build because documentation-only release commits also advance that identity. The v1.10/v1.11 findings and the v1.12 sectioned-terminal/recoverable-error work below are resolved and retained as historical test evidence. Do not re-open a resolved finding from prose alone: reproduce it against the current build first. There is no known 1.12 release blocker in this handoff.
Current verified behavior:
-- Fresh 3 current MCP contract: server `1.9.1` / toolset `2026.09.04.2`; ChatGPT receives **64 transport tools = 63 model/operator actions (34 read / 17 write / 12 exec) + app-only `workflow_status`**, while the full transport catalog is 88 tools / 87 model tools. Every ChatGPT action advertises `outputSchema`, the dedicated MCP Apps widget origin is `https://mso-ui.rahmanef.com`, and five official digest-verified Skills are exposed through the MCP Skills/resource extension. Five MCP Apps are published: the four existing v2 operator cards plus corrected `ui://mso/surface-v2.html`. The Surface accepts no raw HTML/arbitrary URL and currently has **zero third-party frame domains**. Its VPSKU target is Play Together (`game.rahmanef.com`) via the remote-browser seam while that project retains `frame-ancestors 'self'`. Other MSO server scopes are not copied into this catalog.
+- Fresh 3 current MCP contract: server `1.9.2` / toolset `2026.09.04.3`; ChatGPT receives **64 transport tools = 63 model/operator actions (34 read / 17 write / 12 exec) + app-only `workflow_status`**, while the full transport catalog is 88 tools / 87 model tools. Every ChatGPT action advertises `outputSchema`, the dedicated MCP Apps widget origin is `https://mso-ui.rahmanef.com`, and five official digest-verified Skills are exposed through the MCP Skills/resource extension. Five MCP Apps are published: the four existing v2 operator cards plus `ui://mso/surface-v3.html`. The Surface accepts no raw HTML/arbitrary URL; its only frame domain is `https://game.rahmanef.com`, and every Play Together iframe URL must remain under `/embed`. The normal Play Together shell stays anti-frame, while the dedicated embed namespace allows only `mso-ui.rahmanef.com`. Other MSO server scopes are not copied into this catalog.
- MCP App navigation acceptance: a ChatGPT-opened root URL carrying `redirectUrl=https://chatgpt.com/c/...` must 307 to `/assistant/mcp`, then authenticated browser E2E must show the Alfa `MCP Activity` view. Contextual widget targets are workflow→`/assistant/mcp`, VPS→`/monitor`, project→`/files`, diff→`/code`. This changes no MCP tool/schema/resource URI, so existing Fresh 3 registrations remain compatible.
- P10 memory retention/lifecycle: isolated fixtures now archive only cold finished claims before the hard 2,000-record / 2 MiB live-ledger limits. Trigger/target are 1,400 -> <=1,000 live records (or ~1.4 MiB -> ~1 MiB); archive segments are content-addressed, owner-only and archive-before-ledger atomic. `bench:memory:lifecycle` is **8/8 deterministic** with a 1,400-correction seed ending at **1,000 live + 401 archived / two segments** and a 56-byte resolved projection. It verifies explicit archived-history retrieval, historical temporal resolution, aggregate-only no-content telemetry, `0700/0600` permissions, interrupted-commit live-wins semantics, backdated replacement over immutable archive, and frozen session A / fresh session B / resume-copy behavior. The P10 retrieval gate is **4/6 lexical** (synonym + Indonesian/English misses remain explicit); P10D also calibrates the existing local `mso-local-hybrid-v1` encoder on the same rows and gets **3/6** with zero network calls / zero persisted memory vectors, so production vector storage stays blocked by measured non-improvement rather than assumption. **3/3 two-hop relationship fixtures** keep graph storage blocked. The exact-history crowding bug (`Runtime-1` vs `Runtime-10...`) is fixed by exact phrase/token scoring; legacy `bench:memory` remains 100%.
- P9 memory calibration: isolated temporary-memory fixtures now cover repeated corrections, explicit-vs-observed authority, confidence/recency, future validity, forget, and history integrity. P9 fixed a real temporal privacy bug where `forget` could leave a future-scheduled claim that resurrected later; forget now closes all current/future-capable intervals while preserving already-ended history. Final 200-correction stress from source `d249da4`: **6/6 calibration scenarios**, existing memory benchmark **100%**, Cognitive Runtime memory gates **100%**; 200 ledger rows / 135,180 bytes resolve to 1 row / 58-byte compatibility projection (**99.96% smaller**) and history retrieval remains capped at 100. No calibrated case requires graph memory.
diff --git a/docs/generated/MCP-CATALOG.md b/docs/generated/MCP-CATALOG.md
index cebc23a1..e7a706e0 100644
--- a/docs/generated/MCP-CATALOG.md
+++ b/docs/generated/MCP-CATALOG.md
@@ -4,13 +4,13 @@
## Full MSO catalog
-<!-- mcp-toolset: server=1.9.1 version=2026.09.04.2 tools=87 read=43 write=25 exec=19 -->
+<!-- mcp-toolset: server=1.9.2 version=2026.09.04.3 tools=87 read=43 write=25 exec=19 -->
| Fact | Current source value |
|---|---:|
-| MCP server | `1.9.1` |
-| Toolset | `2026.09.04.2` |
-| Toolset changed at | `2026-09-03T18:32:00Z` |
+| MCP server | `1.9.2` |
+| Toolset | `2026.09.04.3` |
+| Toolset changed at | `2026-09-03T19:22:00Z` |
| Transport tools | **88** |
| Model/operator tools | **87** |
| Read | **43** |
@@ -120,7 +120,7 @@
## ChatGPT static profile
-<!-- mcp-chatgpt-profile: server=1.9.1 version=2026.09.04.2 tools=63 read=34 write=17 exec=12 app-only=1 total=64 -->
+<!-- mcp-chatgpt-profile: server=1.9.2 version=2026.09.04.3 tools=63 read=34 write=17 exec=12 app-only=1 total=64 -->
The ChatGPT profile is a fail-closed static projection defined by `CHATGPT_TOOL_NAMES`. OAuth scope is still enforced independently; project-owned MCP tool names remain dynamic data behind the generic project bridge.
diff --git a/docs/integrations/CHATGPT-UI.md b/docs/integrations/CHATGPT-UI.md
index 18442d55..8b8a60aa 100644
--- a/docs/integrations/CHATGPT-UI.md
+++ b/docs/integrations/CHATGPT-UI.md
@@ -24,7 +24,7 @@ Official references:
| Project status | `project_get` | `ui://mso/project-status-v2.html` | widget calls `project_get` again |
| Git diff summary | `project_diff` | `ui://mso/project-diff-v2.html` | static result; request a new diff for changed state |
| VPS/operator status | `vps_status` | `ui://mso/vps-status-v2.html` | widget calls `vps_status` again |
-| Universal MSO Surface | `render_mso_surface` | `ui://mso/surface-v2.html` | native views call bounded read tools; nested frames require an explicit exact-origin trust review |
+| Universal MSO Surface | `render_mso_surface` | `ui://mso/surface-v3.html` | native views call bounded read tools; Play Together uses its reviewed exact-origin `/embed` frame boundary |
Source boundaries:
@@ -59,6 +59,8 @@ The universal **MSO Surface** is intentionally stricter than the ordinary runtim
Fresh 3 is the VPSKU MSO connector. Its current app target is **Play Together** at `https://game.rahmanef.com`. App identities and trusted origins from other MSO server scopes must not be copied into this catalog or CSP.
+Play Together framing is opt-in through a dedicated app boundary: the normal site remains protected, while `/embed` and `/embed/*` allow only `https://mso-ui.rahmanef.com` as the non-self frame ancestor. MSO reciprocally allows only `https://game.rahmanef.com` in the Surface resource CSP and revalidates both origin **and** the `/embed` path prefix before assigning `iframe.src`. The Surface sandbox still omits popups/top-navigation. Authentication is not bypassed; an unauthenticated iframe sees Play Together's normal Auth flow.
+
Installed `runtime:"html"` apps and user-authored HTML widgets are **not** trusted inputs to the ChatGPT frame allowlist. They remain useful inside the authenticated MSO shell, but promoting one into `SURFACE_APPS` requires an explicit code review/release. This separation prevents a user-installed manifest or HTML snippet from escalating into a ChatGPT nested-frame CSP capability. Raw HTML snippets continue to run only in opaque-origin `srcDoc` sandboxes. The authenticated cockpit itself remains non-frameable; no change is made to its `frame-ancestors` or `X-Frame-Options` policy.
## Flow
@@ -91,7 +93,7 @@ Do not manually click through every model action. Cover the public contract with
| Journey | Suggested prompt/action | Pass condition |
| --- | --- | --- |
| Workflow/UI bridge | Start a read-only workflow for `mso`, press `Refresh`, then `Open in MSO` | progress updates; MSO opens visibly at Alfa → MCP Activity (`/assistant/mcp`), including when ChatGPT still uses a cached root-targeting widget; the explicit `Open directly` fallback targets the same view |
-| MSO Surface | Ask to render `/`, `/monitor`, then `/apps/play-together` | home/native view renders inline; Play Together resolves to `https://game.rahmanef.com` but stays on the remote-browser seam while its CSP is `frame-ancestors 'self'`; `frameDomains` remains absent |
+| MSO Surface | Ask to render `/`, `/monitor`, then `/apps/play-together` | home/native view renders inline; Play Together loads only from `https://game.rahmanef.com/embed`; `frameDomains` contains exactly `https://game.rahmanef.com`; fullscreen remains user-initiated |
| VPS card | Ask for the current VPS status | `vps_status` renders CPU/memory/disk/apps/browser/infra and its refresh works |
| Project/Git | Ask to inspect project `mso`, then show its current diff/history | `project_get` and `project_diff` render the correct project/branch/changes without secrets |
| Safe filesystem CRUD | Create/read/copy/move/delete a disposable file under `~/mso-smoke-tests/` | content/hash round-trip succeeds and cleanup leaves no test file |
diff --git a/lib/mcp/surface-catalog.test.ts b/lib/mcp/surface-catalog.test.ts
index 074c58eb..2afe88cc 100644
--- a/lib/mcp/surface-catalog.test.ts
+++ b/lib/mcp/surface-catalog.test.ts
@@ -4,11 +4,17 @@ import { MSO_SURFACE_SCRIPT } from "./ui-surface-script";
import { OPEN_IN_MSO_SCRIPT } from "./ui-navigation";
describe("MSO Surface trusted app catalog", () => {
- it("starts with no third-party nested-frame origins", () => {
- expect(surfaceFrameDomains()).toEqual([]);
+ it("allowlists only the reviewed Play Together origin", () => {
+ expect(surfaceFrameDomains()).toEqual(["https://game.rahmanef.com"]);
const apps = publicSurfaceApps();
expect(apps).toHaveLength(1);
- expect(apps[0]).toMatchObject({ id: "play-together", title: "Play Together", origin: "https://game.rahmanef.com", renderer: "remote" });
+ expect(apps[0]).toMatchObject({
+ id: "play-together",
+ title: "Play Together",
+ origin: "https://game.rahmanef.com",
+ startPath: "/embed",
+ renderer: "iframe",
+ });
expect(JSON.stringify(apps)).not.toContain("sandbox");
});
@@ -25,18 +31,25 @@ describe("MSO Surface trusted app catalog", () => {
}
});
- it("keeps Play Together on the remote seam while its CSP is self-only", () => {
- const surface = resolveSurfaceRoute("/apps/play-together");
- expect(surface).toMatchObject({ kind: "app", title: "Play Together", openPath: "/browser" });
- expect(surface.app).toMatchObject({ id: "play-together", renderer: "remote", origin: "https://game.rahmanef.com" });
- expect(new URL(surface.app!.url).origin).toBe("https://game.rahmanef.com");
+ it("keeps every Play Together demo route inside /embed", () => {
+ const root = resolveSurfaceRoute("/apps/play-together");
+ expect(root).toMatchObject({ kind: "app", title: "Play Together", openPath: "/assistant/mcp" });
+ expect(root.app).toMatchObject({ id: "play-together", renderer: "iframe" });
+ expect(new URL(root.app!.url).pathname).toBe("/embed");
+
+ const room = resolveSurfaceRoute("/apps/play-together/room/ABCD?join=remote");
+ const url = new URL(room.app!.url);
+ expect(url.origin).toBe("https://game.rahmanef.com");
+ expect(url.pathname).toBe("/embed/room/ABCD");
+ expect(url.searchParams.get("join")).toBe("remote");
});
- it("ships syntactically valid browser code with no dynamic HTML sink", () => {
+ it("ships syntactically valid browser code with no dynamic HTML sink and path-prefix revalidation", () => {
expect(() => new Function(`${OPEN_IN_MSO_SCRIPT}\n${MSO_SURFACE_SCRIPT}`)).not.toThrow();
expect(MSO_SURFACE_SCRIPT).not.toContain("innerHTML");
expect(MSO_SURFACE_SCRIPT).not.toContain("insertAdjacentHTML");
expect(MSO_SURFACE_SCRIPT).not.toContain("document.write");
expect(MSO_SURFACE_SCRIPT).toContain("url.origin!==safe.origin");
+ expect(MSO_SURFACE_SCRIPT).toContain("!url.pathname.startsWith(start+\"/\")");
});
});
diff --git a/lib/mcp/surface-catalog.ts b/lib/mcp/surface-catalog.ts
index 9c8d9935..7ca7b997 100644
--- a/lib/mcp/surface-catalog.ts
+++ b/lib/mcp/surface-catalog.ts
@@ -21,12 +21,12 @@ export const SURFACE_APPS: readonly SurfaceApp[] = [
{
id: "play-together",
title: "Play Together",
- description: "Play Together at game.rahmanef.com. Its current CSP permits only same-origin framing, so MSO keeps it on the remote-browser seam.",
+ description: "Live Play Together demo through its dedicated /embed security boundary.",
origin: "https://game.rahmanef.com",
- startPath: "/",
- renderer: "remote",
+ startPath: "/embed",
+ renderer: "iframe",
presentation: "fullscreen",
- reason: "The app CSP currently declares frame-ancestors 'self'; MSO does not strip project frame protections.",
+ sandbox: "allow-scripts allow-same-origin allow-forms allow-pointer-lock",
},
] as const;
@@ -65,11 +65,12 @@ function cleanRoute(raw: string): URL {
}
function safeDemoUrl(app: SurfaceApp, suffix: string, search: string): string {
- const path = suffix ? `/${suffix}` : app.startPath;
+ const base = app.startPath === "/" ? "" : app.startPath.replace(/\/$/, "");
+ const path = suffix ? `${base}/${suffix}` : app.startPath;
if (path.length > 768 || /[\\\u0000-\u001f]/.test(path) || path.split("/").some((part) => part === "." || part === "..")) {
throw new Error("invalid demo path");
}
- const url = new URL(suffix ? `${path}${search}` : app.startPath, app.origin);
+ const url = new URL(`${path}${suffix ? search : ""}`, app.origin);
if (url.origin !== app.origin || url.username || url.password || url.protocol !== "https:") throw new Error("demo URL escaped its trusted origin");
return url.href;
}
diff --git a/lib/mcp/tools-surface.test.ts b/lib/mcp/tools-surface.test.ts
index e9647194..bfb8b2b6 100644
--- a/lib/mcp/tools-surface.test.ts
+++ b/lib/mcp/tools-surface.test.ts
@@ -11,7 +11,7 @@ describe("MSO Surface MCP tools", () => {
it("returns only the server-reviewed public app catalog", async () => {
const result = await tool("mso_surface_apps_list").run({}, { scope: "read" }) as { apps: Array<Record<string, unknown>> };
expect(result.apps.map((app) => app.id)).toEqual(["play-together"]);
- expect(result.apps[0]).toMatchObject({ title: "Play Together", origin: "https://game.rahmanef.com", renderer: "remote" });
+ expect(result.apps[0]).toMatchObject({ title: "Play Together", origin: "https://game.rahmanef.com", renderer: "iframe", startPath: "/embed" });
expect(JSON.stringify(result)).not.toContain("sandbox");
expect(JSON.stringify(result)).not.toContain("<script");
});
@@ -21,7 +21,7 @@ describe("MSO Surface MCP tools", () => {
expect(render.inputSchema.properties).not.toHaveProperty("url");
expect(render.inputSchema.properties).not.toHaveProperty("html");
const result = await render.run({ route: "/apps/play-together" }, { scope: "read" }) as { app?: Record<string, unknown> };
- expect(result.app).toMatchObject({ id: "play-together", renderer: "remote", origin: "https://game.rahmanef.com" });
+ expect(result.app).toMatchObject({ id: "play-together", renderer: "iframe", origin: "https://game.rahmanef.com", startPath: "/embed", url: "https://game.rahmanef.com/embed" });
expect(result.app).not.toHaveProperty("sandbox");
});
diff --git a/lib/mcp/toolset.ts b/lib/mcp/toolset.ts
index 1e3528bd..46e0b8f9 100644
--- a/lib/mcp/toolset.ts
+++ b/lib/mcp/toolset.ts
@@ -3,9 +3,9 @@ import type { Scope } from "./scope";
import type { McpTool } from "./tool-kit";
import { toolDescriptor, type McpToolProfile } from "./tool-contract";
-export const MCP_SERVER_VERSION = "1.9.1";
-export const MCP_TOOLSET_VERSION = "2026.09.04.2";
-export const MCP_TOOLSET_CHANGED_AT = "2026-09-03T18:32:00Z";
+export const MCP_SERVER_VERSION = "1.9.2";
+export const MCP_TOOLSET_VERSION = "2026.09.04.3";
+export const MCP_TOOLSET_CHANGED_AT = "2026-09-03T19:22:00Z";
export type McpToolsetInfo = {
serverVersion: string;
diff --git a/lib/mcp/ui-resources.test.ts b/lib/mcp/ui-resources.test.ts
index 419e0b15..20fb26dc 100644
--- a/lib/mcp/ui-resources.test.ts
+++ b/lib/mcp/ui-resources.test.ts
@@ -164,14 +164,14 @@ describe("MCP Apps workflow progress UI", () => {
expect(content._meta.ui.csp).toMatchObject({
connectDomains: [],
resourceDomains: [],
+ frameDomains: ["https://game.rahmanef.com"],
});
- expect(content._meta.ui.csp).not.toHaveProperty("frameDomains");
expect(content._meta["openai/widgetCSP"]).toMatchObject({
connect_domains: [],
resource_domains: [],
+ frame_domains: ["https://game.rahmanef.com"],
});
- expect(content._meta["openai/widgetCSP"]).not.toHaveProperty("frame_domains");
- expect(MSO_SURFACE_URI).toContain("surface-v2.html");
+ expect(MSO_SURFACE_URI).toContain("surface-v3.html");
});
it("gives every MCP App a visible contextual MSO destination", () => {
diff --git a/lib/mcp/ui-surface-script.ts b/lib/mcp/ui-surface-script.ts
index c9964d2b..630e9091 100644
--- a/lib/mcp/ui-surface-script.ts
+++ b/lib/mcp/ui-surface-script.ts
@@ -35,6 +35,8 @@ function safeAppResult(raw){
const id=text(raw.id,"");const safe=SAFE_BY_ID.get(id);if(!safe)return null;
let url;try{url=new URL(text(raw.url,""))}catch{return null}
if(url.protocol!=="https:"||url.origin!==safe.origin||url.username||url.password)return null;
+ const start=safe.startPath==="/"?"/":safe.startPath.replace(/\/$/,"");
+ if(start!=="/"&&url.pathname!==start&&!url.pathname.startsWith(start+"/"))return null;
return {...safe,url:url.href};
}
function openPath(path){setMsoTarget(validRoute(path)?path:"/assistant/mcp")}
diff --git a/lib/mcp/ui-surface.ts b/lib/mcp/ui-surface.ts
index c1a329e5..26c9629a 100644
--- a/lib/mcp/ui-surface.ts
+++ b/lib/mcp/ui-surface.ts
@@ -4,7 +4,7 @@ import { surfaceFrameDomains } from "./surface-catalog";
import { MSO_SURFACE_SCRIPT } from "./ui-surface-script";
import { MSO_SURFACE_STYLE } from "./ui-surface-style";
-export const MSO_SURFACE_URI = "ui://mso/surface-v2.html";
+export const MSO_SURFACE_URI = "ui://mso/surface-v3.html";
const MIME = "text/html;profile=mcp-app";
const html = String.raw`<main class="surface" aria-label="MSO Surface">
@@ -27,11 +27,11 @@ const html = String.raw`<main class="surface" aria-label="MSO Surface">
export const MSO_SURFACE_RESOURCE = {
uri: MSO_SURFACE_URI,
name: "MSO Surface",
- description: "Universal secure MSO presentation target for native operator views and native operator views and explicitly reviewed app targets inside ChatGPT.",
+ description: "Universal secure MSO presentation target for native operator views and explicitly reviewed app targets inside ChatGPT.",
mimeType: MIME,
text: html,
_meta: widgetResourceMeta(
- "Interactive MSO Surface. It renders native MSO views and explicitly reviewed app targets. Nested frames remain disabled unless an exact origin is intentionally allowlisted; arbitrary HTML and URLs are never accepted from the model.",
+ "Interactive MSO Surface. It renders native MSO views and exact-origin reviewed app demos. Nested frames are limited to explicit CSP frame domains and dedicated embed routes; arbitrary HTML and URLs are never accepted from the model.",
{ frameDomains: surfaceFrameDomains() },
),
} as const;