Skip to content

Add the PixelDoll desktop preview and local MCP integration - #14

Draft
Shilo wants to merge 130 commits into
mainfrom
feat/desktop-mcp
Draft

Shilo wants to merge 130 commits into
mainfrom
feat/desktop-mcp

Conversation

@Shilo

@Shilo Shilo commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Blocked: new logos and icons (card 282788363)

Keep this PR in draft. Merge, production desktop downloads, and release links for installers are blocked until the new logos and icons ship across web, PWA, and desktop. Private testing can continue. Logo and icon card

Summary

Add a Windows desktop preview of PixelDoll with a built-in local MCP server. With AI access enabled, AI clients can launch Studio in the background, discover its live tool catalog, and work with the same desktop library and generation queue. Desktop loads https://pixeldoll.app/, the same Studio build as the browser and PWA. Only a native window loads the Desktop tools and caches them for offline use. The trusted AI apps settings window stays bundled. WebMCP remains a separate opt-in build.

The branch retains Studio’s Try On, library, and export workflows and exposes the shared paths through MCP. The standalone Release now workflow is tracked in PR #15.

What changes

Area Behavior
Desktop lifecycle Tauri 2 packages the native shell, trusted AI settings window, and sibling pixeldoll-mcp.exe. Studio loads from the site. Discovery can launch Studio in a hidden window when access is on. Multiple clients use the same Studio and library.
AI apps An explicit access switch grants or revokes local MCP access. Per-app Add and Remove edit only the selected client’s setup. Manual setup opens inline, and switching access off keeps configurations and revokes active sessions and budgets.
Library and evidence Agents can browse, open, copy, inspect, dress, recolor, undo or redo, and fetch paged frame and item PNG evidence.
Import and transfer Tools browse or import PixelLab characters, verify a PixelLab link against saved artwork, import a user-selected character ZIP, and open Studio review for item, Move, or State ZIP imports.
Generation and review Agents can quote and request a capped session budget, start generation, poll receipts, and review exact item and Move candidates. Try On adds free shared-item previews and adoption plus budgeted generated previews and finishes.
Export and sharing Tools prepare editable or engine-specific character ZIPs, item and clip ZIPs, and PNG or GIF Share files. Confirmed saves report success after the selected file's write closes. Publishing uses an existing folder link and stops on conflicting external edits.
Backup and restore A user can export a private library ZIP or preview a selected backup. Restore consumes an exact, expiring plan for the same session and adds new copies while preserving existing characters.
Installer and CI The installer defaults to an in-place upgrade that preserves registrations and consent. The Windows workflow builds the isolated desktop pair and runs native and WebView2 MCP tests.

All 46 tools and client setup · Desktop architecture · Windows CI workflow

Data, consent, and spending

  • IndexedDB in the desktop webview profile holds the library. The optional remembered PixelLab key uses localStorage. ZIPs are portable copies, and linked folders receive generated assets. The web and desktop libraries use separate profiles.
  • MCP uses stdio and authenticated local IPC with bounded calls. The consent setting covers programs that can run the companion under the same local sign-in. AI clients may send tool outputs to their providers. PixelLab credentials stay inside Studio.
  • Paid work requires a Studio-approved generation cap. The queue records a receipt before dispatch and rechecks the approval and native session lease before submitting new paid requests. An ambiguous response requires receipt recovery. Requests already sent may finish or charge after disconnect.
  • File tools use user-selected files and destinations or existing folder grants. Folder permission, overwrite decisions, permanent deletion, reference-guided creation, rig setup, State generation, and artwork repair remain Studio workflows.

Shared website build

  • Desktop and the browser use the same entry and service worker. The optional Desktop inventory stays out of browser preload and precache, and ordinary browser startup makes zero requests for it. The hosted renderer warms the required files for offline Desktop use. The first offline launch needs a completed online visit.
  • The shell and companion keep their independent native version. The renderer negotiates ABI 1–2 and detects optional capabilities. The hosted catalog supplies the modern tool policy within the broker's fixed limits. Existing MCP wire version stays stable.
  • The remote Studio window can open the bundled AI apps settings window. The bundled window alone can change consent and client configuration, with native confirmation for changes that require it.
  • Site updates keep the same shell process, tray, broker, and companion. The browser and Desktop use the existing PWA update flow, and an interrupted MCP call gets a retryable reload response. The installed shell remains independently versioned.
  • The first public installer is still pending. Pages CI exercises the ABI-1 compatibility contract and the Windows workflow uses the current native pair. Testing candidate Pages builds against the oldest public installer starts once that installer exists. The signed updater channel stays disabled until a private upgrade rehearsal passes.

Earlier verification before the live Studio switch

