Skip to main content
An MCP App pairs a tool with a React view. Views live under views/<name>/view.tsx; the bound tool declares view: { name } and an outputSchema.
The matching views/product/view.tsx reads the request lifecycle and typed result with useToolContext():
Use focused hooks such as useHostContext, useCallTool, useViewState, useDisplayMode, and useSendFollowUp when the view needs host data or actions. See Build views, Interactivity, and Content security policy.