fix: remove "system" from theme options (#40)

The host should resolve "system" to either "light" or "dark" before
passing the theme to the app. Apps only need to know the actual
resolved theme value.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Olivier Chafik <ochafik@anthropic.com>
This commit is contained in:
Anton Pidkuiko 2025-12-01 20:31:08 +00:00 • committed by GitHub
commit 9d8b705598
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -399,7 +399,7 @@ interface HostContext {
tool: Tool,
};
/** Current color theme preference */
theme?: "light" | "dark" | "system";
theme?: "light" | "dark";
/** How the UI is currently displayed */
displayMode?: "inline" | "fullscreen" | "pip";
/** Display modes the host supports */

View file

@ -501,7 +501,7 @@ export const McpUiHostContextSchema: z.ZodType<McpUiHostContext> = z.object({
tool: ToolSchema,
})
.optional(),
theme: z.enum(["light", "dark", "system"]).optional(),
theme: z.enum(["light", "dark"]).optional(),
displayMode: z.enum(["inline", "fullscreen", "pip"]).optional(),
availableDisplayModes: z.array(z.string()).optional(),
viewport: z