Skip to content
All providers

microsoft-mxc

Run local commands in isolated workspaces with Microsoft MXC.

Requirements

Use an Apple Silicon Mac running macOS 15 or later, with the MagicMtn CLI installed on the host running your provider. The Registry package includes Microsoft MXC and uses macOS Seatbelt; no separate MXC executor is needed.

Use a client that creates a sandbox from a server-local JSON policy file and runs host-native commands. For OCI images or a persistent background sandbox agent, choose a provider that supports those workloads.

Installation

magic provider install microsoft-mxc

This installs the MagicMtn adapter. See Requirements for any runtime or other software to install separately. Registry installation does not require a MagicMtn login or AWS credentials.

To remove the installed adapter:

magic provider uninstall microsoft-mxc

Usage

Install the provider on your Mac:

magic provider install microsoft-mxc

Create a JSON policy file on the provider host. Start with an empty policy to use the sandbox's private workspace and MXC's baseline system access:

{
  "readonly_paths": [],
  "denied_paths": []
}

Pass the file's path as the sandbox template in your client. To grant read access to host files, add their absolute paths to readonly_paths; use denied_paths to hide sensitive subdirectories. Paths must exist and must not overlap the provider's state directory. Each session saves its policy when created.

Set MAGICMTN_MXC_STATE_DIR in the provider environment to choose a private, persistent state directory. It defaults to $HOME/.local/share/magicmtn/mxc. Keep that directory while sessions are in use.

Each command runs in a fresh process sandbox with a writable private workspace. Workspace files persist between commands and provider restarts. Networking and UI access are disabled, and host credentials are not forwarded. Commands are bounded to 30 seconds and up to 16 KiB of output per stream.

Terminate a session to remove its workspace and prevent further execution. Background processes do not persist between executions; SSH and SCP are unsupported.

See the user guide and policy configuration for details.