@@ -12,12 +12,12 @@ This guide helps you migrate from the OpenAI Apps SDK (`window.openai.*`) to the
1212
1313## Setup & Connection
1414
15- | OpenAI | MCP Apps | Notes |
16- | -------------------------------- | -------------------------------------------------- | ------------------------------------------------------ |
17- | ` window.openai ` (auto-available) | ` const app = new App({name, version}, {}) ` | MCP requires explicit instantiation |
18- | (implicit) | ` await app.connect() ` | MCP requires async connection; auto-detects OpenAI env |
15+ | OpenAI | MCP Apps | Notes |
16+ | -------------------------------- | -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
17+ | ` window.openai ` (auto-available) | ` const app = new App({name, version}, {}) ` | MCP requires explicit instantiation |
18+ | (implicit) | ` await app.connect() ` | MCP requires async connection; auto-detects OpenAI env |
1919| — | ` await app.connect(new OpenAITransport()) ` | Force OpenAI mode (not yet available, see [ PR #172 ] ( https://github.com/modelcontextprotocol/ext-apps/pull/172 ) ) |
20- | — | ` await app.connect(new PostMessageTransport(...)) ` | Force MCP mode explicitly |
20+ | — | ` await app.connect(new PostMessageTransport(...)) ` | Force MCP mode explicitly |
2121
2222## Host Context Properties
2323
@@ -76,9 +76,9 @@ This guide helps you migrate from the OpenAI Apps SDK (`window.openai.*`) to the
7676
7777## State Persistence
7878
79- | OpenAI | MCP Apps | Notes |
80- | ------------------------------------- | -------- | ----------------------------------------------- |
81- | ` window.openai.widgetState ` | — | Not directly available in MCP |
79+ | OpenAI | MCP Apps | Notes |
80+ | ------------------------------------- | -------- | -------------------------------------------------------------------- |
81+ | ` window.openai.widgetState ` | — | Not directly available in MCP |
8282| ` window.openai.setWidgetState(state) ` | — | Use alternative mechanisms (` localStorage ` , server-side state, etc.) |
8383
8484## File Operations (Not Yet in MCP Apps)
0 commit comments