Skip to content

loom install --client zed writes a file Zed does not read #709

Closed

Description

@zlareb1

Company or project name

No response

Component

CLI

Describe what's wrong

loom install --client zed merges the loom entry under context_servers into ~/.config/zed/mcp.json (%APPDATA%\Zed\mcp.json on Windows; server/identity/app/token_clients.py, the zed row of CONFIG_PATHS; the dashboard's per-client token blocks use the same table). docs/features/integrations/mcp-clients.md on main says both: the "Other editors and agents" section says Zed reads context_servers in settings.json, while the "What it writes per client" table says loom install writes ~/.config/zed/mcp.json, "a sibling of settings.json".

Zed's MCP page (https://zed.dev/docs/ai/mcp) says custom servers go under context_servers in the settings file (zed: open settings file, which is ~/.config/zed/settings.json), and names no mcp.json. So the entry should land in a file Zed does not read. The written path is reproduced on main at d88b943 (step 1 below); that Zed then does not list the server is unconfirmed, since I could not run Zed here.

Does it reproduce on the latest release or main?

Yes

How to reproduce

  1. loom install --client zed --server-url http://localhost:7777 --token "$LOOM_API_KEY" --dry-run: it names ~/.config/zed/mcp.json (reproduced on main at d88b943: would write to: $HOME/.config/zed/mcp.json, with the loom entry under context_servers as an npx mcp-remote command).
  2. Run it without --dry-run, restart Zed, and open the Agent Panel's settings: whether the loom server is listed is what needs checking.

Expected behavior

loom install --client zed writes context_servers.loom into the settings file Zed reads (~/.config/zed/settings.json; %APPDATA%\Zed\settings.json on Windows), keeping the user's other settings, and docs/features/integrations/mcp-clients.md names that file. Zed's settings.json may hold comments and trailing commas, which json.load refuses, so the install either merges it without dropping them or refuses with a message that prints the entry to paste. Zed's docs also show a remote server as url + headers, so the npx mcp-remote bridge may no longer be needed for it.

Error message and logs

No response

Environment

Loom main at d88b943; Python 3.12.3; Linux. Zed not installed, so that Zed does not list the server is unconfirmed.

Related issues and pull requests

Related: #614
Related: #707

How this was found

An AI tool found it, and I have not reproduced it myself

Additional context

The AI tool ran loom install --client zed --dry-run on main, which names ~/.config/zed/mcp.json; that is what "reproduces" above refers to. Nobody has checked Zed itself.

The fix changes the same files as the OpenCode install issue (loom install --client opencode) and the Gemini CLI install issue (loom install --client gemini): server/identity/app/token_clients.py, server/cli/install.py, frontend/src/lib/clients.ts and frontend/src/lib/clientSetups.fixture.json. Taken in parallel, expect to rebase onto whichever merges first.

Redaction

  • I removed tokens, keys, passwords and personal or customer data from everything above.

Activity

  1. added
    bug
    on Nov 16, 2026
  2. rahulsjha commented on Nov 16, 2026

    @rahulsjha
    Contributor

    Hi @zlareb1, I'd like to take this, and fill Zed's Checked cell for #707 in the same go since you noted it answers this bug. Plan: install Zed on macOS, confirm whether it lists a server from ~/.config/zed/mcp.json versus context_servers in settings.json (screenshot of Zed's MCP panel plus version), then point the zed row of CONFIG_PATHS in server/identity/app/token_clients.py at settings.json (%APPDATA%\Zed\settings.json on Windows), make sure the merge keeps the user's other settings (Zed's file can hold comments, so I'll check how _install_one reads it), and fix both spots in docs/features/integrations/mcp-clients.md plus tests/unit/test_token_clients.py / test_cli_install.py. Could you assign it to me?

  3. zlareb1 commented on Nov 16, 2026

    @zlareb1
    MemberAuthor

    @sjin66 is already working on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions