MJO · Connect guide · Zed
How to connect an MCP server to Zed
Zed calls MCP servers context servers. You add a remote one from its settings page or straight into settings.json, and if the server has no Authorization header, Zed runs the standard MCP OAuth sign-in for you.
For MCP Journey Optimization, Zed is a clean example of the Authorize stage done by the client: give it a URL and it does the rest. The comparison with every other client is in the field guide.
What you need
- Zed.
- The server address, e.g. for the CrushedWithIt server,
<your server URL>.
Steps
- Open Settings > AI > MCP Servers (or run the
agent: open settingsaction and select MCP Servers). - Click Add Server in the page header and choose Add Remote Server.
- Enter the server's URL. Zed writes an entry under
context_serversin your settings file, like this:
If the provider gave you a token instead of a sign-in, add{ "context_servers": { "crushedwithit": { "url": "<your server URL>" } } }"headers": { "Authorization": "Bearer <token>" }. - If there is no Authorization header, Zed prompts you to sign in using the standard MCP OAuth flow. Complete it in the browser.
- Check the indicator dot next to the server's name: green with the tooltip "Server is active" means it is running.
Many servers are also packaged as Zed extensions: Add Server > Install from Extensions, or the zed: extensions action.
Try it
By default (agent.tool_permissions.default set to "confirm", from v0.224.0), Zed asks before any tool action, MCP calls included. With the CrushedWithIt server as the example:
Use the crushedwithit tools to show my account and how many credits I can spend now.
If the agent keeps reaching for built-in tools instead, Zed's docs suggest a custom profile that turns off built-in tools and enables only the server's.
Approvals, briefly
Zed's docs give three values for agent.tool_permissions.default:
"confirm"(the default): ask before any tool action, MCP calls included;"allow": approve automatically;"deny": block all tool actions.
Per-tool rules use the key mcp:<server>:<tool_name>, for example mcp:github:create_issue. Before v0.224.0 the boolean agent.always_allow_tool_actions applied instead. For a server that can spend money or post on your behalf, keep "confirm".
Common errors and fixes
| What you see | Fix | Basis |
|---|---|---|
| Dot isn't green | Read its tooltip for the cause. | Zed docs |
| Tool call fails | The error shows in the agent's response. Zed lists invalid parameters, server-side failures such as database or rate-limit issues, and unsupported operations; check the server's logs or docs. | Zed docs |
| New tools don't appear | Zed reloads the tool list automatically when the server sends notifications/tools/list_changed, so no restart is needed. Server builders: send it when your tools change. | Zed docs |
| Want to stop approving every call | Allow one tool with a rule keyed mcp:<server>:<tool_name>, rather than setting everything to "allow". | Zed docs |
| No sign-in prompt | Zed only prompts when there is no Authorization header. General, from the MCP spec: the server must return 401 with a WWW-Authenticate header. | Zed docs; MCP spec |
How to disconnect
Zed's MCP page does not describe disabling or removing a server. The entry lives under context_servers in your settings file; deleting it is the evident route, but the page does not state it. We will update this guide when the step is documented.
Sources
- Zed docs: Model Context Protocol, checked 26 Nov 2026.
- MCP authorization specification.
Other clients: the MCP field guide compares all ten. The framework: MCP Journey Optimization (MJO).