Check Result
App checks and unit tests npm run check passed. 4,192 unit tests passed, with four expected failures and two skips.
Browser end-to-end All 519 cases passed across the run and retries. A source edit during the initial run invalidated Vite's dev module state. A fresh server passed 173 of the 177 affected cases, and a single-worker rerun passed the last four without code changes.
Default web and PWA Matched main's 257 normalized output paths, 11,052,648 raw bytes, startup references, 169 required and 11 optional precache entries, and 168 stable checksums. The opt-in WebMCP build compiled.
Native tests 13 MCP and 27 registration tests passed.
Isolated Windows integration Passed cold launch, registration and cleanup, shared Studio, native PNG, Godot ZIP, ZIP import, Share write, interrupted calls, renderer reload, and receipt recovery without a duplicate mocked PixelLab POST. The Share test used a test-selected origin-private file handle and verified the written PNG bytes.
Windows packaging Built the unsigned production x64 NSIS installer and confirmed the production companion advertises the same 46 tools over stdio. Earlier isolated NSIS fixtures passed interactive upgrade, uninstall, locked-file handling, and retention of unrelated data.
Real client executables OpenCode 2.2.6 and Gemini CLI 0.52.0 carried the PNG into loopback provider requests. The Codex Desktop bundled app-server returned the same PNG over direct MCP RPC. Hosted DeepSeek returned Model unavailable before a tool call. No live PixelLab generations were spent.

Qualification record · Integration test instructions · Installer qualification

Review and release checklist

  • Update the branch from main and resolve the current merge conflict before merging.
  • Wait for CI and Pages and Windows desktop MCP on the same PR head.
  • Install the unsigned release candidate in a fresh Windows profile. Verify SHA-256, SmartScreen, WebView2 bootstrap, shortcuts, OS Save As, linked-folder publishing and conflict handling, in-place upgrade, and uninstall cleanup.
  • Verify the actual Claude Desktop, Codex Desktop and IDE, and both T3 provider onboarding paths in disposable profiles. Test the remaining advertised editors and hosted inference separately from loopback coverage.
  • Qualify macOS and Linux graphical setups before advertising them. An earlier Debian package passed an isolated cold-call smoke test. On Windows hosts whose job rules can terminate the GUI they launch, test with Studio opened independently.

Merge and release checks · PixelDoll project card

Release timing and desktop updates

  • The standalone Release now change selects the Pages deployment live at the original dispatch. The existing weekly release schedule can continue independently of native packaging.
  • The shell package and companion share a native version. About shows it alongside the Studio version and quietly checks for a newer package when opened. The release link uses the platform-specific feed after qualified installers are published.
  • The signed native updater remains disabled until the private two-version upgrade qualifies shutdown, restart, and retention of library and registration data.

Release workflow guide · Desktop distribution and update policy

Desktop preview packaging

Windows packages are unsigned, and macOS packages use the ad hoc identity. Publish SHA-256 checksums for every installer. The install guide and proposed download-sheet and release-footer copy cover the Windows SmartScreen and macOS Gatekeeper prompts. Public publication requires maintainer approval. Installation guide

Shared-build verification

Check Result
App checks and unit tests npm run check passed. 4,212 tests passed, with four expected failures and two skips.
Build and root smoke Pages guard passed. Chromium made zero Desktop asset requests in an ordinary browser. The ABI-1 fixture loaded the catalog without desktop policy metadata, cached the optional assets automatically, mounted offline, and opened the Library Restore action.
Native broker All 18 Rust MCP library tests passed, including the ABI, catalog policy, timeout and renderer-generation boundaries.
Windows native integration The isolated packaged and hosted scenarios passed. The hosted scenario used the root build under its app CSP with the real WebView2 bridge, rejected direct configuration commands, confirmed consent in the native dialog, started offline from cache, and kept a connected MCP client and original shell PID through a site update. A held call received the retryable reload error. The harness now focuses the fixture’s native confirmation before clicking. The separately opted-in WebMCP build also keeps its adapter in its own offline inventory.
Browser end-to-end All 519 cases passed across the initial run and focused reruns. Concurrent build output had contaminated the first run with real release notes. A clean retry passed 38 of those 39 cases and exposed one genuine startup recovery regression. The follow-up commit fixed that regression, and all 47 PWA cases passed.
macOS and Linux The previous private native run verified the offline recovery page on a refused connection and preserved 404 and 503 content on both platforms. Install and upgrade qualification remains open for the shared-root release.

Desktop architecture · Integration fixture · Windows CI

Shilo added 30 commits November 29, 2026 10:07
Use the shared recovery gate before MCP spending, quote moves against verified PixelLab template access, and submit standing equipment with the model that was priced.
Shilo added 30 commits December 3, 2026 07:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant