// config file
settings.json
Remote servers live under context_servers. Open the file with zed: open settings file, or add a server from Settings → AI → MCP Servers.
For Zed users
The Zed agent works from the files you open and the instructions you give it. Maguyva indexes the whole repo and serves it back over MCP, so the agent asks where a symbol lives instead of guessing.
Free tier: 3 repos, 50K indexed lines, no card.
One context_servers entry: a URL and an Authorization header. Four facts specific to Zed. None of them are hard.
// config file
Remote servers live under context_servers. Open the file with zed: open settings file, or add a server from Settings → AI → MCP Servers.
// transport
Zed connects to Maguyva’s remote endpoint over HTTP. No local process, no Node.js.
// key
This guide puts the key straight into the Authorization header, because environment-variable expansion in Zed headers is not verified here. Keep it in your user settings, not in a file you commit.
// approvals
Zed asks before each tool call by default. Allow Maguyva’s tools one at a time under agent.tool_permissions.tools, with keys like mcp:maguyva:find_symbol.
# .rules
- Run the repo test command before you call a change done.
- Keep edits inside the package you were asked to change.Zed loads one project instruction file: the first match from a fixed list that starts with .rules and includes AGENTS.md and CLAUDE.md. Personal instructions go in ~/.config/zed/AGENTS.md. Use them for:
An instruction file tells the agent how to work. It cannot tell the agent which of four thousand files call the function it is about to change.
Three things the Zed agent cannot learn from the files in front of it.
The agent sees what you opened and what it greps. A helper with the same name in another package looks identical until the wrong one ships.
“What breaks if I change this signature?” is a graph question. Without an index, the agent reads files one at a time until it runs out of turns or context.
Every file the agent opens to orient itself costs tokens it cannot spend on the change. One ranked answer with file:line costs less than ten exploratory reads.
One context_servers entry gives the Zed agent:
Zed gives the agent a fast editor.
Maguyva gives the agent a map of the code.
Ask the map first, then edit.
// workflow 01
zed agent> where is the retry policy for outbound webhooks? find_symbol("retryPolicy") src/webhooks/dispatch.ts:41 retryPolicy() ← implementation src/webhooks/__mocks__/dispatch.ts:9 ← mock → The agent opens dispatch.ts:41, not the mock. [exit 0]
One ranked lookup replaces a round of grep. The answer comes back as a path and a line the agent can open directly.
// workflow 02
zed agent> add a timeout argument to fetchInvoice dependency_search("fetchInvoice", dependents) 7 callers across 4 packages → The agent updates all seven call sites in one pass. [exit 0]
The blast radius arrives before the first edit, not after the build fails.
Three steps. Free tier: 3 repos, 50K indexed lines, no card.
// step 01
Pick one you already know, so you can grade the answers.
// step 02
~/.config/zed/settings.json
{
"context_servers": {
"maguyva": {
"url": "https://maguyva.tools/mcp",
"headers": {
"Authorization": "Bearer mgv_xxxx"
}
}
}
} // step 03
Swap mgv_xxxx for your API key and save. Ask the agent one question whose answer you already know, then open the cited file.