claude-autopm 1.13.8 → 1.13.10

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.
@@ -2,7 +2,7 @@
2
2
  "mcpServers": {
3
3
  "context7-docs": {
4
4
  "command": "npx",
5
- "args": ["@context7/mcp-server"],
5
+ "args": ["@upstash/context7-mcp"],
6
6
  "env": {
7
7
  "CONTEXT7_API_KEY": "${CONTEXT7_API_KEY:-}",
8
8
  "CONTEXT7_MCP_URL": "${CONTEXT7_MCP_URL:-https://mcp.context7.com/mcp}",
@@ -13,8 +13,8 @@
13
13
  "envFile": ".claude/.env"
14
14
  },
15
15
  "context7-codebase": {
16
- "command": "npx",
17
- "args": ["@context7/mcp-server"],
16
+ "command": "npx",
17
+ "args": ["@upstash/context7-mcp"],
18
18
  "env": {
19
19
  "CONTEXT7_API_KEY": "${CONTEXT7_API_KEY:-}",
20
20
  "CONTEXT7_MCP_URL": "${CONTEXT7_MCP_URL:-https://mcp.context7.com/mcp}",
@@ -90,7 +90,11 @@ class ConfigCommand {
90
90
  console.log(`│ Kubernetes: ${this.padRight(k8sStatus, 22)} │`);
91
91
 
92
92
  // Execution strategy - check both formats
93
- const executionStrategy = config.execution_strategy || config.execution?.strategy || 'adaptive';
93
+ let executionStrategy = config.execution_strategy?.mode || config.execution_strategy || config.execution?.strategy || 'adaptive';
94
+ // Handle if it's still an object
95
+ if (typeof executionStrategy === 'object') {
96
+ executionStrategy = executionStrategy.mode || 'adaptive';
97
+ }
94
98
  console.log(`│ Execution: ${this.padRight(executionStrategy, 22)} │`);
95
99
 
96
100
  // Show parallel limit if hybrid strategy
@@ -100,10 +104,34 @@ class ConfigCommand {
100
104
 
101
105
  console.log('│ │');
102
106
 
103
- // Features - optional/legacy features
104
- const mcpStatus = config.features?.mcp ? '✅ Enabled' : '❌ Disabled';
107
+ // MCP Configuration - check both config and mcp-servers.json
108
+ const mcpActiveServers = config.mcp?.activeServers || [];
109
+ let mcpConfiguredServers = 0;
110
+
111
+ // If no active servers in config, check mcp-servers.json
112
+ if (mcpActiveServers.length === 0) {
113
+ const mcpServersPath = path.join(process.cwd(), '.claude', 'mcp-servers.json');
114
+ if (await fs.pathExists(mcpServersPath)) {
115
+ try {
116
+ const mcpServers = await fs.readJson(mcpServersPath);
117
+ mcpConfiguredServers = Object.keys(mcpServers.mcpServers || {}).length;
118
+ } catch (error) {
119
+ // Ignore error
120
+ }
121
+ }
122
+ }
123
+
124
+ let mcpStatus;
125
+ if (mcpActiveServers.length > 0) {
126
+ mcpStatus = `✅ ${mcpActiveServers.length} active`;
127
+ } else if (mcpConfiguredServers > 0) {
128
+ mcpStatus = `⚠️ ${mcpConfiguredServers} configured`;
129
+ } else {
130
+ mcpStatus = '❌ Not configured';
131
+ }
105
132
  console.log(`│ MCP: ${this.padRight(mcpStatus, 22)} │`);
106
133
 
134
+ // Features - optional/legacy features
107
135
  const autoCommit = config.features?.autoCommit ? '✅ Enabled' : '❌ Disabled';
108
136
  console.log(`│ Auto Commit: ${this.padRight(autoCommit, 22)} │`);
109
137
 
@@ -121,12 +149,96 @@ class ConfigCommand {
121
149
 
122
150
  console.log('└─────────────────────────────────────────┘\n');
123
151
 
152
+ // Show configuration issues and how to fix them
153
+ const issues = [];
154
+
155
+ if (!config.provider || config.provider === 'not set') {
156
+ issues.push({
157
+ icon: '⚠️',
158
+ problem: 'Provider not configured',
159
+ solution: 'Run: autopm config set provider github (or azure)'
160
+ });
161
+ }
162
+
163
+ if (config.provider === 'github') {
164
+ const github = config.providers?.github;
165
+ if (!github?.owner || github.owner === 'not set') {
166
+ issues.push({
167
+ icon: '⚠️',
168
+ problem: 'GitHub owner not set',
169
+ solution: 'Run: autopm config set github.owner YOUR_USERNAME'
170
+ });
171
+ }
172
+ if (!github?.repo || github.repo === 'not set') {
173
+ issues.push({
174
+ icon: '⚠️',
175
+ problem: 'GitHub repository not set',
176
+ solution: 'Run: autopm config set github.repo YOUR_REPO'
177
+ });
178
+ }
179
+ if (!process.env.GITHUB_TOKEN) {
180
+ issues.push({
181
+ icon: '⚠️',
182
+ problem: 'GitHub token not set',
183
+ solution: 'Add to .claude/.env: GITHUB_TOKEN=ghp_your_token_here'
184
+ });
185
+ }
186
+ }
187
+
188
+ if (config.provider === 'azure') {
189
+ const azure = config.providers?.azure;
190
+ if (!azure?.organization) {
191
+ issues.push({
192
+ icon: '⚠️',
193
+ problem: 'Azure organization not set',
194
+ solution: 'Run: autopm config set azure.organization YOUR_ORG'
195
+ });
196
+ }
197
+ if (!azure?.project) {
198
+ issues.push({
199
+ icon: '⚠️',
200
+ problem: 'Azure project not set',
201
+ solution: 'Run: autopm config set azure.project YOUR_PROJECT'
202
+ });
203
+ }
204
+ if (!process.env.AZURE_DEVOPS_PAT) {
205
+ issues.push({
206
+ icon: '⚠️',
207
+ problem: 'Azure DevOps token not set',
208
+ solution: 'Add to .claude/.env: AZURE_DEVOPS_PAT=your_token_here'
209
+ });
210
+ }
211
+ }
212
+
213
+ if (mcpActiveServers.length === 0) {
214
+ if (mcpConfiguredServers > 0) {
215
+ issues.push({
216
+ icon: 'ℹ️',
217
+ problem: `${mcpConfiguredServers} MCP server(s) configured but not active`,
218
+ solution: 'Run: autopm mcp list (then: autopm mcp enable <server>)'
219
+ });
220
+ } else {
221
+ issues.push({
222
+ icon: 'ℹ️',
223
+ problem: 'No MCP servers configured',
224
+ solution: 'Run: autopm mcp list (to see available servers)'
225
+ });
226
+ }
227
+ }
228
+
229
+ // Display issues if any
230
+ if (issues.length > 0) {
231
+ console.log('📋 Configuration Issues:\n');
232
+ issues.forEach(issue => {
233
+ console.log(`${issue.icon} ${issue.problem}`);
234
+ console.log(` → ${issue.solution}\n`);
235
+ });
236
+ }
237
+
124
238
  // Show available commands hint
125
- console.log('💡 Available commands:');
126
- console.log(' autopm config set <key> <value> - Set configuration value');
127
- console.log(' autopm config toggle <feature> - Toggle feature on/off');
128
- console.log(' autopm config switch <provider> - Switch to different provider');
129
- console.log(' autopm config validate - Validate configuration');
239
+ console.log('💡 Quick Commands:');
240
+ console.log(' autopm config validate - Check configuration');
241
+ console.log(' autopm mcp check - Check MCP requirements');
130
242
  console.log(' autopm config --help - Show all options\n');
131
243
  }
132
244
 
@@ -134,7 +246,8 @@ class ConfigCommand {
134
246
  * Helper to pad strings
135
247
  */
136
248
  padRight(str, length) {
137
- return str.padEnd(length);
249
+ const s = String(str || '');
250
+ return s.padEnd(length);
138
251
  }
139
252
 
140
253
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-autopm",
3
- "version": "1.13.8",
3
+ "version": "1.13.10",
4
4
  "description": "Autonomous Project Management Framework for Claude Code - Advanced AI-powered development automation",
5
5
  "main": "bin/autopm.js",
6
6
  "bin": {
@@ -148,7 +148,7 @@
148
148
  "sinon": "^21.0.0"
149
149
  },
150
150
  "optionalDependencies": {
151
- "@context7/mcp-server": "^1.0.0",
151
+ "@upstash/context7-mcp": "^1.0.0",
152
152
  "@modelcontextprotocol/server-github": "^1.0.0",
153
153
  "@playwright/mcp-server": "^1.0.0"
154
154
  },