@phidiassj/aiyoperps-mcp-installer 0.6.7 → 0.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1003,10 +1003,31 @@ function getClaudeDesktopCandidates() {
|
|
|
1003
1003
|
|
|
1004
1004
|
if (process.platform === 'win32') {
|
|
1005
1005
|
const appData = env.APPDATA || path.join(env.USERPROFILE || os.homedir(), 'AppData', 'Roaming');
|
|
1006
|
-
|
|
1006
|
+
const localAppData = env.LOCALAPPDATA || path.join(env.USERPROFILE || os.homedir(), 'AppData', 'Local');
|
|
1007
|
+
const candidates = [
|
|
1007
1008
|
path.join(appData, 'Claude', 'claude_desktop_config.json'),
|
|
1008
1009
|
path.join(appData, 'Claude', 'config.json')
|
|
1009
1010
|
];
|
|
1011
|
+
|
|
1012
|
+
const packagesRoot = path.join(localAppData, 'Packages');
|
|
1013
|
+
if (fs.existsSync(packagesRoot)) {
|
|
1014
|
+
try {
|
|
1015
|
+
const packageDirs = fs.readdirSync(packagesRoot, { withFileTypes: true })
|
|
1016
|
+
.filter(entry => entry.isDirectory())
|
|
1017
|
+
.map(entry => entry.name)
|
|
1018
|
+
.filter(name => name.toLowerCase().startsWith('claude_'));
|
|
1019
|
+
|
|
1020
|
+
for (const packageDir of packageDirs) {
|
|
1021
|
+
candidates.push(
|
|
1022
|
+
path.join(packagesRoot, packageDir, 'LocalCache', 'Roaming', 'Claude', 'claude_desktop_config.json'),
|
|
1023
|
+
path.join(packagesRoot, packageDir, 'LocalCache', 'Roaming', 'Claude', 'config.json'));
|
|
1024
|
+
}
|
|
1025
|
+
} catch {
|
|
1026
|
+
// Ignore directory enumeration failures and keep default candidates.
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
return [...new Set(candidates)];
|
|
1010
1031
|
}
|
|
1011
1032
|
|
|
1012
1033
|
if (process.platform === 'darwin') {
|