Desktops Commander Sandbox
Provides Git-versioned sandbox workspaces, enabling users to inspect changes via diffs, commit or discard modifications, and generate conflict-aware publish plans.
Supports production sandbox isolation using Kubernetes SIG Agent Sandbox with a gVisor RuntimeClass, with deployment examples provided.
Integrates optional Trivy scanning as a deterministic review adapter; findings or unavailable scanners can block publication planning, with bounded execution and redacted previews.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Desktops Commander Sandboxcreate a sandbox for the api project on my linux machine and show me the diff"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Desktops Commander Sandbox
Desktops Commander Sandbox is an MCP gateway for selecting a registered Mac, Windows, or Linux machine and working on one of its registered projects through an isolated, Git-versioned workspace.
It is designed for a safer workflow than forwarding a general-purpose desktop-control server directly to an AI client:
clients select only administrator-registered machines and projects;
source directories are copied into a fresh sandbox and never mounted writable;
every modification is visible as a Git diff and can be checkpointed locally;
path traversal, absolute paths, symbolic links, arbitrary backend URLs, and arbitrary source roots are rejected;
deterministic policy/scanner failures are authoritative;
optional AI review can escalate to a human, but cannot override a deterministic denial;
version 0.1 produces a conflict-aware publish plan and intentionally does not write changes back to source.
Status
This is an early security-focused release. The included local filesystem provider is intended for development and evaluation. Production isolation is designed around Kubernetes SIG Agent Sandbox with a gVisor RuntimeClass; deployment examples live in deploy/agent-sandbox/.
Related MCP server: hermes-local-hands
Quick start
Requirements: Node.js 22.15 or newer and Git.
npm install
cp config/machines.example.json config/machines.json
# Edit config/machines.json with absolute administrator-controlled paths.
export DESKTOPS_COMMANDER_TOKEN="replace-with-at-least-32-random-characters"
npm startThe Streamable HTTP MCP endpoint is http://127.0.0.1:8790/mcp. Bindings are intentionally loopback-only; expose it through an authenticated tunnel or reverse proxy instead of changing the listener to a public interface.
Environment variables:
DESKTOPS_COMMANDER_CONFIG: configuration file path;DESKTOPS_COMMANDER_PORT: loopback port;DESKTOPS_COMMANDER_TOKEN: optional bearer token, at least 32 characters;DESKTOPS_COMMANDER_SANDBOX_ROOT: override the sandbox data directory.
Legacy HCO_MCP_* environment names are accepted for migration only.
MCP tool surface
The secure sandbox mode exposes:
machines_list,machines_health,projects_list;sandbox_create,sandbox_list,sandbox_status;sandbox_read,sandbox_write,sandbox_diff;sandbox_commit,sandbox_discard;sandbox_review,sandbox_publish_plan.
Raw process execution, host filesystem writes, keychain access, and Desktop Commander configuration mutation are not exposed in sandbox mode.
The old pass-through router remains available as "mode": "legacy" for migration. It forwards downstream tools and is not the recommended public connector.
Review adapters
Trivy and local-review are optional external programs. Adapters use direct process execution without a shell, a bounded timeout/output buffer, and a minimal environment. Scanner output is represented by byte count and SHA-256 digest by default; exposeOutput: true opts into a redacted preview. When deterministic review is enabled, a finding or unavailable scanner blocks publication planning; local AI review is advisory and can require human review.
An OPA decision endpoint can be set as policy.opaUrl. OPA errors fail closed. The example Rego policy is in policy/desktops-commander.rego.
Testing
npm testSecurity and attribution
See SECURITY.md for the security model and responsible disclosure, and NOTICE.md for upstream attribution. The project is licensed under Apache License 2.0.
Copyright 2026 Wenhan Hu.
This server cannot be deployed
Related MCP Connectors
Start and manage Reason cloud coding agents, projects and sessions from any MCP client.
A MCP server built for developers enabling Git based project management with project and personal…
Hosted coding agent: start, follow up on and stop tasks that can open GitHub pull requests.
Manage remote servers, SSH terminals, files, databases and proxies with scoped access and approvals.
Related MCP Servers
- FlicenseBqualityCmaintenanceEnables secure, policy-controlled operations on local git repositories through MCP, including bounded reads, context-checked patches, allowlisted tasks, and guarded git operations.10-
- AlicenseNot gradedqualityAmaintenanceEnables a remote Hermes agent to inspect allowed files and propose patch/check requests on a local Git workspace, while the local operator retains approval and applies changes from isolated snapshots.2MIT
- AlicenseCqualityCmaintenanceEnables MCP clients to inspect and modify local git repositories by running commands such as status, log, diff, add, commit, branch, and stash. Push operations are not performed locally; instead diffs are sent to a configurable HTTP API that handles the upload, with all other remote git commands blocked.27MIT
- AlicenseAqualityCmaintenanceEnables MCP clients to delegate routine coding tasks to a local model in isolated git worktrees, using test results as a gate and the client as the reviewer before changes are merged.5MIT