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 }