Skip to content

Commit 502c06a

Browse files
committed
Added cline support
1 parent ba3f6d7 commit 502c06a

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

packages/cli-v3/src/commands/install-mcp.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ import { cliLink } from "../utilities/cliOutput.js";
1111
const cliVersion = VERSION as string;
1212
const cliTag = cliVersion.includes("v4-beta") ? "v4-beta" : "latest";
1313

14-
const clients = ["claude-code", "cursor", "vscode", "windsurf", "gemini-cli", "crush"] as const;
14+
const clients = [
15+
"claude-code",
16+
"cursor",
17+
"vscode",
18+
"windsurf",
19+
"gemini-cli",
20+
"crush",
21+
"cline",
22+
] as const;
1523
const scopes = ["user", "project", "local"] as const;
1624

1725
type ClientScopes = {
@@ -46,6 +54,9 @@ const clientScopes: ClientScopes = {
4654
project: "./crush.json",
4755
local: "./.crush.json",
4856
},
57+
cline: {
58+
user: "~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json",
59+
},
4960
};
5061

5162
const InstallMcpCommandOptions = z.object({
@@ -281,6 +292,9 @@ function resolveMcpServerConfigJsonPath(
281292
case "gemini-cli": {
282293
return ["mcpServers", "trigger"];
283294
}
295+
case "cline": {
296+
return ["mcpServers", "trigger"];
297+
}
284298
case "claude-code": {
285299
if (scope.scope === "local") {
286300
const projectPath = process.cwd();
@@ -353,6 +367,12 @@ function resolveMcpServerConfig(
353367
args,
354368
};
355369
}
370+
case "cline": {
371+
return {
372+
command: "npx",
373+
args,
374+
};
375+
}
356376
}
357377
}
358378

0 commit comments

Comments
 (0)