MCP Virtual Computer

v0.2.11
io.github.flujo-app/mcp-virtual-computer Checked 21 hours ago Published 3 months ago

A persistent Docker or Fly computer with a Three.js interface and optional live Xfce desktop.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

terminal_execute

Execute a shell command in one persistent Debian Docker computer. Commands run in bash. Each call is independent — no state (shell variables, working directory) persists between calls (however filesystem does persist). Use the working_directory parameter or chain commands with && to control execution context. To write files or pass data without shell escaping, use the stdin parameter (e.g., command="cat > file.txt" with content in stdin). Commands time out after 120 seconds by default (override with the timeout parameter for long-running operations).

ParameterTypeDescription
argsarrayList of arguments for direct execution (mutually exclusive with command).
commandstringShell command string (mutually exclusive with args).
stdinstringContent to pipe to stdin.
timeoutintegerTimeout in seconds (defaults to server config).
working_directorystringWorking directory for the command (must be absolute).

computer_ui Open Virtual Computer

Open the interactive Three.js laptop and its computer screen.

runtime_status

Read genuine lazy container-runtime setup progress.

set_network_access

Change the running computer's real network access.

ParameterTypeDescription
enabled *booleanWhether the computer may access the network.

set_desktop_environment

Switch the running computer between virtual and Xfce desktops.

ParameterTypeDescription
enabled *booleanUse a real Xfce desktop instead of the virtual desktop.

list_directory

List a Docker directory for the interactive virtual Explorer.

ParameterTypeDescription
pathstringDirectory path, absolute or relative to /workspace.

read_file

Read a UTF-8 text file and show it being opened and scrolled on the virtual computer.

ParameterTypeDescription
path *stringUTF-8 text file path, absolute or relative to /workspace.

write_file

Write a UTF-8 text file and show it being typed and saved on the virtual computer.

ParameterTypeDescription
content *stringComplete UTF-8 text to save.
path *stringUTF-8 text file path, absolute or relative to /workspace.
create_parent_directoriesbooleanCreate missing parent folders before saving.

edit_file

Replace exact UTF-8 text and show it being selected, overwritten, and saved.

ParameterTypeDescription
new_text *stringReplacement UTF-8 text.
old_text *stringExact text to select and replace; include context if ambiguous.
path *stringUTF-8 text file path, absolute or relative to /workspace.
replace_allbooleanReplace every exact match instead of requiring one match.

look_at_screen

Return the live Xfce screen as PNG pixels and/or an AT-SPI snapshot.

ParameterTypeDescription
include_accessibilitybooleanInclude the current AT-SPI accessibility snapshot.
include_imagebooleanInclude the current PNG framebuffer capture.

click

Click an AT-SPI element reference or screen coordinates.

ParameterTypeDescription
buttonstringMouse button: left, middle, or right.
clicksintegerClick count from 1 to 3.
elementstringAT-SPI ref from look_at_screen (for example atspi:8/0/2).
xintegerDesktop X coordinate.
yintegerDesktop Y coordinate.

type

Type into the active Xfce control.

ParameterTypeDescription
text *stringText to type into the active control.
clearbooleanSelect existing content with Ctrl+A before typing.
delay_msintegerDelay between keystrokes in milliseconds.
elementstringOptional AT-SPI ref to focus before typing.
press_enterbooleanPress Enter after typing.

scroll

Scroll the live Xfce desktop.

ParameterTypeDescription
amountintegerNumber of wheel steps.
directionstringScroll direction: up, down, left, or right.
elementstringOptional AT-SPI ref to scroll over.
xintegerOptional desktop X coordinate.
yintegerOptional desktop Y coordinate.

list_windows

List live Xfce windows.

switch_window

Activate and raise an Xfce window.

ParameterTypeDescription
window *stringWindow ID, exact title/class, or an unambiguous substring.

move_window

Move or resize an Xfce window.

ParameterTypeDescription
window *stringWindow ID, title, or class.
x *integerNew desktop X coordinate.
y *integerNew desktop Y coordinate.
heightintegerOptional new height.
widthintegerOptional new width.

maximize_window

Maximize an Xfce window.

ParameterTypeDescription
window *stringWindow ID, title, or class.

restore_window

Restore an Xfce window.

ParameterTypeDescription
window *stringWindow ID, title, or class.

minimize_window

Minimize an Xfce window.

ParameterTypeDescription
window *stringWindow ID, title, or class.

close_window

Close an Xfce window.

ParameterTypeDescription
window *stringWindow ID, title, or class.