ZED - bhauman/clojure-mcp GitHub Wiki

ZED

The Zed editor is fast and has a built-in agent panel. This page describes getting Clojure-MCP up and running in ZED.

Register Clojure-MCP

In your ~/.config/zed/settings.json you can add your MCP Server info. This is accessible via Zed's command palette, the Agent Settings menu, or your filesystem. Here, we are using Bruce's base command.

Screenshot 2025-06-13 at 11 24 00 AM

When your Clojure-MCP is running, you will see it and it's tools in the Agent Setting Panel in the MCP section. At the moment (20250613), I don't believe ZED supports MCP resources.

Screenshot 2025-06-13 at 11 23 40 AM

Setup a Profile

  • Bruce suggests that only ONE set of tools should have write access. So you want to create a profile where only Clojreu-MCP can write to your files. Note, as per Claude Desktop you can choose which tools to allow access to.
  • Create a Profile for Clojure-MCP that tells the Agent what it can do.
  • Note the build-in Write has a number of built-in tools but that we are not using any of them in the Clojure-MCP profile.
// ~/config/zed/settings.json
  "agent": {
    "profiles": {
      "clojure-mcp": {
        "name": "Clojure-MCP",
        "enable_all_context_servers": false,
        "context_servers": {
          "Clojure-MCP": {
            "tools": {
              "think": true,
              "scratch_pad": true,
              "read_file": true,
              "grep": true,
              "glob_files": true,
              "file_write": true,
              "file_edit": true,
              "dispatch_agent": true,
              "code_critique": true,
              "clojure_inspect_project": true,
              "clojure_eval": true,
              "clojure_edit_replace_sexp": true,
              "clojure_edit": true,
              "bash": true,
              "architect": true,
              "LS": true
            }
          },

      "write": {
        "name": "Write",
        "tools": {
          "batch_tool": true,
          "code_actions": false,
          "code_symbols": false,
          "contents": false,
          "copy_path": false,
          "create_file": true,
          "delete_path": false,
          "diagnostics": true,
          "edit_file": true,
          "fetch": true,
          "list_directory": true,
          "move_path": false,
          "now": false,
          "find_path": true,
          "read_file": true,
          "grep": true,
          "rename": false,
          "symbol_info": false,
          "terminal": true,
          "thinking": true,
          "web_search": true
        },
        "enable_all_context_servers": true,
        "context_servers": {}