From fdeef9cece36b80ad9b8df8ab89bedb8d4b5cf02 Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Fri, 26 Sep 2025 17:51:54 -0700 Subject: [PATCH] fix: uses homedir instead of hardcoded tilde for MCP path --- src/core/storage/disk.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/storage/disk.ts b/src/core/storage/disk.ts index 16c19d5c..34b14bf3 100644 --- a/src/core/storage/disk.ts +++ b/src/core/storage/disk.ts @@ -99,7 +99,7 @@ export async function ensureMcpServersDirectoryExists(): Promise { try { await fs.mkdir(mcpServersDir, { recursive: true }) } catch (_error) { - return "~/Documents/Cline/MCP" // in case creating a directory in documents fails for whatever reason (e.g. permissions) - this is fine since this path is only ever used in the system prompt + return path.join(os.homedir(), "Documents", "Cline", "MCP") // in case creating a directory in documents fails for whatever reason (e.g. permissions) - this is fine since this path is only ever used in the system prompt } return mcpServersDir }