alepha@docs:~/framework/docs/packages/alepha/mcp$
cat view.md | pretty1 min read
Last commit:
#Alepha - Mcp View
#Installation
Part of the alepha package. Import from alepha/mcp/view.
npm install alepha
#Overview
The browser side of an MCP Apps view: what a $tool({ ui: { view } })
component runs inside the host's iframe.
Features:
useMcpApp(): the tool's input and result as the host sends them, the host's theme, andcallTool,openLink,sendMessageMcpAppBridge: thepostMessageJSON-RPC ofio.modelcontextprotocol/ui(2026-01-26), usable without ReactMcpView.mount: the entryalepha buildandalepha devgenerate for each view; follows the host's theme on<html>and reports the view's size
#API Reference
#React Hooks
useMcpApp- The MCP Apps call this view shows: the tool's input and result as the host