claude-autopm 1.13.6 → 1.13.7
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/package.json +1 -1
- package/scripts/mcp-handler.js +12 -1
package/package.json
CHANGED
package/scripts/mcp-handler.js
CHANGED
|
@@ -277,13 +277,24 @@ class MCPHandler {
|
|
|
277
277
|
console.log(` ✅ Synced: ${serverName}`);
|
|
278
278
|
});
|
|
279
279
|
|
|
280
|
-
// Write configuration
|
|
280
|
+
// Write configuration to .claude/mcp-servers.json (AutoPM format)
|
|
281
281
|
fs.writeFileSync(
|
|
282
282
|
this.mcpServersPath,
|
|
283
283
|
JSON.stringify(mcpConfig, null, 2)
|
|
284
284
|
);
|
|
285
285
|
|
|
286
|
+
// Write configuration to .mcp.json (Claude Code format)
|
|
287
|
+
const claudeCodeMcpPath = path.join(this.projectRoot, '.mcp.json');
|
|
288
|
+
const claudeCodeConfig = {
|
|
289
|
+
mcpServers: mcpConfig.mcpServers
|
|
290
|
+
};
|
|
291
|
+
fs.writeFileSync(
|
|
292
|
+
claudeCodeMcpPath,
|
|
293
|
+
JSON.stringify(claudeCodeConfig, null, 2)
|
|
294
|
+
);
|
|
295
|
+
|
|
286
296
|
console.log(`\n✅ Configuration synced to ${this.mcpServersPath}`);
|
|
297
|
+
console.log(`✅ Claude Code config synced to ${claudeCodeMcpPath}`);
|
|
287
298
|
console.log(`📊 Active servers: ${activeServers.length}`);
|
|
288
299
|
console.log(`📦 Total servers in file: ${Object.keys(mcpConfig.mcpServers).length}`);
|
|
289
300
|
}
|