Agent skill · Frontend

mcp-host-styling-integration

Integrates MCP App UI with host theming system. Applies host CSS variables, handles onhostcontextchanged, safe area insets, display mode detection, and fullscreen configuration.

a5c-aigithub.com/a5c-aiGitHub ↗
claude-codecodexcan modify filesMIT
Install
npx skills add a5c-ai/babysitter --skill mcp-host-styling-integration --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 10 KB
Bundled scripts: none
Allowed tools: ReadWriteEdit
Path: library/specializations/ai-agents-conversational/skills/mcp-host-styling-integration/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,642
Language: JavaScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# mcp-host-styling-integration Integrate MCP App UIs with the host application's theming system so apps look native in Claude Desktop, ChatGPT, VS Code, Goose, Postman, and other MCP-enabled hosts. ## Overview MCP Apps render in sandboxed iframes inside host applications. Each host has its own visual theme (colors, fonts, border radii, spacing). The MCP Apps SDK provides: - **CSS variables** (`--color-*`, `--font-*`, `--border-radius-*`) injected by the host - **SDK helpers** (`applyDocumentTheme`, `applyHostStyleVariables`, `applyHostFonts`) to apply them - **React hooks** (`useHostStyles`, `useHostStyleVariables`, `useHostFonts`) for React apps - **`onhostcontextchanged` event** fired when theme changes (e.g., dark mode toggle) The key principle is: always use CSS variable fallbacks so the app looks correct both as an MCP App (host provides variables) and standalone (fallback values apply). ## Capabilities ### Host CSS Variable Integration - Apply all host CSS variables with sensible fallback values - Support color variables: `--color-background-primary`, `--color-background-secondary`, `--color-text-primary`, `--color-text-secondary`, `--color-border-primary` - Support font vari

What's inside
Steps it walks through
  1. Overview
  2. Capabilities
  3. Host CSS Variable Integration
  4. onhostcontextchanged Handler
  5. Safe Area Insets
  6. Display Mode Detection
  7. SDK Helper Functions
  8. React Hook Integration
  9. Usage
  10. Vanilla JS: Full Host Styling
  11. React: useHostStyles Hook
  12. CSS with Fallback Values
  13. Available Host CSS Variables
  14. Hybrid App Styling (MCP + Standalone)
Ships with 1 file
  • README.md
More from babysitter
All skills →
About this skill
What does the mcp-host-styling-integration skill do?

Integrates MCP App UI with host theming system. Applies host CSS variables, handles onhostcontextchanged, safe area insets, display mode detection, and fullscreen configuration.

How do I install it?

Run `npx skills add a5c-ai/babysitter --skill mcp-host-styling-integration --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going