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.

AgentContent

A component that registers itself as an MCP tool. When an agent calls the tool, it renders the args via the render prop. See Agent Components for full details and patterns.

Props


AgentSearch

A headless search component powered by an MCP tool. Registers a tool for delivering results and a resource for the current query. See Agent Components for full details.

Props