From 9d8b70559867305e839a38bf0e5544320fa010f3 Mon Sep 17 00:00:00 2001 From: Anton Pidkuiko <105124934+antonpk1@users.noreply.github.com> Date: Mon, 1 Dec 2025 20:31:08 +0000 Subject: [PATCH] fix: remove "system" from theme options (#40) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Co-authored-by: Olivier Chafik --- specification/draft/apps.mdx | 2 +- src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/draft/apps.mdx b/specification/draft/apps.mdx index cee96f0..0970d1a 100644 --- a/specification/draft/apps.mdx +++ b/specification/draft/apps.mdx @@ -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 */ diff --git a/src/types.ts b/src/types.ts index c786493..d0153c0 100644 --- a/src/types.ts +++ b/src/types.ts @@ -501,7 +501,7 @@ export const McpUiHostContextSchema: z.ZodType = 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