/mountly-mcp:add-app-to-serverfrom mountly-mcp
Add 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.
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 user's transport, auth, prompts, and ordinary tools. Mountly only
installs Views + UI-linked tools via registerMcpApps before connect.
server.tool() registrations wholesaleui:// HTML / postMessage protocolserver.connect(...) before registerMcpAppscreateMcpView(...).mountlyMcpViews({ apps: [{ entry, uri, name, … }] }). URI must start with ui://.npx mountly-mcp build → dist/mountly-mcp.manifest.json.import { readMcpAppManifest } from "mountly-mcp/artifact";
import { registerMcpApps } from "mountly-mcp/server";
// existing McpServer instance, BEFORE server.connect(...)
const { artifacts } = await readMcpAppManifest("dist/mountly-mcp.manifest.json");
await registerMcpApps(server, {
views: artifacts.map((artifact) => ({ artifact })),
tools: [
{
name: "existing_or_new_tool",
resourceUri: "ui://my-server/dashboard",
config: {
description: "…",
inputSchema: {
/* Zod or JSON Schema the server already uses */
},
},
handler: async (args) => ({
structuredContent: /* same payload the View reads via useToolResult */,
}),
},
{
name: "refresh_from_view",
resourceUri: "ui://my-server/dashboard",
visibility: ["app"],
config: { description: "App-only refresh" },
handler: async () => ({ structuredContent: {} }),
},
],
});
server.tool(...).npx mountly-mcp dev --server ./path-to-factory.mjs --app <name>npx mountly-mcp verify --strict (CI: add --render).const result = useToolResult<{ structuredContent?: MyData }>();
const data = result?.structuredContent; // React; Vue: result.value?.structuredContent
App-initiated calls: useMcpApp().callServerTool({ name, arguments }).
A Worker has no filesystem. Build with mountlyMcpViews({ module: true, apps }),
then register the Views it exports:
import views from "./dist/mountly-mcp.views.js";
await registerMcpApps(server, { views: views.map((artifact) => ({ artifact })), tools });
mountly-mcp/server resolves to its Workers build on its own (workerd
condition), so you need no nodejs_compat. Use the SDK's
WebStandardStreamableHTTPServerTransport.
pnpm add @openai/mcp-extensions
openaiUi: { preferredDisplayMode, availableDisplayModes }_meta: { ...openaiUiToolMeta({ entrypoints: [{ type: "global" }] }) } from mountly-mcp/openai/serverglobal (sidebar, optional quickAction), thread (conversation panel), file (viewer for extensions; parse input with OpenAIFileEntrypointInputSchema), settingsimport { useOpenAIExtensions } from "mountly-mcp/react/openai"/mcp, ChatGPT Developer mode connectorUse for "notify me when X happens". Needs an MCP 2.0 server (@modelcontextprotocol/server v2):
defineEvents({ events: { name: { input, payload } }, store, authorize }) from mountly-mcp/eventsserver.server.registerCapabilities({ events: {} }), then route events/list, events/subscribe, events/unsubscribe to the returned handlersevents.emit(name, data, (args) => matches) when the change happensReference: docs/examples/mcp-chatgpt-plugin/events-server.mjs.
If there is no server yet, use the create-mcp-app skill / npx mountly-mcp create.
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
/convert-web-appTurn 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.
/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-appsMigrate from @modelcontextprotocol/ext-apps templates, basic-server-react, useApp, or official MCP Apps SDK examples to mountly-mcp while keeping the protocol SDK underneath.