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.
The package binary is perfai-mcp-server. Always launch it with npx --yes --package=@perfai/mcp@latest perfai-mcp-servernpx @perfai/mcp alone fails with “could not determine executable to run.”

Installation

In Zed, PERFAI_USERNAME / PERFAI_PASSWORD go in an env object inside the command block.
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, args, and env — this differs from the flat command / args format used by Cursor and Claude Code.
settings.json holds your credentials in plaintext — keep it private.

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-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:
The server reads PERFAI_USERNAME / PERFAI_PASSWORD from the config, signs you in, and saves the session locally. Confirm with:

Select an organization and app


List issues

Findings are grouped into security, design, and quality categories.

Generate fixes

By ID (sequence number, issue ID, or description):
By category:
For all / by severity — ask the assistant to iterate: