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 Replace
context_servers in your user settings.json: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.Docker Alternative
If direct remote HTTP access is unavailable on your network, run CodeAlive through Docker using Zed’s local MCP format: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: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”
semantic_search and grep_search for indexed-code exploration.
Troubleshooting
The server is not active
The server is not active
- Check that
codealiveis inside the top-levelcontext_serversobject - Confirm that the URL is
https://mcp.codealive.ai/api - Validate the JSON syntax and reopen Settings → AI → MCP Servers
- Update Zed if Add Remote Server is not available
Authentication fails
Authentication fails
- Confirm that the API key is active in the CodeAlive dashboard
- Ensure the
Authorizationvalue begins withBearer - Check that the API key contains no surrounding spaces or copied quotation marks
The agent does not call CodeAlive tools
The agent does not call CodeAlive tools
- Confirm that the server indicator is green
- Mention CodeAlive explicitly in the prompt
- Check that tool permissions do not deny
mcp:codealive:* - Add CodeAlive routing guidance to your project or global agent instructions