claude-bridge-cli 2.0.25 → 2.0.26
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/lib/bridge.js +13 -0
- package/package.json +1 -1
package/lib/bridge.js
CHANGED
|
@@ -1235,6 +1235,19 @@ function startBridge(config) {
|
|
|
1235
1235
|
transport: servers[n].type || (servers[n].url ? "http" : "stdio"),
|
|
1236
1236
|
target: servers[n].url || servers[n].command || "",
|
|
1237
1237
|
}));
|
|
1238
|
+
// claude.ai CONNECTORS (Gmail, Drive, Gamma…) come from the signed-in
|
|
1239
|
+
// ACCOUNT, not local config, so neither mcpServers nor `claude mcp list`
|
|
1240
|
+
// shows them — yet sessions really do get their tools. Without this a
|
|
1241
|
+
// machine whose only MCP access is connectors reports "no servers".
|
|
1242
|
+
try {
|
|
1243
|
+
const cfg = JSON.parse(fs.readFileSync(path.join(homeDir(), ".claude.json"), "utf8"));
|
|
1244
|
+
for (const n of cfg.claudeAiMcpEverConnected || []) {
|
|
1245
|
+
if (!out.some((s) => s.name === n)) {
|
|
1246
|
+
out.push({ name: n, transport: "claude.ai connector", target: "", connector: true });
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
} catch {}
|
|
1250
|
+
out.sort((a, b) => a.name.localeCompare(b.name));
|
|
1238
1251
|
const want = url.searchParams.get("health");
|
|
1239
1252
|
if (out.length && want && want !== "0" && want !== "false") {
|
|
1240
1253
|
const now = Date.now();
|
package/package.json
CHANGED