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:
@@ -1046,6 +1101,24 @@ This proposal synthesizes feedback from the UI CWG and MCP-UI community, host im
1046
1101
-**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.
1047
1102
-**Support multiple content types:** Deferred to maintain a lean MVP.
1048
1103
1104
+
#### 4. Host Theming via CSS Variables
1105
+
1106
+
**Decision:** Provide a standardized set of CSS custom properties for visual cohesion.
1107
+
1108
+
**Rationale:**
1109
+
1110
+
- CSS variables are universal, framework-agnostic, and require no runtime
1111
+
- Apps apply styles via `var(--name)` with fallbacks for graceful degradation
1112
+
- Limited variable set (colors, typography, borders) ensures hosts can realistically provide all values
1113
+
- Spacing intentionally excluded—layouts break when spacing varies from original design
1114
+
- No UI component library—no single library works across all host environments
1115
+
1116
+
**Alternatives considered:**
1117
+
1118
+
-**Full design system:** Rejected as too prescriptive; hosts have different aesthetics
1119
+
-**Inline styles in tool results:** Rejected; separating theming from data enables caching and updates
1120
+
-**CSS-in-JS injection:** Rejected; framework-specific and security concerns with injected code
1121
+
1049
1122
### Backward Compatibility
1050
1123
1051
1124
The proposal builds on the existing core protocol. There are no incompatibilities.
0 commit comments