Zed + xCloud

Manage Your Hosting from Zed with xCloud

Zed is a code editor from Zed Industries with a built-in Agent Panel, where an AI agent works on your project and can call MCP tools. Connected to xCloud with one settings entry, it deploys repositories, updates WordPress, checks SSL and diagnoses failures from the same panel.

  • One context_servers entry
  • Zed prompts for OAuth for you
  • Free with every xCloud account

YouUse xCloud to check my Frankfurt server and reboot it if it has been up more than 90 days.

servers_showread-only

Agentfrankfurt-1 has been up 112 days. A reboot makes every site on it briefly unavailable. Reboot now?

YouYes, go ahead.

servers_reboots_storeneeds approval

AgentReboot started. I will check that the new boot is verified and that your sites answer 200.

. Keep a human in the loop: xCloud stops and asks before anything that creates, deploys, updates, reboots, deletes or buys.

Setup

How Do I Connect Zed to xCloud?

Point Zed at the xCloud MCP server, approve access in your browser, then ask. The whole thing takes a couple of minutes.

  1. Add xCloud as a remote server

    Open Settings, then AI, then MCP Servers, click Add Server and choose Add Remote Server. Or run the zed: open settings file action and add this to settings.json yourself. Zed writes the same entry either way.

    JSON
    {
      "context_servers": {
        "xcloud": {
          "url": "https://app.xcloud.host/mcp"
        }
      }
    }
  2. Sign in and check the dot

    Because the entry has no Authorization header, Zed prompts you to authenticate through the MCP OAuth flow. Approve the teams and the access level in the browser. In Settings, AI, MCP Servers a green dot next to xcloud with the tooltip Server is active means it worked. Then ask this in the Agent Panel.

    Prompt
    Who am I on xCloud?
  3. No browser sign-in? Use an API key

    Create a token with the mcp:invoke scope plus the read abilities for the areas it will use (read:servers and read:sites, with read:billing and read:addons for billing and add-on tools) and the matching write: abilities if it should change things in Settings, Developers, API Tokens and add it as a header. With an Authorization header set, Zed skips its OAuth prompt. Replace YOUR_TOKEN with the token, which contains a pipe character, and keep it out of git and out of chat.

    JSON
    {
      "context_servers": {
        "xcloud": {
          "url": "https://app.xcloud.host/mcp",
          "headers": { "Authorization": "Bearer YOUR_TOKEN" }
        }
      }
    }
  4. Check it worked

    With no Authorization header in the entry, Zed starts the standard MCP OAuth flow and you approve access in the browser. Setting an Authorization header with an API key that carries the mcp:invoke scope and the read or write abilities it needs replaces that flow.

    Prompt
    Who am I on xCloud?

Three surfaces

Which Way Should I Connect Zed to xCloud?

The MCP server exposes one tool per customer-facing xCloud operation and leaves out eleven internal ones that only the Public API carries; the skills add workflow know-how on top of an MCP connection and, on their own, only read access. All three are free with every account and differ in what you set up and what holds the credentials.

xCloud MCP serverxCloud Agent SkillsPublic API
Terminal neededNo (recommended for Zed)Yes for the plugin or ClawHub installYes
AuthenticationOAuth sign-in, or an API key with mcp:invoke plus read or write abilities (recommended for Zed)The MCP connection, or a read-scoped API tokenAPI token with scoped abilities
What it addsOne tool per customer-facing xCloud operation (188 today) (recommended for Zed)Workflow know-how: routing, dry run, confirm, poll, diagnoseRaw REST for your own code
Changes to your infrastructureYes, after confirmation (recommended for Zed)Only through a connected MCP tool, after confirmationYes, with write scopes
Best forMost people; every MCP client (recommended for Zed)Agents that run shell commands and read skillsCI jobs, dashboards and long-running loops

Background

What Is Zed?

Zed is a code editor made by Zed Industries. Its Agent Panel is where you give an AI agent a task, and Zed supports three agent paths: the built-in Zed Agent, External Agents connected over the Agent Client Protocol, and Terminal Threads that run command-line agents.

Zed uses the Model Context Protocol for what it calls context servers, and supports MCP tools and prompts. You declare servers under context_servers in settings.json: a local one with a command, or a remote one with a url and optional headers. Servers configured in Zed are also forwarded to External Agents.

Adding xCloud there gives the Zed Agent one tool per customer-facing xCloud operation. You stay in the editor, name the site or server the way you would to a colleague, and the Agent Panel shows each tool call before anything that changes your hosting goes through.

Why Zed with xCloud?

Hosting from the editor you already use

