Updated
Zed
Zed reads MCP context servers from your user settings.json. Open it via Zed → Settings → Open Settings (Cmd/Ctrl + ,).
Critical gotcha: Zed uses the key
context_servers — not mcpServers. Using mcpServers will have no effect.Configuration
Add the following to your Zed settings.json. The context_servers key goes at the top level of the settings object.
{
"context_servers": {
"lyrashield": {
"command": {
"path": "npx",
"args": ["-y", "@lyrashield/mcp"],
"env": {
"LYRASHIELD_API_KEY": "lsk_your_key_here",
"LYRASHIELD_API_URL": "https://app.lyrashieldai.com"
}
}
}
}
}Verify the connection
Save settings.json. Open the Zed AI assistant panel and check that the lyrashield context server appears in the active servers list. You can ask the assistant to list available tools to confirm.
Requirements: Node.js 20+ and a LyraShield workspace API key. The
@lyrashield/mcp package is published on npm, sonpx -y @lyrashield/mcp resolves directly.