Skip to content

Commit c565d64

Browse files
committed
Replace Claude Desktop with Claude Code (verified path: ~/.claude-code/mcp.json)
1 parent db18163 commit c565d64

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

cli/bin/postgres-ai.ts

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,13 +1194,13 @@ mcp
11941194
.command("install [client]")
11951195
.description("install MCP server configuration for AI coding tool")
11961196
.action(async (client?: string) => {
1197-
const supportedClients = ["cursor", "claude", "windsurf", "codex"];
1197+
const supportedClients = ["cursor", "claude-code", "windsurf", "codex"];
11981198

11991199
// If no client specified, prompt user to choose
12001200
if (!client) {
12011201
console.log("Available AI coding tools:");
12021202
console.log(" 1. Cursor");
1203-
console.log(" 2. Claude Desktop");
1203+
console.log(" 2. Claude Code");
12041204
console.log(" 3. Windsurf");
12051205
console.log(" 4. Codex");
12061206
console.log("");
@@ -1217,7 +1217,7 @@ mcp
12171217

12181218
const choices: Record<string, string> = {
12191219
"1": "cursor",
1220-
"2": "claude",
1220+
"2": "claude-code",
12211221
"3": "windsurf",
12221222
"4": "codex"
12231223
};
@@ -1251,19 +1251,8 @@ mcp
12511251
configDir = path.dirname(configPath);
12521252
break;
12531253

1254-
case "claude":
1255-
if (process.platform === "darwin") {
1256-
configPath = path.join(homeDir, "Library", "Application Support", "Claude", "claude_desktop_config.json");
1257-
} else if (process.platform === "win32") {
1258-
configPath = path.join(process.env.APPDATA || "", "Claude", "claude_desktop_config.json");
1259-
} else {
1260-
configPath = path.join(homeDir, ".config", "Claude", "claude_desktop_config.json");
1261-
}
1262-
configDir = path.dirname(configPath);
1263-
break;
1264-
1265-
case "vscode":
1266-
configPath = path.join(homeDir, ".vscode", "mcp.json");
1254+
case "claude-code":
1255+
configPath = path.join(homeDir, ".claude-code", "mcp.json");
12671256
configDir = path.dirname(configPath);
12681257
break;
12691258

0 commit comments

Comments
 (0)