Skip to main content
Zed supports MCP servers through its context_servers setting. Configuration is global — Zed does not currently support per-project MCP config files.
No credentials are required in the config. Calling login opens a browser to Perfai’s own sign-in page (OAuth) and completes automatically — see Login below.

Installation

File: ~/.config/zed/settings.jsonAdd (or merge) the following into your existing settings:
Zed’s context_servers format uses a nested command object with path and args — this differs from the flat command / args format used by Cursor and Claude Code. If you prefer not to use the browser login, create a Perfai API key and add "env": { "PERFAI_API_KEY": "pfk_xxxxxxxxxxxx_..." } alongside path/args — keep settings.json private if you do.

Open settings in Zed

You can open settings.json directly from Zed:
  1. Press Cmd+, (macOS) or Ctrl+, (Linux/Windows).
  2. Click Open settings.json in the top-right corner of the settings panel.
  3. Add the context_servers block and save.
Zed picks up the change immediately — no restart required.

Verify the server is connected

  1. Open the AI panel in Zed (click the AI icon or press Cmd+?).
  2. Look for perfai-cloud-mcp in the context server list.
  3. A green dot means it’s running. If it shows red, check that Node.js 18+ is installed and npx is on your PATH.

Login

The prompts below run inside Zed’s AI assistant panel, not your terminal. The only terminal/file steps are editing settings.json.
In Zed’s AI assistant, type:
This opens a browser to Perfai’s sign-in page (or uses PERFAI_API_KEY if you set it). Confirm with:

Register an app and run a scan


Fix and verify

One at a time:
All at once, prioritized by severity:
Then confirm the fixes landed: