The FrontMCP UI packages provide a platform-aware HTML component system designed for LLM surfaces. They render complete markup (no React runtime required) and ship a Tailwind v4 theme system, page templates, and OpenAI App widgets so you can style consent screens, troubleshooting pages, or CodeCall dashboards inside any MCP server.Documentation Index
Fetch the complete documentation index at: https://docs.agentfront.dev/llms.txt
Use this file to discover all available pages before exploring further.
Package responsibilities:
@frontmcp/uiprovides HTML components (/components), layouts (/layouts), widgets (/widgets), and React components (/react)@frontmcp/uipackprovides theming (/theme), page templates (/pages), and build utilities
Why use the UI packages
- Pure HTML output – Components return strings so you can stream them directly through MCP resources, auth flows, or ngrok tunnels.
- Platform detection – Helpers detect OpenAI, Claude, Gemini, and local browsers so you can inline scripts when networks are blocked.
- Theme system – Ship the default GitHub/OpenAI skin or mint your own palette, typography, and CDN URLs.
- Zod validation – Each component validates props at runtime and renders helpful error boxes instead of crashing.
Install
Compose a page layout
Wrap content withbaseLayout, then mix components such as card and button. Everything resolves to HTML strings you can hand to an MCP resource or auth callback.
html as the body of an MCP resource, OAuth consent page, or even an email.
Theme and platform detection
UsecreateTheme to adjust palettes, typography, and CDN endpoints. Then decide whether to inline scripts (Claude Artifacts) or load from the network (OpenAI, Gemini).
Page templates out of the box
Need a consent or error page fast? Use the prebuilt templates so every auth flow looks consistent.Validation and debugging
Components validate input with Zod. When something is wrong, the library renders a compact error box that lists the component name and the failed property—perfect for catching mistakes before you ship.Widgets and next steps
The@frontmcp/ui/widgets module exposes OpenAI App SDK components (resource pickers, action lists) plus status badges, progress indicators, and table helpers. Pair this guide with the CodeCall CRM demo to see the library inside a full orchestration workflow, or expose the HTML through an MCP resource for your own consent flows.
Next Steps
CodeCall CRM Demo
See UI in a complete application
Building Tool UI
Use UI components in tool templates
Tools Reference
Full @Tool decorator documentation
Resources Reference
Expose HTML through MCP resources