You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MCP Apps introduces additional JSON-RPC methods for UI-specific functionality:
@@ -1050,6 +1105,24 @@ This proposal synthesizes feedback from the UI CWG and MCP-UI community, host im
1050
1105
-**Include external URLs in MVP:** This is one of the easiest content types for servers to adopt, as it's possible to embed regular apps. However, it was deferred due to concerns around model visibility, inability to screenshot content, and review process.
1051
1106
-**Support multiple content types:** Deferred to maintain a lean MVP.
1052
1107
1108
+
#### 4. Host Theming via CSS Variables
1109
+
1110
+
**Decision:** Provide a standardized set of CSS custom properties for visual cohesion.
1111
+
1112
+
**Rationale:**
1113
+
1114
+
- CSS variables are universal, framework-agnostic, and require no runtime
1115
+
- Apps apply styles via `var(--name)` with fallbacks for graceful degradation
1116
+
- Limited variable set (colors, typography, borders) ensures hosts can realistically provide all values
1117
+
- Spacing intentionally excluded—layouts break when spacing varies from original design
1118
+
- No UI component library—no single library works across all host environments
1119
+
1120
+
**Alternatives considered:**
1121
+
1122
+
-**Full design system:** Rejected as too prescriptive; hosts have different aesthetics
1123
+
-**Inline styles in tool results:** Rejected; separating theming from data enables caching and updates
1124
+
-**CSS-in-JS injection:** Rejected; framework-specific and security concerns with injected code
1125
+
1053
1126
### Backward Compatibility
1054
1127
1055
1128
The proposal builds on the existing core protocol. There are no incompatibilities.
0 commit comments