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: packages/docs/mcp-server.mdx
+104-6Lines changed: 104 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -222,9 +222,15 @@ Save and reload Windsurf.
222
222
223
223
If you're connecting to a self-hosted Comp AI deployment instead of the hosted Comp AI service, you must include the `--server-url` argument in your MCP server configuration.
224
224
225
-
Hosted Comp AI users do not need to specify --server-url.
225
+
Hosted Comp AI users do not need to specify `--server-url`.
226
226
227
-
### Example
227
+
Choose your AI client below and update its configuration by adding the `--server-url` argument.
228
+
229
+
<Tabs>
230
+
231
+
<Tabtitle="Claude Desktop">
232
+
233
+
Update the manual JSON configuration by adding the `--server-url` argument.
228
234
229
235
```json
230
236
{
@@ -244,14 +250,106 @@ Hosted Comp AI users do not need to specify --server-url.
244
250
}
245
251
}
246
252
```
253
+
</Tab>
254
+
255
+
<Tabtitle="Cursor">
256
+
257
+
Update the manual JSON configuration by adding the `--server-url` argument.
258
+
259
+
```json
260
+
{
261
+
"command": "npx",
262
+
"args": [
263
+
"-y",
264
+
"@trycompai/mcp-server",
265
+
"start",
266
+
"--apikey",
267
+
"comp_your_api_key_here",
268
+
"--server-url",
269
+
"https://your-self-hosted-comp-api.example.com"
270
+
]
271
+
}
272
+
```
273
+
</Tab>
274
+
275
+
<Tabtitle="VS Code">
276
+
277
+
Update your MCP configuration by adding the `--server-url` argument.
278
+
279
+
```json
280
+
{
281
+
"command": "npx",
282
+
"args": [
283
+
"-y",
284
+
"@trycompai/mcp-server",
285
+
"start",
286
+
"--apikey",
287
+
"comp_your_api_key_here",
288
+
"--server-url",
289
+
"https://your-self-hosted-comp-api.example.com"
290
+
]
291
+
}
292
+
```
293
+
</Tab>
294
+
295
+
<Tabtitle="Claude Code (CLI)">
296
+
297
+
Append the `--server-url` argument to your existing installation command.
298
+
299
+
```bash
300
+
claude mcp add CompAI -- npx -y @trycompai/mcp-server start \
0 commit comments