claude-autopm 1.13.11 → 1.13.12

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-autopm",
3
- "version": "1.13.11",
3
+ "version": "1.13.12",
4
4
  "description": "Autonomous Project Management Framework for Claude Code - Advanced AI-powered development automation",
5
5
  "main": "bin/autopm.js",
6
6
  "bin": {
@@ -134,6 +134,9 @@ class MCPHandler {
134
134
  this.updateRegistry(name, serverDef);
135
135
 
136
136
  rl.close();
137
+
138
+ // Show next steps
139
+ this.showNextSteps('add', { name, metadata: serverDef });
137
140
  } catch (error) {
138
141
  console.error('❌ Error creating server:', error.message);
139
142
  rl.close();
@@ -197,7 +200,9 @@ class MCPHandler {
197
200
  this.saveConfig(config);
198
201
 
199
202
  console.log(`✅ Server '${serverName}' enabled`);
200
- console.log(`💡 Run 'autopm mcp sync' to update configuration`);
203
+
204
+ // Show next steps
205
+ this.showNextSteps('enable', server);
201
206
  }
202
207
 
203
208
  /**
@@ -297,6 +302,9 @@ class MCPHandler {
297
302
  console.log(`✅ Claude Code config synced to ${claudeCodeMcpPath}`);
298
303
  console.log(`📊 Active servers: ${activeServers.length}`);
299
304
  console.log(`📦 Total servers in file: ${Object.keys(mcpConfig.mcpServers).length}`);
305
+
306
+ // Show next steps after sync
307
+ this.showNextSteps('sync', null);
300
308
  }
301
309
 
302
310
  /**
@@ -1649,6 +1657,68 @@ This server can be integrated with various agents and context pools.
1649
1657
  console.log(` Enabled: ${activeServers.length}`);
1650
1658
  console.log(` Disabled: ${allServers.length - activeServers.length}`);
1651
1659
  }
1660
+
1661
+ /**
1662
+ * Show next steps after MCP configuration actions
1663
+ * @param {string} action - The action that was performed (enable, add, sync)
1664
+ * @param {Object} server - Server object (for enable/add actions)
1665
+ */
1666
+ showNextSteps(action, server) {
1667
+ console.log('\n📋 Next Steps:\n');
1668
+
1669
+ if (action === 'enable' || action === 'add') {
1670
+ console.log('1. Run sync to update configuration:');
1671
+ console.log(' autopm mcp sync\n');
1672
+
1673
+ // Check if server needs environment variables
1674
+ if (server && server.metadata && server.metadata.env) {
1675
+ const envVars = Object.keys(server.metadata.env);
1676
+ if (envVars.length > 0) {
1677
+ console.log('2. Configure required environment variables in .claude/.env:');
1678
+ envVars.forEach(varName => {
1679
+ const example = this._getEnvVarExample(server.name || server.metadata.name, varName);
1680
+ console.log(` ${varName}=${example}`);
1681
+ });
1682
+ console.log();
1683
+ console.log('3. Restart Claude Code to load the server\n');
1684
+ console.log('4. Verify server status:');
1685
+ console.log(' /mcp (in Claude Code)\n');
1686
+ } else {
1687
+ console.log('2. Restart Claude Code to load the server\n');
1688
+ console.log('3. Verify server status:');
1689
+ console.log(' /mcp (in Claude Code)\n');
1690
+ }
1691
+ }
1692
+
1693
+ // Show where to get credentials if needed
1694
+ if (server && server.name) {
1695
+ const credInfo = this._getCredentialInfo(server.name);
1696
+ if (credInfo && !credInfo.includes('No credentials needed')) {
1697
+ console.log('💡 API Key Information:');
1698
+ console.log(` ${credInfo}\n`);
1699
+ }
1700
+ }
1701
+ } else if (action === 'sync') {
1702
+ console.log('1. Restart Claude Code to load the updated configuration\n');
1703
+ console.log('2. Verify servers are running:');
1704
+ console.log(' /mcp (in Claude Code)\n');
1705
+
1706
+ // Check for missing environment variables
1707
+ const envStatus = this.checkEnvVarsStatus();
1708
+ if (envStatus.missing.length > 0) {
1709
+ console.log('⚠️ Some servers require environment variables:\n');
1710
+ envStatus.missing.forEach(varName => {
1711
+ console.log(` ❌ ${varName}`);
1712
+ });
1713
+ console.log('\n3. Configure missing variables in .claude/.env\n');
1714
+ console.log('4. Check configuration:');
1715
+ console.log(' autopm mcp check\n');
1716
+ } else {
1717
+ console.log('3. Check configuration status:');
1718
+ console.log(' autopm mcp check\n');
1719
+ }
1720
+ }
1721
+ }
1652
1722
  }
1653
1723
 
1654
1724
  // CLI execution