Skip to content

The MCP server doesn't work in Zed editor #24

@noelkurian

Description

@noelkurian

There are several issues. First of all, the command:

codebase-memory-mcp install

Doesn't work if there's existing config file. It fails with:

[Zed] MCP config: /home/noel/.config/zed/settings.json
⚠ Invalid JSON in /home/noel/.config/zed/settings.json, skipping

So I moved my existing config file and re ran the command. It generated a file with this:

{
  "context_servers": {
    "codebase-memory-mcp": {
      "command": "/home/noel/.local/bin/codebase-memory-mcp",
      "source": "custom"
    }
  }
}

Which is not fully correct. Zed doesn't support "source" parameter and instead requires "args" parameter. I updated my config to:

  "context_servers": {
    "codebase-memory-mcp": {
      "command": "/home/noel/.local/bin/codebase-memory-mcp",
      "args": [""],
    },
  },

Which Zed accepts as valid.

The mcp server shows up in the UI, and shows green indicator (meaning it's active) but it detects 0 tools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions