You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/agent-integrations.mdx
+51-2Lines changed: 51 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,11 +188,60 @@ Then configure the Container Use MCP server in the Zed `settings.json`. Provide
188
188
}
189
189
```
190
190
191
-
Next open the Zed Agent Panel ✨ in the lower right and prompt away!
191
+
### Add Container Use Agent Profile (Optional)
192
+
193
+
To lock the Zed agent out of your host system, you can create a dedicated agent profile that only enables Container Use tools. Add this to your `settings.json` under the `agent` section:
194
+
195
+
```json
196
+
"agent": {
197
+
"profiles": {
198
+
"container-use": {
199
+
"name": "Container Use",
200
+
"tools": {
201
+
"fetch": true,
202
+
"thinking": true,
203
+
"copy_path": false,
204
+
"find_path": false,
205
+
"delete_path": false,
206
+
"create_directory": false,
207
+
"list_directory": false,
208
+
"diagnostics": false,
209
+
"read_file": false,
210
+
"open": false,
211
+
"move_path": false,
212
+
"grep": false,
213
+
"edit_file": false,
214
+
"terminal": false
215
+
},
216
+
"enable_all_context_servers": false,
217
+
"context_servers": {
218
+
"container-use": {
219
+
"tools": {
220
+
"environment_create": true,
221
+
"environment_add_service": true,
222
+
"environment_update": true,
223
+
"environment_run_cmd": true,
224
+
"environment_open": true,
225
+
"environment_file_write": true,
226
+
"environment_file_read": true,
227
+
"environment_file_list": true,
228
+
"environment_file_delete": true,
229
+
"environment_checkpoint": true
230
+
}
231
+
}
232
+
}
233
+
}
234
+
}
235
+
}
236
+
```
237
+
238
+
This profile ensures your agent can only use Container Use tools, preventing it from modifying your local files directly.
239
+
240
+
Next open the Zed Agent Panel ✨ in the lower right, select the "Container Use" profile from the dropdown to the left of the model dropdown, and prompt away!
192
241
193
242
## OpenCode
194
243
195
-
Configure the Container Use MCP server in a `opencode.json` file.
244
+
Configure the Container Use MCP server in a `opencode.json` file.
196
245
197
246
> Note: Provide the absolute path to your systems `cu` executable:
0 commit comments