mentat-mcp 1.0.3 → 1.0.4
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.
- package/dist/setup.js +3 -13
- package/package.json +1 -1
- package/src/setup.ts +3 -12
package/dist/setup.js
CHANGED
|
@@ -203,22 +203,12 @@ async function configureClaudeCode(token) {
|
|
|
203
203
|
}
|
|
204
204
|
/**
|
|
205
205
|
* Get Claude Code config path based on OS
|
|
206
|
+
* Claude Code CLI uses ~/.claude.json
|
|
206
207
|
*/
|
|
207
208
|
function getClaudeConfigPath() {
|
|
208
209
|
const home = process.env.HOME || process.env.USERPROFILE || '';
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
return path.join(home, 'Library', 'Application Support', 'Claude', 'claude_desktop_config.json');
|
|
212
|
-
}
|
|
213
|
-
else if (process.platform === 'win32') {
|
|
214
|
-
// Windows
|
|
215
|
-
return path.join(home, 'AppData', 'Roaming', 'Claude', 'claude_desktop_config.json');
|
|
216
|
-
}
|
|
217
|
-
else if (process.platform === 'linux') {
|
|
218
|
-
// Linux
|
|
219
|
-
return path.join(home, '.config', 'Claude', 'claude_desktop_config.json');
|
|
220
|
-
}
|
|
221
|
-
return null;
|
|
210
|
+
// Claude Code CLI config (not Claude Desktop!)
|
|
211
|
+
return path.join(home, '.claude.json');
|
|
222
212
|
}
|
|
223
213
|
/**
|
|
224
214
|
* Open URL in default browser
|
package/package.json
CHANGED
package/src/setup.ts
CHANGED
|
@@ -241,22 +241,13 @@ async function configureClaudeCode(token: string): Promise<void> {
|
|
|
241
241
|
|
|
242
242
|
/**
|
|
243
243
|
* Get Claude Code config path based on OS
|
|
244
|
+
* Claude Code CLI uses ~/.claude.json
|
|
244
245
|
*/
|
|
245
246
|
function getClaudeConfigPath(): string | null {
|
|
246
247
|
const home = process.env.HOME || process.env.USERPROFILE || '';
|
|
247
248
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
return path.join(home, 'Library', 'Application Support', 'Claude', 'claude_desktop_config.json');
|
|
251
|
-
} else if (process.platform === 'win32') {
|
|
252
|
-
// Windows
|
|
253
|
-
return path.join(home, 'AppData', 'Roaming', 'Claude', 'claude_desktop_config.json');
|
|
254
|
-
} else if (process.platform === 'linux') {
|
|
255
|
-
// Linux
|
|
256
|
-
return path.join(home, '.config', 'Claude', 'claude_desktop_config.json');
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
return null;
|
|
249
|
+
// Claude Code CLI config (not Claude Desktop!)
|
|
250
|
+
return path.join(home, '.claude.json');
|
|
260
251
|
}
|
|
261
252
|
|
|
262
253
|
/**
|