Skip to content

Commit 334f7ec

Browse files
authored
feat(mcp): add Zed client to MCP setup sheet (#1136)
1 parent 1a19531 commit 334f7ec

5 files changed

Lines changed: 50 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- MCP Setup sheet adds Zed alongside Claude Desktop, Claude Code, and Cursor with a one-paste `context_servers` snippet
13+
1014
### Changed
1115

1216
- PostgreSQL SQL export emits foreign key constraints via `ALTER TABLE ... ADD CONSTRAINT` after data load and resyncs sequences via `setval` so a re-imported dump round-trips cleanly even when child tables sort before parents (#1114)

TablePro/Views/Integrations/IntegrationsSetupSheet.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ private struct IntegrationsSetupInstructions: View {
107107
String(localized: "Click \"+ Add new global MCP server\""),
108108
String(localized: "Paste the JSON below and save")
109109
]
110+
case .zed:
111+
[
112+
String(localized: "Open Zed and click the Agent Panel icon in the right side of the title bar"),
113+
String(localized: "Click the menu in the Agent Panel header and choose Settings"),
114+
String(localized: "Under MCP Servers click \"+ Add Custom Server\", select the Local tab, paste the JSON below, then click Add Server")
115+
]
110116
}
111117
}
112118

@@ -122,6 +128,15 @@ private struct IntegrationsSetupInstructions: View {
122128
}
123129
}
124130
"""
131+
case .zed:
132+
return """
133+
{
134+
"tablepro": {
135+
"command": "\(bridgeBinaryPath)",
136+
"args": []
137+
}
138+
}
139+
"""
125140
case .claudeCode:
126141
return nil
127142
}

TablePro/Views/Settings/Components/IntegrationClient.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ enum IntegrationClient: String, CaseIterable, Identifiable, Sendable {
44
case claudeCode
55
case claudeDesktop
66
case cursor
7+
case zed
78

89
var id: String { rawValue }
910

@@ -12,6 +13,7 @@ enum IntegrationClient: String, CaseIterable, Identifiable, Sendable {
1213
case .claudeCode: return String(localized: "Claude Code")
1314
case .claudeDesktop: return String(localized: "Claude Desktop")
1415
case .cursor: return String(localized: "Cursor")
16+
case .zed: return String(localized: "Zed")
1517
}
1618
}
1719
}

TablePro/Views/Settings/Sections/MCPTokenRevealSheet.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,17 @@ struct MCPTokenRevealSheet: View {
147147
}
148148
}
149149
"""
150+
case .zed:
151+
return """
152+
{
153+
"tablepro": {
154+
"url": "\(baseURL)",
155+
"headers": {
156+
"Authorization": "Bearer \(plaintext)"
157+
}
158+
}
159+
}
160+
"""
150161
}
151162
}
152163

docs/external-api/mcp-clients.mdx

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,34 @@ If you prefer JSON, drop the same shape into `.continue/mcpServers/tablepro.json
115115

116116
## Zed
117117

118-
Zed keys MCP servers under `context_servers`, not `mcpServers`. Edit `~/.config/zed/settings.json` (or open it via **Zed > Settings**):
118+
Two paths, pick one.
119+
120+
**Add Custom Server (Agent Panel UI).** Open the Agent Panel, click the menu in its header, choose **Settings**, then under **MCP Servers** click **+ Add Custom Server** and select the **Local** tab. Paste:
121+
122+
```json
123+
{
124+
"tablepro": {
125+
"command": "/Applications/TablePro.app/Contents/MacOS/tablepro-mcp",
126+
"args": []
127+
}
128+
}
129+
```
130+
131+
Click **Add Server**. The dialog's Local schema requires `args` even though Zed's documented schema treats it as optional, so include the empty array.
132+
133+
**Edit settings.json directly.** Open `~/.config/zed/settings.json` (or **Zed > Settings**) and add the entry under `context_servers` (Zed's key for MCP servers, not `mcpServers`):
119134

120135
```json
121136
{
122137
"context_servers": {
123138
"tablepro": {
124-
"command": "/Applications/TablePro.app/Contents/MacOS/tablepro-mcp",
125-
"args": [],
126-
"env": {}
139+
"command": "/Applications/TablePro.app/Contents/MacOS/tablepro-mcp"
127140
}
128141
}
129142
}
130143
```
131144

132-
Open the Agent Panel; the TablePro entry should show a green status dot.
145+
Here `args` and `env` are optional. Reload the Agent Panel; the TablePro entry should show a green status dot.
133146

134147
## Windsurf
135148

0 commit comments

Comments
 (0)