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.

fix(mcp): correct Fresh 3 Surface scope

Rahman7823819f7794
diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md
index d16d523a..cb4a2c34 100644
--- a/docs/ARCHITECTURE.md
+++ b/docs/ARCHITECTURE.md
@@ -269,3 +269,7 @@ When sources disagree, use this order:
`node scripts/check-docs.mjs` plus `node scripts/gen-comparison.mjs --check` check current-reference links,
selected machine-verifiable facts, comparison evidence and source-review freshness so common drift becomes a gate failure instead of a
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.
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index dbfa5c19..c92e56fc 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -1,5 +1,5 @@
# mso — Progress Log
-- **MSO Surface v1 / ChatGPT presentation target (2026-09-04):** MCP server `1.9.0` / toolset `2026.09.04.1` adds `mso_surface_apps_list` and `render_mso_surface`, taking the ChatGPT profile to 64 transport tools (63 model actions + app-only `workflow_status`) and the full model catalog to 87. `ui://mso/surface-v1.html` is a universal responsive MCP App with native home/monitor/project/diff/browser routes, fullscreen/PiP controls, and reviewed app-demo routing. Security is default-deny: no raw HTML or arbitrary URL tool inputs, dynamic strings use DOM text nodes, iframe URLs are revalidated against a catalog bundled in the UI resource, nested `frameDomains` contains only exact reviewed origins, sandbox grants omit popups/top-navigation, authenticated MSO remains non-frameable, and user-installed `runtime:"html"`/HTML widgets cannot promote themselves into the ChatGPT frame allowlist. AntiNRML Builder is the first direct live-demo origin; Baton and AntiNRML Game remain remote because their production XFO/CSP currently deny third-party framing.
+- **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 7df45692..8c693700 100644
--- a/docs/TESTING-HANDOFF.md
+++ b/docs/TESTING-HANDOFF.md
@@ -5,10 +5,10 @@ Update this file at the end of every manual or automated test session. Keep it f
## Current status
-The current release target is **MSO CLI 1.12.0**, MCP server `1.9.0`, toolset `2026.09.04.1`; 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.
+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.0` / toolset `2026.09.04.1`; 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 now published: the four existing v2 operator cards plus `ui://mso/surface-v1.html`. The Surface accepts no raw HTML/arbitrary URL; its one direct demo origin is exact-origin allowlisted, while Baton/AntiNRML Game remain remote because their current headers deny third-party framing.
+- 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.
- 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 5a6ff715..cebc23a1 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.0 version=2026.09.04.1 tools=87 read=43 write=25 exec=19 -->
+<!-- mcp-toolset: server=1.9.1 version=2026.09.04.2 tools=87 read=43 write=25 exec=19 -->
| Fact | Current source value |
|---|---:|
-| MCP server | `1.9.0` |
-| Toolset | `2026.09.04.1` |
-| Toolset changed at | `2026-09-03T17:55:43Z` |
+| MCP server | `1.9.1` |
+| Toolset | `2026.09.04.2` |
+| Toolset changed at | `2026-09-03T18:32:00Z` |
| Transport tools | **88** |
| Model/operator tools | **87** |
| Read | **43** |
@@ -120,7 +120,7 @@
## ChatGPT static profile
-<!-- mcp-chatgpt-profile: server=1.9.0 version=2026.09.04.1 tools=63 read=34 write=17 exec=12 app-only=1 total=64 -->
+<!-- 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 -->
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 31052be4..18442d55 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-v1.html` | native views call bounded read tools; reviewed apps may use exact-origin nested frames |
+| 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 |
Source boundaries:
@@ -55,7 +55,9 @@ The VPS component receives bounded health/process/app/browser state and **masked
All five resources are self-contained: no external JavaScript, CSS, images, or direct `fetch()` calls. `Open in MSO` feature-detects the official ChatGPT `window.openai.openExternal` bridge, registers a contextual MSO deep-link with `window.openai.setOpenInAppUrl`, and shows a user-clickable `Open directly` fallback plus visible status when automatic navigation is unavailable. Workflow cards target `/assistant/mcp`, VPS cards `/monitor`, project cards `/files`, and diff cards `/code`. As a cache-safe fallback, a root MSO landing carrying ChatGPT's `redirectUrl=https://chatgpt.com/c/...` is server-redirected to `/assistant/mcp` while preserving the callback query; MSO never follows that callback itself.
-The universal **MSO Surface** is intentionally stricter than the ordinary runtime-app/HTML widgets. `render_mso_surface` accepts only an MSO-style route plus optional project/SHA context — never raw HTML and never an arbitrary URL. Nested frames come from the code-owned `SURFACE_APPS` registry and are permitted only when the exact origin is also present in the resource's `ui.csp.frameDomains`. The browser-side renderer validates the returned app id and URL origin against the catalog bundled into the signed resource before setting `iframe.src`; dynamic labels use DOM `textContent`, not HTML interpolation. The iframe sandbox omits popup/top-navigation privileges. Apps that send `X-Frame-Options` or restrictive `frame-ancestors` remain `remote` and MSO does not strip those protections.
+The universal **MSO Surface** is intentionally stricter than the ordinary runtime-app/HTML widgets. `render_mso_surface` accepts only an MSO-style route plus optional project/SHA context — never raw HTML and never an arbitrary URL. Nested frames can come only from the code-owned `SURFACE_APPS` registry and are permitted only when the exact origin is also present in the resource's `ui.csp.frameDomains`. The current Fresh 3 catalog has no iframe renderer, so `frameDomains` is omitted entirely. The browser-side renderer validates the returned app id and URL origin against the catalog bundled into the signed resource before setting `iframe.src`; dynamic labels use DOM `textContent`, not HTML interpolation. The iframe sandbox omits popup/top-navigation privileges. Apps that send `X-Frame-Options` or restrictive `frame-ancestors` remain `remote` and MSO does not strip those protections.
+
+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.
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.
@@ -70,8 +72,8 @@ ChatGPT model
├─ vps_status ──→ VPS card ──→ vps_status refresh
└─ render_mso_surface ─→ MSO Surface
├─ native monitor/project/diff views
- ├─ reviewed exact-origin live iframe app
- └─ remote-browser fallback for anti-frame apps
+ ├─ exact-origin iframe only after explicit trust review
+ └─ remote-browser seam for anti-frame apps
Every entry tool also returns portable text/JSON for non-MCP-Apps clients.
```
@@ -89,7 +91,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/antinrml-builder` | home/native view renders inline; reviewed builder appears as a nested live frame; fullscreen control is available; Baton/game remain remote and never enter `frameDomains` |
+| 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 |
| 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 4c372102..074c58eb 100644
--- a/lib/mcp/surface-catalog.test.ts
+++ b/lib/mcp/surface-catalog.test.ts
@@ -4,12 +4,11 @@ import { MSO_SURFACE_SCRIPT } from "./ui-surface-script";
import { OPEN_IN_MSO_SCRIPT } from "./ui-navigation";
describe("MSO Surface trusted app catalog", () => {
- it("allowlists only reviewed direct-frame origins", () => {
- expect(surfaceFrameDomains()).toEqual(["https://builder-game.antinrml.com"]);
+ it("starts with no third-party nested-frame origins", () => {
+ expect(surfaceFrameDomains()).toEqual([]);
const apps = publicSurfaceApps();
- expect(apps.find((app) => app.id === "antinrml-builder")?.renderer).toBe("iframe");
- expect(apps.find((app) => app.id === "baton")?.renderer).toBe("remote");
- expect(apps.find((app) => app.id === "antinrml-game")?.renderer).toBe("remote");
+ expect(apps).toHaveLength(1);
+ expect(apps[0]).toMatchObject({ id: "play-together", title: "Play Together", origin: "https://game.rahmanef.com", renderer: "remote" });
expect(JSON.stringify(apps)).not.toContain("sandbox");
});
@@ -18,22 +17,19 @@ describe("MSO Surface trusted app catalog", () => {
"https://evil.example/app",
"//evil.example/app",
"/apps/unknown",
- "/apps/antinrml-builder/../admin",
- "/apps/antinrml-builder/%2e%2e/admin",
- "/apps/antinrml-builder\\evil",
+ "/apps/play-together/../admin",
+ "/apps/play-together/%2e%2e/admin",
+ "/apps/play-together\\evil",
]) {
expect(() => resolveSurfaceRoute(route), route).toThrow();
}
});
- it("keeps direct demo paths on the exact reviewed origin", () => {
- const surface = resolveSurfaceRoute("/apps/antinrml-builder/rooms/demo?mode=guest");
- expect(surface).toMatchObject({ kind: "app", title: "AntiNRML Builder" });
- expect(surface.app?.renderer).toBe("iframe");
- const url = new URL(surface.app!.url);
- expect(url.origin).toBe("https://builder-game.antinrml.com");
- expect(url.pathname).toBe("/rooms/demo");
- expect(url.searchParams.get("mode")).toBe("guest");
+ 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("ships syntactically valid browser code with no dynamic HTML sink", () => {
@@ -43,10 +39,4 @@ describe("MSO Surface trusted app catalog", () => {
expect(MSO_SURFACE_SCRIPT).not.toContain("document.write");
expect(MSO_SURFACE_SCRIPT).toContain("url.origin!==safe.origin");
});
-
- it("preserves anti-framing apps as remote surfaces", () => {
- const baton = resolveSurfaceRoute("/apps/baton");
- expect(baton.app).toMatchObject({ id: "baton", renderer: "remote", origin: "https://baton.rahmanef.com" });
- expect(baton.openPath).toBe("/browser");
- });
});
diff --git a/lib/mcp/surface-catalog.ts b/lib/mcp/surface-catalog.ts
index 23ec2241..9c8d9935 100644
--- a/lib/mcp/surface-catalog.ts
+++ b/lib/mcp/surface-catalog.ts
@@ -19,34 +19,14 @@ export type SurfaceApp = {
// having their X-Frame-Options/frame-ancestors stripped by MSO.
export const SURFACE_APPS: readonly SurfaceApp[] = [
{
- id: "antinrml-builder",
- title: "AntiNRML Builder",
- description: "Live AntiNRML builder demo rendered directly inside the ChatGPT MSO Surface.",
- origin: "https://builder-game.antinrml.com",
- startPath: "/",
- renderer: "iframe",
- presentation: "fullscreen",
- sandbox: "allow-scripts allow-same-origin allow-forms allow-pointer-lock",
- },
- {
- id: "baton",
- title: "Baton",
- description: "Baton app demo. Its production origin currently denies framing, so MSO keeps it on the remote-browser path.",
- origin: "https://baton.rahmanef.com",
- startPath: "/os?view=home",
- renderer: "remote",
- presentation: "fullscreen",
- reason: "The app sends X-Frame-Options: DENY; MSO does not strip application frame protections.",
- },
- {
- id: "antinrml-game",
- title: "AntiNRML Game",
- description: "AntiNRML game surface. The current deployment permits only same-origin framing, so it uses the remote-browser seam.",
+ 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.",
origin: "https://game.rahmanef.com",
startPath: "/",
renderer: "remote",
- presentation: "pip",
- reason: "The app CSP currently declares frame-ancestors 'self'.",
+ presentation: "fullscreen",
+ reason: "The app CSP currently declares frame-ancestors 'self'; MSO does not strip project frame protections.",
},
] as const;
diff --git a/lib/mcp/tools-surface.test.ts b/lib/mcp/tools-surface.test.ts
index afed429a..e9647194 100644
--- a/lib/mcp/tools-surface.test.ts
+++ b/lib/mcp/tools-surface.test.ts
@@ -10,17 +10,18 @@ const tool = (name: string) => {
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(["antinrml-builder", "baton", "antinrml-game"]);
+ 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(JSON.stringify(result)).not.toContain("sandbox");
expect(JSON.stringify(result)).not.toContain("<script");
});
- it("renders a direct app without accepting a URL argument", async () => {
+ it("renders the VPSKU Play Together target without accepting a URL argument", async () => {
const render = tool("render_mso_surface");
expect(render.inputSchema.properties).not.toHaveProperty("url");
expect(render.inputSchema.properties).not.toHaveProperty("html");
- const result = await render.run({ route: "/apps/antinrml-builder" }, { scope: "read" }) as { app?: Record<string, unknown> };
- expect(result.app).toMatchObject({ id: "antinrml-builder", renderer: "iframe", origin: "https://builder-game.antinrml.com" });
+ 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).not.toHaveProperty("sandbox");
});
diff --git a/lib/mcp/tools-surface.ts b/lib/mcp/tools-surface.ts
index 0cb714ad..1fecbb93 100644
--- a/lib/mcp/tools-surface.ts
+++ b/lib/mcp/tools-surface.ts
@@ -46,7 +46,7 @@ export const SURFACE_TOOLS: McpTool[] = [
name: "render_mso_surface",
title: "Render MSO Surface",
description: "Render the universal MSO Surface MCP App. Use an MSO-style route such as /, /monitor, /project, /diff, /browser, or /apps/<reviewed-app-id>. For project/diff views pass project separately. This tool never accepts raw HTML or arbitrary external URLs; demo origins are resolved only from the server-owned allowlist.",
- chatgptDescription: "Render a secure interactive MSO Surface in ChatGPT. Route examples: /, /monitor, /project, /diff, /browser, /apps/antinrml-builder. No arbitrary HTML/URL input is accepted.",
+ chatgptDescription: "Render a secure interactive MSO Surface in ChatGPT. Route examples: /, /monitor, /project, /diff, /browser, /apps/play-together. No arbitrary HTML/URL input is accepted.",
scope: "read", annotations: READ_ONLY,
inputSchema: S({
route: { type: "string", minLength: 1, maxLength: 1024, description: "MSO Surface route. External URLs are rejected." },
diff --git a/lib/mcp/toolset.ts b/lib/mcp/toolset.ts
index bf9d0a06..1e3528bd 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.0";
-export const MCP_TOOLSET_VERSION = "2026.09.04.1";
-export const MCP_TOOLSET_CHANGED_AT = "2026-09-03T17:55:43Z";
+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 type McpToolsetInfo = {
serverVersion: string;
diff --git a/lib/mcp/ui-resources.test.ts b/lib/mcp/ui-resources.test.ts
index 8f495755..419e0b15 100644
--- a/lib/mcp/ui-resources.test.ts
+++ b/lib/mcp/ui-resources.test.ts
@@ -156,8 +156,7 @@ describe("MCP Apps workflow progress UI", () => {
expect(content.text).toContain("requestDisplayMode");
expect(content.text).toContain("setWidgetState");
expect(content.text).toContain("render_mso_surface");
- expect(content.text).toContain("https://builder-game.antinrml.com");
- expect(content.text).toContain("https://baton.rahmanef.com");
+ expect(content.text).toContain("https://game.rahmanef.com");
expect(content.text).not.toContain("fetch(");
expect(content.text).not.toContain("allow-popups");
expect(content.text).not.toContain("allow-top-navigation");
@@ -165,15 +164,14 @@ describe("MCP Apps workflow progress UI", () => {
expect(content._meta.ui.csp).toMatchObject({
connectDomains: [],
resourceDomains: [],
- frameDomains: ["https://builder-game.antinrml.com"],
});
+ expect(content._meta.ui.csp).not.toHaveProperty("frameDomains");
expect(content._meta["openai/widgetCSP"]).toMatchObject({
connect_domains: [],
resource_domains: [],
- frame_domains: ["https://builder-game.antinrml.com"],
});
- expect(content._meta.ui.csp.frameDomains).not.toContain("https://baton.rahmanef.com");
- expect(MSO_SURFACE_URI).toContain("surface-v1.html");
+ expect(content._meta["openai/widgetCSP"]).not.toHaveProperty("frame_domains");
+ expect(MSO_SURFACE_URI).toContain("surface-v2.html");
});
it("gives every MCP App a visible contextual MSO destination", () => {
diff --git a/lib/mcp/ui-surface.ts b/lib/mcp/ui-surface.ts
index 786b9a2e..c1a329e5 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-v1.html";
+export const MSO_SURFACE_URI = "ui://mso/surface-v2.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 reviewed live app demos inside ChatGPT.",
+ description: "Universal secure MSO presentation target for native operator views and 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 reviewed app demos. Nested frames are exact-origin allowlisted; arbitrary HTML and URLs are never accepted from the model.",
+ "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.",
{ frameDomains: surfaceFrameDomains() },
),
} as const;