This MCP server provides a persistent “virtual computer” with a Three.js user interface. It supports an optional live Xfce desktop and is intended for both agents and users. The interface allows switching between virtual and real desktop modes and interaction through a normal screen metaphor.
🛠️ Key Features
Persistent Docker or Fly computer
Three.js interface
Optional live Xfce desktop
Click-to-switch between virtual desktop and real one
Simulated unplug network cable to cut network access
Agent can use the terminal, create/read/edit files, view the screen, and click/type
🚀 Use Cases
Running agent workflows that require terminal access and file operations
Interactive, screen-based control via the web UI
Testing behavior with or without network access
⚡ Developer Benefits
Screen visibility and click/type interaction
File management capabilities through the agent
Network access can be disabled by design via the “unplug” action
⚠️ Limitations
Network access is controlled through the provided unplug mechanism
Desktop behavior depends on whether a real (live) or virtual desktop mode is selected
terminal_execute — run a command in the configured Docker container or Fly Machine.
read_file — read a UTF-8 text file relative to /workspace or by absolute path.
write_file — atomically write a UTF-8 text file.
edit_file — replace one exact text match, or all matches when requested.
computer_ui — open or attach the Three.js computer view. Its result includes
both the MCP App resource_uri and a real loopback url/dashboard_url that
opens in an external browser, including for stdio clients.
DESKTOP_ENVIRONMENT defaults to true. With the real desktop enabled it
additionally exposes:
look_at_screen — return the current PNG framebuffer, AT-SPI snapshot, or both.
click, type, and scroll — interact by AT-SPI element reference or coordinates.
list_windows and switch_window — enumerate and activate real Xfce windows.
move_window, maximize_window, restore_window, minimize_window, and close_window — control a selected window by ID, title, or class.
computer://screen/current.png — current live framebuffer resource.
computer://screen/accessibility.json — Playwright-like AT-SPI tree with element refs, roles, names, actions, focus state, and screen bounds.
The MCP App can always call runtime_status, set_network_access, and set_desktop_environment. Set EXPOSE_LIFECYCLE_TOOLS=true to additionally expose those lifecycle controls to the model; they remain model-hidden by default.
Architecture
image
Demo: FLUJO
image
Demo: Claude Desktop
image
Demo: Goose
image
Permanent Fly Machine
Fly mode builds the bundled Xfce image with Fly's remote builder and deploys it as one permanent Machine. The root filesystem and /workspace survive MCP restarts, and the Three.js screen uses the same noVNC desktop through Fly's HTTPS/WebSocket proxy.
This is the Xfce framebuffer returned by look_at_screen from a deployed Fly Machine. The same live desktop appears on the rendered computer after computer_ui connects to VNC:
Xfce desktop running on a permanent Fly Machine
No app name, region, CPU size, memory size, Docker installation, or VNC configuration is required.
The package's MCP Registry declaration, including the docker and fly backend choices, is in server.json. See Fly setup for the complete first-run and authentication flow.
On first use, virtual-computer finds fly/flyctl or downloads the current official release to ~/.fly/bin. It uses a cached fly auth login session or FLY_API_TOKEN, selects the personal organization when available, creates and remembers a generated app, lets Fly choose the closest placement, and defaults to one shared CPU with 1 GB RAM.
Authentication is the only unavoidable account step. On a fresh machine, start the MCP once, run the exact flyctl auth login command shown by its error, and restart the MCP client. The first computer call can take several minutes while Fly remotely builds Xfce. Later starts attach to the same Machine.
Optional overrides remain available as FLY_ORG, FLY_APP_NAME, FLY_REGION, FLY_API_TOKEN, and the --fly-* flags. Set AUTO_INSTALL_FLYCTL=false to require a preinstalled CLI. Deleting or factory-resetting the computer destroys its persistent Fly root filesystem; ordinary MCP shutdown leaves the permanent Machine running. Stop or delete it from Fly when you no longer want it to incur usage.
License and origin
MIT licensed. This project is a persistent-computer fork of Kilntainers with Docker and Fly backends.
Install
Configuration
Environment variables
BACKENDdefault docker
Computer provider. Use docker for a local container or fly for a permanent Fly Machine.
COMPUTER_IDrequireddefault agent-workstation
Stable identity of the one persistent computer.
DESKTOP_ENVIRONMENTdefault true
Start the real Xfce desktop instead of the virtual desktop.
NETWORK_ACCESSdefault true
Allow outbound network access from the computer.
AUTO_INSTALL_DOCKERdefault true
On Windows, install and start Docker Desktop lazily when needed.
AUTO_INSTALL_FLYCTLdefault true
Download flyctl into the user profile when it is missing.
FLY_API_TOKENsecret
Optional Fly API token. A cached flyctl login is also supported.
EXPOSE_LIFECYCLE_TOOLSdefault false
Also expose runtime status and network/desktop switching tools to the model. The MCP App can always use them.