@interopio/workspace-widget
v1.0.0
Published
Self-contained HTML widget for previewing/building io.Connect workspace layouts, consumed by @interopio/mcp-core as an MCP UI Apps resource.
Readme
@interopio/workspace-widget
Self-contained HTML widget for previewing/building io.Connect workspace layouts. Published as a
standalone package so it can be versioned and rebuilt independently of @interopio/mcp-core.
Usage
import { getHTML } from "@interopio/workspace-widget";
const html = await getHTML(); // self-contained HTML5 document string@interopio/mcp-core consumes this package as the default resource for its built-in
workspace-widget MCP UI Apps resource, and it can be served as a static file (e.g. via
app-dist/index.html) and loaded through fetch instead, using the same
resource: () => string | Promise<string> contract as any other MCP App resource:
resource: async () => (await fetch("http://localhost:4101/index.html")).text();