# MCP Desk Bridge: setup instructions for an AI agent Published by MCP Desk at https://mcpdesk.ai/instruction/bridge-setup.md. Your user sent you here to install and connect the MCP Desk Bridge on the computer you run on (the local computer, not a desk you are connected to: see the next section). Do every step yourself, in order, on this computer. Stop and ask the user only where a step says so. ## Which computer: the local one, never the desk - **Assume this conversation is already connected to a desk through MCP Desk.** The user connected a desk to this chat (for example with `connect_device`), and the tools of the `mcpdesk` server, such as `run_command`, `start_task`, `write_file` and `push_file`, act on that desk. The desk is a **remote** computer. - **The bridge goes on the LOCAL computer only**: the computer where the AI client you run in executes commands, which is the user's own computer. Never install it on the remote desk you are connected to. - **Do not run any command of this page through the desk's remote tools.** A command sent through `run_command` or any other `mcpdesk` tool runs on the desk, which is the wrong machine. Run each command with your own local command tool only. - If you have no local command tool (a chat on a website, such as Claude.ai), you cannot install the bridge. Say so plainly, and tell the user that the bridge serves only the AI tools that run on their own computer (Claude Code, Codex, Cursor, Grok, OpenCode). They can open this page's address with one of those tools. - The bridge stays container-only: the official installer line below is the only way to set it up. Do not install anything of MCP Desk on the host by any other route. ## What you set up, and what you must not install The MCP Desk Bridge runs only inside a container. You set up exactly four things: 1. **One container**, named `mcpdesk-bridge`, from the image `docker.io/mcpdesk/bridge` on Docker Hub, run by Docker or Podman, with its data volume `mcpdesk-bridge-data`. The official installer below pulls it, pinned by digest. 2. **One `mcpdesk` entry in each AI client's own settings** (Claude Code, Codex, Cursor, Claude Desktop, Grok, OpenCode). The entry is a local stdio server: the container engine's own command, `exec -i mcpdesk-bridge /mcpdeskagent bridge`. 3. **One workspace folder**, `MCPDeskFiles` in the user's home folder (`~/MCPDeskFiles`, `%USERPROFILE%\MCPDeskFiles` on Windows). It is the only folder of this computer that the container can see: it appears inside the container as `/workspace`. It is where the bridge's `push_file` and `pull_file` put and take files (see "The workspace folder" below). It is a plain folder of files, not a program. 4. **One sign-in**, which the user approves in a browser. Rules that have no exception in this setup: - **Do NOT install the MCP Desk agent on this computer.** The agent is the program that lets a computer be controlled. It is called `mcpdeskagent` (`mcpdeskagent.exe` on Windows) and also ships as the MCP Desk app, a `.dmg`, a Windows installer, a Store app and an `.apk`. Do not download it, do not run it on this computer, and do not create a service, a scheduled task, a login item or a Start menu entry for it. - **This computer is the one the AI runs on. It is not a desk.** A desk is another computer that the user wants an AI to work on. The agent belongs there, and the user installs it there. Installing it here would open this computer to remote control, which the user did not ask for. - **The bridge runs in a container.** Besides the workspace folder, for files, nothing of MCP Desk goes on this computer outside the container, its volume and the client entries above: no script, no program or service of MCP Desk, and no PATH change. The bridge, its sign-in and the installer's own notes all live inside the container and its volume. The words `/mcpdeskagent bridge` in a client entry are a path inside the container. That is expected, and it is not a program on this computer. - **The only thing that may be installed on this computer is a container engine** (Docker or Podman), and only when it has none. The workspace folder is not an install: it is a folder for files, and it is the only folder the container is given. Never share the user's home folder, a drive or any other folder with the container. - Never copy an MCP Desk program or script into a folder of this computer, and never set up a bridge outside the container. - If an MCP Desk agent is already on this computer because the user made it a desk earlier, leave it exactly as it is. Do not stop, remove, update or reconfigure it. - Use only the commands, flags, addresses and paths written here. Do not invent installer flags, environment variables or MCP addresses. - Never print a token, a password, a setup code or a one-time code. If `MCPDESK_SETUP_CODE` is already set in your environment, leave it set and do not show it. ## When to stop and ask the user Stop, say exactly what the user must do, and wait, only when one of these is true: - A browser page asks the user to sign in to MCP Desk and press **Allow**. A yes typed in this chat is not that Allow. - The system asks for an administrator password, shows a permission window (UAC on Windows, the Installer on macOS), shows a licence screen, or needs a restart. - Windows needs WSL installed or updated first (`wsl --install` needs an administrator and may need a restart). - On Linux the user must start a new login session, for example after being added to the `docker` group. - The operating system or CPU is not supported (Step 1). - The installer stops with an error that Step 2 tells you to report. Everything else you do yourself, without asking. ## Step 1. Check the computer Find the operating system and the CPU. - macOS or Linux, on x86_64/amd64 or arm64/aarch64: use the shell line. It needs `curl` or `wget`. - Windows, on AMD64 or ARM64, with Windows PowerShell 5.1 or newer: use the PowerShell line. - Anything else: stop and tell the user it is not supported. Never run the shell line on Windows or the PowerShell line on macOS or Linux. ## Step 2. Run the official installer Before you run it, tell the user: "A browser page will open. Sign in to MCP Desk and press Allow." The installer waits for that, up to 15 minutes. macOS or Linux: ```sh curl -fsSL https://mcpdesk.ai/install.sh | sh ``` Windows (PowerShell): ```powershell irm https://mcpdesk.ai/install.ps1 | iex ``` On Windows, when your command tool is not PowerShell (for example a bash shell), start PowerShell for that one line: ```sh powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'irm https://mcpdesk.ai/install.ps1 | iex; exit $LASTEXITCODE' ``` Run the line as it is, with no flags added and without `sudo` or an administrator prompt of your own. The only flags you may add are `--workspace ` or `--no-workspace`, and only when the user asked for another folder or for none (see "The workspace folder"). On macOS and Linux it prints numbered progress lines, from `[1/6] Finding Docker or Podman... ok` to `[6/6] Cleaning up what earlier installers left... ok`. When it changed something it ends with `Done. Restart .` (the AI clients it changed) or `Done. Nothing to restart.`. Running it again is safe: it repairs what it finds and says what it did. When everything is already right it says `already set up`, lists the clients that already point at the bridge, and changes nothing. The first image pull can take several minutes. If your command tool times out first, run the same line again and it carries on. What the line does, so you do not do it yourself: - It downloads the helper script of the current release into a temporary folder, checks its SHA-256, runs it from there and deletes the folder. No helper script stays on this computer. - It finds a running Docker or Podman, or starts a stopped one. **When neither is installed it installs one by itself**: Podman (Homebrew or the vendor's signed package on macOS, the distribution's package on Linux, winget on Windows), or Docker Desktop where Podman cannot be used. That step can ask the user for an administrator password. - It pulls the pinned image `docker.io/mcpdesk/bridge`, signs the bridge in inside a short-lived container (the browser page), makes the workspace folder if it is missing (an existing one is kept as it is), starts the container `mcpdesk-bridge` with its data volume and that one folder, and waits until it is healthy. - Only then it points the AI clients it finds at the bridge and keeps a copy of every file it changes, next to it, as `.mcpdesk-backup-