Integrate with Zed

This topic explains how to integrate Devart MCP Server with Zed so that you can interact with your data source in the Zed app. You can configure the integration by using the MCP Server connection manager or by editing the Zed configuration file.

Note

Before you start, make sure that MCP Server has an active connection to the data source. For instructions, see Connection configuration.

Use the MCP Server connection manager

1. In Devart MCP Server, open the connection for editing in one of these ways:

  • Double-click the connection.
  • Click the ellipsis (…) and select Edit.

Devart MCP Server window showing a selected connection, with the Edit option highlighted in the three-dot menu.

2. On the Integration tab, under Zed, click Register.

3. Optional: Modify the connector name that will appear in the Zed app.

4. Click Save.

Edit MCP Server screen showing the Integration tab, with Zed registered.

5. Restart Zed.

Devart MCP Server is now integrated with Zed, and the connector appears in the Zed app in Settings > Model Context Protocol (MCP) Servers.

Note

If you have multiple connections configured in Devart MCP Server, repeat the integration process for every connection. Connector names must be unique.

The devart connector in the Zed app.

Use the Zed configuration file

1. Open settings.json, the Zed configuration file.

Tip

If you can’t locate the configuration file, it may not exist yet. To have it created directly in the Zed app, on the main menu, select Open Settings, then click Edit in settings.json. The settings.json file opens.

2. Add one of the following objects, depending on the transport protocol used by MCP Server:

  • STDIO

    {
      "proxy": "",
      "cli_default_open_behavior": "existing_window",
      "base_keymap": "VSCode",
      "context_servers": {
        "devart": {
          "source": "custom",
          "command": "C:\\Program Files\\Devart\\MCP Server for <data_source_name>\\Devart.AI.McpServer.Odbc.<data_source_name>.exe",
          "args": [
            "run",
            "devart"
          ]
        }
      }
    }
    

    where:

    • devart is the connector name that will appear in Zed.

    • <data_source_name> is the name of the target data source.

  • HTTP

    {
      "proxy": "",
      "cli_default_open_behavior": "existing_window",
      "base_keymap": "VSCode",
      "context_servers": {
        "devart": {
          "url": "http://localhost:5500/sse"
        }
      }
    }
    

    where:

    • devart is the connector name that will appear in Zed.
    • 5500 is the port specified in the MCP settings for the connection.

Notepad++ window showing `settings.json` with MCP server and preferences settings in JSON format.

3. Save the file.

4. Restart Zed.

Devart MCP Server is now integrated with Zed, and devart appears in the Zed app in Settings > Model Context Protocol (MCP) Servers.

The Zed app screen showing the highlighted devart connector tool and its permissions.

Add multiple connections

To use multiple connections in Zed, add another connector entry to the context_servers object in settings.json.

{
  "proxy": "",
  "cli_default_open_behavior": "existing_window",
  "base_keymap": "VSCode",
  "context_servers": {
    "devart_mysql": {
      "source": "custom",
      "url": "http://localhost:5500/sse"
    },
    "devart_pg": {
      "source": "custom",
      "url": "http://localhost:3306/sse"
    }
  }
}