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.
- package/dist/agent/mcp-bridge.js +13 -7
- package/package.json +1 -1
package/dist/agent/mcp-bridge.js
CHANGED
|
@@ -86,12 +86,18 @@ export function discoverMcpServers() {
|
|
|
86
86
|
}
|
|
87
87
|
catch { /* ignore */ }
|
|
88
88
|
// 2. Claude Code settings — project-level MCP configs
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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');
|