Add Zed client configuration#143
Merged
slimslenderslacks merged 5 commits intodocker:mainfrom Sep 17, 2025
Merged
Conversation
Add package for JSON parsing that supports comments used in Zed's `$HOME/.config/zed/settings.json`. Without JSON parsing that understands comments yq fails to read the settings.json file. https://github.com/tailscale/hujson
Add preprocessing to handle comments in JSON using tailscale/hujson.
Add client configuration for Zed https://zed.dev/ Addresses docker#58
slimslenderslacks
approved these changes
Sep 17, 2025
null-runner
pushed a commit
to null-runner/mcp-gateway
that referenced
this pull request
Dec 6, 2025
* Add tailscale/hujson for JSON parsing Add package for JSON parsing that supports comments used in Zed's `$HOME/.config/zed/settings.json`. Without JSON parsing that understands comments yq fails to read the settings.json file. https://github.com/tailscale/hujson * style: Fix indentation * Add preprocessing of input Add preprocessing to handle comments in JSON using tailscale/hujson. * feat: Add Zed client Add client configuration for Zed https://zed.dev/ Addresses docker#58 * chore: update docs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What I did
Added support for the Zed editor to
docker mcp clientcommands:docker mcp client connect zed -gdocker mcp client disconnect zed -gdocker mcp client ls -gThe zed configuration file at
$HOME/.config/zed/settings.jsoncontains comments (example in test datacmd/docker-mcp/client/testdata/add_del/zed-append/original.jsonc).This would cause errors when trying to parse the file with json encoder provided by yqlib (NewJSONEncoder). This PR adds tailscale/hujson to do the initial parsing and then turn into valid JSON before passing the data onto the JSONEncoder provided by yqlib.
Additionally, did some reformatting of config.yml
Note
This process is destructive and comments in the settings file are not preserved. You can see what the expected output format is in the test data (
cmd/docker-mcp/client/testdata/add_del/zed-append/after-add.json)Another Note
The image in Docker Desktop is broken for Zed. The pattern is to host the image from this repository (e.g. Goose image). An image from the resources section of Zed's website has been added for "Zed Stable."
Demo
zed-docker-mcp-client.mp4
zed-docker-desktop-mcp-client.mp4
Related issue
Addresses #58
(not mandatory) A picture of a cute animal, if possible in relation to what you did