Update ClineProvider.ts

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
Hannes Rudolph 2025-03-10 18:49:25 -06:00 committed by GitHub
parent abcb7c18b4
commit 7462906b7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1988,7 +1988,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
await fs.mkdir(mcpServersDir, { recursive: true })
} catch (error) {
// Fallback to a relative path if directory creation fails
return path.join("~", ".roo-code", "mcp")
return path.join(os.homedir(), ".roo-code", "mcp")
}
return mcpServersDir
}