This module provides React hooks and utilities for easily building
interactive MCP Apps using React. This is optional - the core SDK
(App, PostMessageTransport) is framework-agnostic and can be
used with any UI framework or vanilla JavaScript.
Main Exports
useApp - React hook to create and connect an MCP App
useAutoResize - React hook for manual auto-resize control (rarely needed)
React utilities for building MCP Apps.
This module provides React hooks and utilities for easily building interactive MCP Apps using React. This is optional - the core SDK (App, PostMessageTransport) is framework-agnostic and can be used with any UI framework or vanilla JavaScript.
Main Exports
Example: Basic React App