Install the Packages
The Char React integration uses two packages: the core agent and the React WebMCP hook.
Install via npm
Run this command in the terminal:
npm install @mcp-b/char @mcp-b/react-webmcp zodThis installs:
@mcp-b/char— The<Char>React component@mcp-b/react-webmcp— TheuseWebMCPhook for toolszod— Type-safe schema validation
What’s in each package?
| Package | Purpose |
|---|---|
@mcp-b/char | <Char /> component + TypeScript types |
@mcp-b/react-webmcp | useWebMCP() hook for registering tools |
zod | Schema definitions with TypeScript inference |
Verify installation
Check your package.json includes all three dependencies.
Click Solve if you need help.
Files
Preparing Environment
No preview to run nor steps to show