Development preview plug for MCP App resources.
Lists registered MCP Apps and interact with them in the browser.


Usage
Mount in your router during development
Phoenix Router
if Mix.env() == :dev do
forward "/dev/mcp-apps", Phantom.App.Preview,
router: MyApp.MCPRouter
endPlug Router
if Mix.env() == :dev do
forward "/dev/mcp-apps",
to: Phantom.App.Preview,
init_opts: [router: MyApp.MCPRouter]
endThen visit /mcp-apps to see a list of registered apps, and click
one to render it in a sandboxed iframe that simulates how MCP hosts
display apps.
Development only
This plug is intended for development use only. Do not mount it in production as it renders app content without authentication.