Skip to main content
@frontmcp/react includes headless UI components that auto-generate forms from MCP tool/prompt schemas and display results. They render unstyled by default and support custom renderers.

ToolForm

Generates a form from a tool’s inputSchema.

Props

Custom Field Rendering

FieldRenderProps


PromptForm

Generates a form from a prompt’s arguments array.

Props


ResourceViewer

Displays the contents of a ReadResourceResult.

Props

JSON content (application/json mimeType) is automatically pretty-printed in a <pre> block.

OutputDisplay

Renders any tool/prompt output as formatted JSON or plain text.

Props


DynamicRenderer

Recursively renders a ComponentNode tree using the ComponentRegistry.

Resolution Order

  1. Exact URI match in registry
  2. component://{type} in registry
  3. element://{type} in registry
  4. Fallback component (or <div>)

ComponentRegistry

Maps URI protocols to React components. Used by DynamicRenderer and populated via the provider’s components prop.

Deprecated: AgentContent and AgentSearch

These components are deprecated. Use mcpComponent() instead — see Agent Components for full details, props, and migration.