@brain-mcps/setup 0.2.0 → 0.2.2
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/index.js +9 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50,8 +50,8 @@ const PRODUCT_URLS = {
|
|
|
50
50
|
mentor: "https://mcp.mentor4ai.app/mcp",
|
|
51
51
|
};
|
|
52
52
|
const PRODUCT_SERVER_NAMES = {
|
|
53
|
-
brain: "
|
|
54
|
-
mentor: "
|
|
53
|
+
brain: "brain4ai",
|
|
54
|
+
mentor: "mentor4ai",
|
|
55
55
|
};
|
|
56
56
|
// ── Client Definitions ───────────────────────────────────────────────────
|
|
57
57
|
const CLAUDE_DESKTOP_PLATFORMS = ["darwin", "win32"];
|
|
@@ -136,6 +136,13 @@ function readConfigFile(filepath, format) {
|
|
|
136
136
|
if (!fs.existsSync(filepath))
|
|
137
137
|
return {};
|
|
138
138
|
const raw = fs.readFileSync(filepath, "utf-8");
|
|
139
|
+
// An existing but empty (or whitespace-only) file is a valid "no config
|
|
140
|
+
// yet" state, not a parse error. Antigravity's own migration pre-creates
|
|
141
|
+
// an empty ~/.gemini/config/mcp_config.json, and JSON.parse("") throws
|
|
142
|
+
// ("Unexpected end of JSON input"), which would abort the whole setup.
|
|
143
|
+
// Treat it as an empty object so the non-destructive merge starts clean.
|
|
144
|
+
if (raw.trim() === "")
|
|
145
|
+
return {};
|
|
139
146
|
if (format === "toml") {
|
|
140
147
|
return (0, smol_toml_1.parse)(raw);
|
|
141
148
|
}
|