Ask for a deploy, a backup or a certificate check in the Agent Panel while the project is open. There is no dashboard tab to switch to and no CLI to install.

Authentication Zed handles for you

Leave the Authorization header out and Zed starts the MCP OAuth flow itself. You approve the teams and the access level once, and no token sits in your settings file.

Approval you control in settings

Zed's agent.tool_permissions.default setting is confirm by default, so each MCP tool call asks first. xCloud adds its own explicit confirmation for anything that creates, deploys, updates, reboots, deletes or buys.

Example prompts

What Can You Ask Zed to Do on xCloud?

Type these as written and swap in your own site and server names. Reads and routine actions such as backups, cache purges, PageSpeed scans and vulnerability scans run straight away; creating, deploying, updating, rebooting, deleting, buying or starting a broken-link scan stops and asks first.

Prompt
Use xCloud to list my servers and tell me which have a pending reboot or low disk space.
Prompt
Use xCloud to deploy https://github.com/acme/shop to my Frankfurt server and show me the dry run first.
Prompt
Use xCloud to find every site with pending plugin updates and list them, worst first.
Prompt
Use xCloud to check why staging.example.com returns a 502 and summarise the latest deployment events.
Prompt
Use xCloud to renew the SSL certificate for shop.example.com and tell me when it expires.

Good to know

  • Mention xCloud by name in your prompt, for example Use xCloud to. Zed notes that how reliably MCP tools get called varies by model, and naming the server helps the model choose its tools.
  • Zed's approval setting is agent.tool_permissions.default from v0.224.0. Before that version it was agent.always_allow_tool_actions. Keep it on confirm unless you only run read-only questions.
  • For per-tool rules, Zed's key format is mcp:<server>:<tool_name>, so the xCloud entry is named xcloud in those keys.

More prompts, grouped by job: What you can ask xCloud MCP to do.

Zed and xCloud: Frequently Asked Questions

Short answers about connecting Zed, what it may change and what it costs.

How do I connect Zed to xCloud?

Open Settings, AI, MCP Servers, click Add Server and choose Add Remote Server, or add an xcloud entry under context_servers in settings.json with url set to https://app.xcloud.host/mcp. Approve access in the browser when Zed prompts for sign-in, then ask who am I on xCloud in the Agent Panel.

Do I need an xCloud API key in Zed?

No. When the entry has no Authorization header, Zed prompts you to authenticate through the standard MCP OAuth flow. An API key is only for a setup without a browser: create a token with the mcp:invoke scope plus the read abilities for the areas it will use (read:servers and read:sites, with read:billing and read:addons for billing and add-on tools) and the matching write: abilities if it should change things and pass it as an Authorization header under headers.

How do I know the xCloud server is working in Zed?

Open Settings, AI, MCP Servers and look at the dot beside xcloud. Green with the tooltip Server is active means it is connected. Other colors and tooltip messages say what is wrong, such as a sign-in still pending.

Can Zed change my servers without asking?

Not for the operations xCloud gates. Zed's default is to confirm before any tool action, including MCP calls, so with the default settings every xCloud call, reads included, waits for your approval in Zed; a per-tool rule under agent.tool_permissions can let reads through. xCloud adds its own gate on top: reads and routine actions such as backups, PageSpeed scans and vulnerability scans need no xCloud confirmation, while creating, deploying, updating, rebooting, deleting, buying or starting a broken-link scan is refused unless the call carries an explicit confirmation.

Does the xCloud connection work with external agents in Zed?

Zed forwards the MCP servers you configure to External Agents over the Agent Client Protocol, so xCloud is available to them too. External Agents can also read their own native MCP configuration, so check which source an agent uses if the tools do not appear.

Should I use the compact xCloud profile in Zed?

Start with the full URL. Zed's documentation does not state a tool limit. If your model picks the wrong tool among the 188 operations, connect to https://app.xcloud.host/mcp?profile=compact, which exposes five tools, or narrow the connection with a toolsets query such as ?toolsets=sites,servers.

Which xCloud tools can the Zed Agent use?

All of them, as MCP tools: one per xCloud operation, plus two search tools for finding the right operation and answering questions from the documentation. Zed supports MCP tools and prompts, so the tool set is what the Agent Panel uses.

Is it free to use Zed with xCloud?

The xCloud side is free: the MCP server, the skills and the Public API are included with every xCloud account, including the free plan. Zed and the AI models you use in it are provided under Zed's own plans or your own provider keys.

Other agents

Also Works With

The same xCloud account, the same operations, a guide for each client.

Run Your Hosting from Zed

xCloud MCP, the Agent Skills and the Public API are free with every account. Connect once and ask.