Install
Prerequisites
- Rust, via rustup. glass pins a nightly toolchain in
rust-toolchain.toml; rustup installs it automatically on the first build. - A display dependency for your backend:
- Linux / X11 (default): the headless X server —
sudo apt-get install -y xvfb. - Linux / Wayland: a discoverable
sway ≥ 1.12plus Mesa software GL. - Windows: nothing extra; glass uses built-in Windows APIs.
- Android (AVD): the Android SDK platform-tools (
adb) plus an emulator/AVD — glass drives the app overadbfrom a Linux or Windows host.
- Linux / X11 (default): the headless X server —
- A containment runtime (desktop apps are sandboxed by default):
- Linux: bubblewrap with unprivileged user namespaces enabled.
- Windows: Sandboxie Classic with its service running.
- Android: none to install — the app runs inside the emulator/AVD, which isolates it from your host.
Build from source
git clone https://github.com/fixed-width/glass
cd glass
cargo build --release -p glass-mcp # → target/release/glass-mcp
Tagged releases also attach prebuilt binaries to the GitHub Releases page.
Verify
./target/release/glass-mcp doctor # checks the environment, with a remedy for any gap
Next: Quickstart. Full prerequisite detail lives in the glass README.