Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions specification/2026-01-26/apps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,13 @@ function onNotification(method: string, handler: (params: any) => void) {
}


const initializeResult = await sendRequest("initialize", {
capabilities: {},
clientInfo: {name: "My UI", version: "1.0.0"},
// The View <-> Host handshake is `ui/initialize` (not MCP's `initialize`)
const initializeResult = await sendRequest("ui/initialize", {
appCapabilities: {availableDisplayModes: ["inline"]},
appInfo: {name: "My UI", version: "1.0.0"},
protocolVersion: "2026-01-26",
});
sendNotification("ui/notifications/initialized", {});
```

Hosts act as MCP servers (that can proxy the actual MCP server), receiving and handling requests from UI iframes.
Expand Down
8 changes: 5 additions & 3 deletions specification/draft/apps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,13 @@ function onNotification(method: string, handler: (params: any) => void) {
}


const initializeResult = await sendRequest("initialize", {
capabilities: {},
clientInfo: {name: "My UI", version: "1.0.0"},
// The View <-> Host handshake is `ui/initialize` (not MCP's `initialize`)
const initializeResult = await sendRequest("ui/initialize", {
appCapabilities: {availableDisplayModes: ["inline"]},
appInfo: {name: "My UI", version: "1.0.0"},
protocolVersion: "2025-06-18",
});
sendNotification("ui/notifications/initialized", {});
```

Hosts act as MCP servers (that can proxy the actual MCP server), receiving and handling requests from UI iframes.
Expand Down