Skip to content

0.0.3: The board as a static site and its own MCP provider

Choose a tag to compare

@llblab llblab released this 13 Nov 19:23
· 179 commits to main since this release
  • The board runs as a static site that is its own MCP provider. scripts/pages-build.mjs builds the GitHub Pages set: the real board client with a bundled browser host that opens the canonical landing project in the visitor's browser, keeps the visitor's copy in IndexedDB until the publication changes, and exposes read_divlet, patch_divlet, edit_divlet, frame_divlet, undo_divlet and mark_divlet through the page's MCP provider (and WebMCP when a browser offers it). A first visit reads the landing expanded at the window's width, with live updates, one step from the board. Native-only affordances (opening files, save-as, build output, image/font upload, the board conversation) are absent there; Copy/Download HTML and "Download project file" run in the page. The Pages workflow tests the built set in Chromium and publishes it only when its fingerprint changes. Deployed to GitHub Pages; all five packages published and verified through the CI/OIDC release.
  • divlet-mcp --connect <url> connects any MCP host to such a website: the site opens in a managed, isolated Chromium and its tools run in the page. Both MCP eras are answered on stdio; website descriptions are marked as website text, annotations are dropped, results are reduced to text and JSON, cross-origin redirects are refused and a reloaded page is reconnected explicitly.
  • Reusable browser MCP layers. @divlet/web/mcp (one tool registry with bounded JSON Schema validation, an MCP 2026-07-28 browser provider with a versioned page endpoint, optional WebMCP registration) and @divlet/core/browser-mcp (the agent-side transport, also as an SDK-shaped Transport). The official MCP TypeScript SDK client interoperates with both.
  • A browser-local project writer. BrowserRuntime runs the shared contract tools over the shared kernel; shared vectors require identical models, pages, refusals, history and serialized projects to the Node runtime. project, codec, diff, ops, frame preparation, acceptance rules and the tool list no longer reach Node built-ins; embedded asset decoding refuses explicitly in browser builds.
  • Breadcrumbs keep the selected artboard visible as the current crumb, followed by › and a root step into its root element, instead of folding the path to a lone icon.
  • The board reaches its host through writer, preview, export and component ports; a complete alternative composition can replace the native HTTP routes without fallback.