Skip to content

Commit 4010d7b

Browse files
committed
format
1 parent 1e14420 commit 4010d7b

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

docs/migrate_from_openai_apps.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)