Expand description
MCP Apps Extension - UI Communication Protocol Types
This module implements the complete MCP Apps Extension (SEP-1865) protocol for bidirectional communication between UI iframes and MCP hosts.
Structs§
- Device
Capabilities - Device capabilities
- Tool
Context - Tool context provided to UI
- UiCapabilities
- UI capabilities
- UiHost
Capabilities - Host capabilities exposed to UI
- UiHost
Info - Host information
- UiInfo
- UI client information
- UiInitialize
Params - UI initialization request parameters
- UiInitialize
Result - UI initialization result (host context)
- UiInitialized
Notification - UI initialized notification (sent after ui/initialize completes)
- UiNotification
Message - UI notification message types
- Viewport
- Viewport dimensions
Enums§
- Display
Mode - Display mode for UI rendering
- Platform
Type - Platform type
- Sandbox
Proxy Message - Sandbox proxy messages (for web hosts)
- Theme
Preference - Theme preference for UI rendering