@cloudstreamsoftware/claude-tools 1.2.4 → 1.2.5

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.
@@ -305,21 +305,23 @@ async function storeCredentials(licenseKey, installType) {
305
305
 
306
306
  /**
307
307
  * Configure MCP server connection
308
+ * Merges into settings.json (same pattern as mergeHooksIntoSettings)
308
309
  */
309
310
  async function configureMcpServer(licenseKey) {
310
- const mcpConfigPath = path.join(CONFIG.claudeDir, 'mcp.json');
311
+ const settingsPath = path.join(CONFIG.claudeDir, 'settings.json');
311
312
 
312
- let existingConfig = { mcpServers: {} };
313
+ // Read existing settings or create empty object
314
+ let settings = {};
313
315
  try {
314
- const content = await fs.readFile(mcpConfigPath, 'utf8');
315
- existingConfig = JSON.parse(content);
316
+ const content = await fs.readFile(settingsPath, 'utf8');
317
+ settings = JSON.parse(content);
316
318
  } catch {
317
- // File doesn't exist or is invalid
319
+ // File doesn't exist, start fresh
318
320
  }
319
321
 
320
- // Add CloudStream knowledge server
321
- existingConfig.mcpServers = existingConfig.mcpServers || {};
322
- existingConfig.mcpServers['cloudstream-knowledge'] = {
322
+ // Merge MCP server into settings
323
+ settings.mcpServers = settings.mcpServers || {};
324
+ settings.mcpServers['cloudstream-knowledge'] = {
323
325
  command: 'npx',
324
326
  args: ['@cloudstream/knowledge-mcp-client'],
325
327
  env: {
@@ -328,8 +330,17 @@ async function configureMcpServer(licenseKey) {
328
330
  }
329
331
  };
330
332
 
331
- await fs.writeFile(mcpConfigPath, JSON.stringify(existingConfig, null, 2));
332
- logSuccess('MCP server configured');
333
+ await fs.writeFile(settingsPath, JSON.stringify(settings, null, 2));
334
+ logSuccess('MCP server configured in settings.json');
335
+
336
+ // Clean up orphaned mcp.json if it exists (from previous installs)
337
+ const orphanedMcpPath = path.join(CONFIG.claudeDir, 'mcp.json');
338
+ try {
339
+ await fs.unlink(orphanedMcpPath);
340
+ logSuccess('Cleaned up orphaned mcp.json');
341
+ } catch {
342
+ // File doesn't exist, nothing to clean up
343
+ }
333
344
  }
334
345
 
335
346
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudstreamsoftware/claude-tools",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "CloudStream Claude Code productivity tools - hooks, skills, agents, and knowledge server integration",
5
5
  "main": "dist/index.js",
6
6
  "bin": {