clementine-agent 1.18.138 → 1.18.139

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.
@@ -86,12 +86,18 @@ export function discoverMcpServers() {
86
86
  }
87
87
  catch { /* ignore */ }
88
88
  // 2. Claude Code settings — project-level MCP configs
89
- try {
90
- const claudeDir = path.join(os.homedir(), '.claude');
91
- const settingsFile = path.join(claudeDir, 'settings.json');
92
- if (existsSync(settingsFile)) {
93
- const settings = JSON.parse(readFileSync(settingsFile, 'utf-8'));
94
- // Check mcpServers in settings
89
+ // Two files to check: ~/.claude/settings.json (newer; user-edited)
90
+ // and ~/.claude.json (where `claude mcp add` writes by default).
91
+ // Both surface mcpServers; we read both so users get the same set
92
+ // that Claude Code sees.
93
+ for (const claudeFile of [
94
+ path.join(os.homedir(), '.claude', 'settings.json'),
95
+ path.join(os.homedir(), '.claude.json'),
96
+ ]) {
97
+ try {
98
+ if (!existsSync(claudeFile))
99
+ continue;
100
+ const settings = JSON.parse(readFileSync(claudeFile, 'utf-8'));
95
101
  for (const [name, config] of Object.entries(settings.mcpServers ?? {})) {
96
102
  if (servers.has(name))
97
103
  continue;
@@ -110,8 +116,8 @@ export function discoverMcpServers() {
110
116
  });
111
117
  }
112
118
  }
119
+ catch { /* skip malformed file */ }
113
120
  }
114
- catch { /* ignore */ }
115
121
  // 3. Claude Desktop Extensions (newer format — ant.dir.* directories)
116
122
  try {
117
123
  const extensionsDir = path.join(os.homedir(), 'Library', 'Application Support', 'Claude', 'Claude Extensions');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clementine-agent",
3
- "version": "1.18.138",
3
+ "version": "1.18.139",
4
4
  "description": "Clementine — Personal AI Assistant (TypeScript)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",