/mountly-mcp:convert-web-appfrom mountly-mcp
Turn an existing React, Vue, or Svelte component or web app into an MCP Apps View with Mountly. Use when the user asks to wrap existing UI as an MCP App, convert a SPA or iframe embed to MCP Apps, or reuse a website component as a View.
Ships in mountly-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Keep the component's public props unchanged. Mountly supplies tool data through hooks/composables (or Svelte props). Do not rename props to match MCP.
App lifecycle by handstructuredContent.import { createMcpView, useToolResult } from "mountly-mcp/react";
import { PaymentCard } from "./PaymentCard"; // existing website component
function PaymentView() {
const result = useToolResult<{ structuredContent?: PaymentData }>();
const data = result?.structuredContent;
if (!data) return null;
return <PaymentCard data={data} />;
}
createMcpView(PaymentView);
mountlyMcpViews({ apps: [...] }). URI must be ui://….registerMcpApps linking a tool's resourceUri to that View (before connect).useHostStyles().PaymentCard directly. Only the MCP entry uses createMcpView.npx mountly-mcp doctor lists, as warn lines with file:line, the web-app habits
that break inside a host's sandboxed iframe. Fix each one in the View path:
| Warning | Fix |
|---|---|
sandbox/storage | try/catch every localStorage/sessionStorage access, or keep the state in memory |
sandbox/router | render the page component, or use a MemoryRouter |
sandbox/download | useDownload() from mountly-mcp/react (or downloadFile(app, file)) |
sandbox/worker | start it as new Worker(new URL("./w.ts", import.meta.url)), which the build inlines |
sandbox/relative-fetch | move the /api call into an app-only server tool and call it with callServerTool |
sandbox/hostname | pass configuration in through the tool result |
sandbox/remote-import | install and bundle the package, or declare it in csp.resourceDomains |
sandbox/window-open | app.openLink({ url }) |
Heavy work (parsing large files, batch API calls) belongs in a server tool. The
View reviews the result. On Cloudflare, build with module: true and register
the exported Views (see production-integration).
npx mountly-mcp build
npx mountly-mcp verify --render
npx mountly-mcp dev --server ./server.mjs
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jagreehal/mountly --plugin mountly-mcp4 skills in this plugin
/add-app-to-serverAdd UI to an existing MCP server, add an MCP Apps View to a tool, enrich MCP tools with interactive UI, or install MCP Apps without rewriting transport or auth. Use Mountly (mountly-mcp) as the View layer. Do not rewrite the server with raw ext-apps View HTML.
/create-mcp-appCreate an MCP App, MCP Apps View, interactive MCP UI, or scaffold a greenfield Mountly MCP Apps project. Use when the user says create an MCP App, scaffold an MCP App, build an interactive MCP View, add a UI to an MCP tool, or MCP Apps quickstart. Prefer mountly-mcp create over cloning repos or raw @modelcontextprotocol/ext-apps for Views.
/migrate-ext-apps