Overview
Hosts may provide custom font CSS viaMcpUiHostContext.styles.css.fonts. This CSS can contain @font-face rules, @import statements, or both. Use applyHostFonts to inject it as a <style> tag.
Apply host-provided custom fonts in MCP Apps using applyHostFonts. Inject @font-face rules, Google Fonts, and custom typography from ChatGPT, Claude, and other hosts.
McpUiHostContext.styles.css.fonts. This CSS can contain @font-face rules, @import statements, or both. Use applyHostFonts to inject it as a <style> tag.