Skip to main content

MCP Components

React components designed for seamless integration with MCP tools. Each component provides built-in loading states, error handling, and host theming support.

ToolButton

Button that executes an MCP tool on click with optional confirmation, loading states, and result display.

Basic Usage

With Result Display

With Confirmation Dialog

Props Reference


ToolDataGrid

Data grid with server-side pagination, sorting, and row actions - all powered by MCP tools.

Basic Usage

With Row Actions

Props Reference

Column Definition


ToolForm

Form component that submits data to an MCP tool with built-in field types and validation.

Basic Usage

Field Types

Props Reference


ToolSelect

Select component that can fetch options from a tool and/or trigger a tool on selection.

Fetch Options from Tool

Call Tool on Selection

Props Reference


ToolInput

Text input with debounced tool calls for search/autocomplete scenarios.

ResourceView

Display an MCP resource with auto-refresh support.

Utility Components

RequireConnection

Guard wrapper that shows loading/error states until MCP connection is established.

ToolErrorBoundary

Error boundary with retry functionality for tool-related errors.

StreamingContent

Render streaming/partial tool data as it arrives.