packages/computeruse/vagrant/README-VAGRANT.md
This directory contains a complete Vagrant setup for local MCP development with hot reload capabilities.
Prerequisites
Start the VM
cd vagrant
vagrant up # First time will take ~20 minutes
Build MCP on Host
cd /c/Users/louis/Documents/computeruse
cargo build --release
Access Services
The scripts/mcp-watcher.ps1 script monitors the MCP binary and automatically restarts it when updated:
C:\Users\vagrant\computeruse\target\release\computeruse-mcp-agent.exeThe scripts/extension-watcher.ps1 script monitors browser extension files:
C:\Users\vagrant\computeruse\browser-extension\*vagrant/
├── Vagrantfile # Main VM configuration
├── Vagrantfile-enhanced # Enhanced version with all features
├── scripts/
│ ├── mcp-watcher.ps1 # MCP hot reload watcher
│ ├── extension-watcher.ps1 # Browser extension hot reload
│ ├── install-openssh.ps1 # SSH setup script
│ └── gui-shell/ # GUI automation shell
└── README-VAGRANT.md # This file
cargo build --releasecurl http://localhost:8080/healthcomputeruse mcp run workflow.yml --url http://localhost:8080/mcp# SSH into VM
vagrant ssh
# Restart VM
vagrant reload
# Suspend VM (saves state)
vagrant suspend
# Resume suspended VM
vagrant resume
# Destroy VM (clean slate)
vagrant destroy
# Re-provision (run setup scripts again)
vagrant provision
The computeruse repo is synced to the VM:
../ (parent of vagrant folder)C:\Users\vagrant\computeruseDevelopment
Browsers
Utilities
vb.memory = 8192 # 8GB RAM
vb.cpus = 4 # 4 CPU cores
config.vm.network "forwarded_port", guest: 8080, host: 8080 # MCP
config.vm.network "forwarded_port", guest: 9222, host: 9222 # Chrome
config.vm.network "forwarded_port", guest: 22, host: 2222 # SSH
# Check if MCP is running
Get-Process computeruse* -ErrorAction SilentlyContinue
# Manually start MCP
C:\Users\vagrant\computeruse\target\release\computeruse-mcp-agent.exe -t http --host 0.0.0.0 -p 8080
# Check logs
Get-Content C:\MCP\logs\mcp-startup.log
# Check if watcher is running
Get-ScheduledTask MCPWatcher
# Manually run watcher
powershell C:\Users\vagrant\computeruse\vagrant\scripts\mcp-watcher.ps1
# On host, check what's using port 8080
netstat -ano | findstr :8080
The extension watcher supports:
Start Chrome with debugging:
chrome.exe --remote-debugging-port=9222 --load-extension="C:\Users\vagrant\computeruse\browser-extension"