sonance-brand-mcp 1.3.114 → 1.3.115

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.
Files changed (2) hide show
  1. package/dist/index.js +36 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -60,7 +60,18 @@ function runInstaller() {
60
60
  console.log(" 📄 Found existing Claude config");
61
61
  }
62
62
  catch {
63
- console.log(" ⚠️ Could not parse existing config, creating new one");
63
+ console.log("");
64
+ console.log(" ❌ Error: Could not parse existing Claude config");
65
+ console.log("");
66
+ console.log(" Your config file may have invalid JSON (trailing commas, comments, etc.)");
67
+ console.log(` Please fix the file manually: ${configPath}`);
68
+ console.log("");
69
+ console.log(" Common issues:");
70
+ console.log(" - Trailing commas after the last item in objects/arrays");
71
+ console.log(" - Comments (// or /* */) which are not valid JSON");
72
+ console.log(" - Missing quotes around keys");
73
+ console.log("");
74
+ process.exit(1);
64
75
  }
65
76
  }
66
77
  else {
@@ -136,7 +147,18 @@ function runClaudeCodeInstaller() {
136
147
  console.log(" 📄 Found existing .mcp.json");
137
148
  }
138
149
  catch {
139
- console.log(" ⚠️ Could not parse existing .mcp.json, creating new one");
150
+ console.log("");
151
+ console.log(" ❌ Error: Could not parse existing .mcp.json");
152
+ console.log("");
153
+ console.log(" Your config file may have invalid JSON (trailing commas, comments, etc.)");
154
+ console.log(` Please fix the file manually: ${configPath}`);
155
+ console.log("");
156
+ console.log(" Common issues:");
157
+ console.log(" - Trailing commas after the last item in objects/arrays");
158
+ console.log(" - Comments (// or /* */) which are not valid JSON");
159
+ console.log(" - Missing quotes around keys");
160
+ console.log("");
161
+ process.exit(1);
140
162
  }
141
163
  }
142
164
  else {
@@ -214,7 +236,18 @@ function runCursorInstaller() {
214
236
  console.log(" 📄 Found existing .cursor/mcp.json");
215
237
  }
216
238
  catch {
217
- console.log(" ⚠️ Could not parse existing mcp.json, creating new one");
239
+ console.log("");
240
+ console.log(" ❌ Error: Could not parse existing .cursor/mcp.json");
241
+ console.log("");
242
+ console.log(" Your config file may have invalid JSON (trailing commas, comments, etc.)");
243
+ console.log(` Please fix the file manually: ${configPath}`);
244
+ console.log("");
245
+ console.log(" Common issues:");
246
+ console.log(" - Trailing commas after the last item in objects/arrays");
247
+ console.log(" - Comments (// or /* */) which are not valid JSON");
248
+ console.log(" - Missing quotes around keys");
249
+ console.log("");
250
+ process.exit(1);
218
251
  }
219
252
  }
220
253
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonance-brand-mcp",
3
- "version": "1.3.114",
3
+ "version": "1.3.115",
4
4
  "description": "MCP Server for Sonance Brand Guidelines and Component Library - gives Claude instant access to brand colors, typography, and UI components.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",