Skip to content

Commit 365a866

Browse files
committed
Amp support
1 parent 502c06a commit 365a866

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const clients = [
1919
"gemini-cli",
2020
"crush",
2121
"cline",
22+
"amp",
2223
] as const;
2324
const scopes = ["user", "project", "local"] as const;
2425

@@ -57,6 +58,9 @@ const clientScopes: ClientScopes = {
5758
cline: {
5859
user: "~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json",
5960
},
61+
amp: {
62+
user: "~/.config/amp/settings.json",
63+
},
6064
};
6165

6266
const InstallMcpCommandOptions = z.object({
@@ -91,7 +95,8 @@ export function configureInstallMcpCommand(program: Command) {
9195
.option("--scope <scope>", "Choose the scope of the MCP server, either user or project")
9296
.option(
9397
"--client <clients...>",
94-
"Choose the client (or clients) to install the MCP server into"
98+
"Choose the client (or clients) to install the MCP server into. We currently support: " +
99+
clients.join(", ")
95100
)
96101
.option("--log-file <log file>", "Configure the MCP server to write logs to a file")
97102
.option(
@@ -295,6 +300,9 @@ function resolveMcpServerConfigJsonPath(
295300
case "cline": {
296301
return ["mcpServers", "trigger"];
297302
}
303+
case "amp": {
304+
return ["amp.mcpServers", "trigger"];
305+
}
298306
case "claude-code": {
299307
if (scope.scope === "local") {
300308
const projectPath = process.cwd();
@@ -373,6 +381,12 @@ function resolveMcpServerConfig(
373381
args,
374382
};
375383
}
384+
case "amp": {
385+
return {
386+
command: "npx",
387+
args,
388+
};
389+
}
376390
}
377391
}
378392

0 commit comments

Comments
 (0)