Skip to main content

Overview

Zed supports remote MCP servers directly. Connect the Zed Agent to CodeAlive over HTTP to search indexed repositories and retrieve code context without running a local MCP process.
Older CodeAlive instructions used Docker because Zed previously supported only local STDIO servers. Current Zed releases support remote servers with a URL and custom HTTP headers.

Prerequisites

  • A current version of Zed
  • A CodeAlive account and API key
  • At least one indexed repository or workspace in CodeAlive
  • An LLM configured for the Zed Agent

Remote MCP Setup

1

Open MCP settings

Open Settings → AI → MCP Servers, click Add Server, and choose Add Remote Server.You can also run agent: open settings, select MCP Servers, or run zed: open settings file to edit the JSON directly.
2

Add CodeAlive

Add CodeAlive under context_servers in your user settings.json:
Replace YOUR_API_KEY_HERE with your CodeAlive API key. Zed’s remote MCP format does not require a type field.
3

Verify the connection

Return to Settings → AI → MCP Servers and find codealive. A green indicator with the tooltip Server is active confirms that Zed loaded the server and discovered its tools.
Zed stores custom remote MCP headers in settings.json. Use the user settings file and do not commit an API key in project-level .zed/settings.json.

Docker Alternative

If direct remote HTTP access is unavailable on your network, run CodeAlive through Docker using Zed’s local MCP format:
Docker must be installed and running before Zed starts this server.

Tool Permissions

Zed asks for confirmation before tool calls by default. Review each CodeAlive tool call before approving it. If you customize Zed’s permissions, MCP tool keys use this format:
For example, mcp:codealive:semantic_search identifies the CodeAlive semantic search tool.

Try It

Ask the Zed Agent:
  • “Use CodeAlive to show me all available repositories”
  • “Use CodeAlive semantic search to find the authentication flow”
  • “Find callers of this service and fetch the relevant implementations”
Mentioning CodeAlive by name helps the model select its MCP tools. For consistent routing, add instructions telling the agent to prefer semantic_search and grep_search for indexed-code exploration.

Troubleshooting

  1. Check that codealive is inside the top-level context_servers object
  2. Confirm that the URL is https://mcp.codealive.ai/api
  3. Validate the JSON syntax and reopen Settings → AI → MCP Servers
  4. Update Zed if Add Remote Server is not available
  1. Confirm that the API key is active in the CodeAlive dashboard
  2. Ensure the Authorization value begins with Bearer
  3. Check that the API key contains no surrounding spaces or copied quotation marks
  1. Confirm that the server indicator is green
  2. Mention CodeAlive explicitly in the prompt
  3. Check that tool permissions do not deny mcp:codealive:*
  4. Add CodeAlive routing guidance to your project or global agent instructions