@172ai/containers-mcp-server 1.12.5 → 1.12.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/README.md CHANGED
@@ -37,6 +37,14 @@ containers-mcp-server
37
37
  - **Get Build Status**: Monitor build progress and status
38
38
  - **List Builds**: View build history for containers
39
39
  - **Get Build Logs**: Access detailed build logs and output
40
+ - **Explain Build Logs**: Get AI-powered analysis and explanations of build failures
41
+
42
+ ### Container Fix Management
43
+ - **Fix Container**: Automatically analyze build failures, apply AI-generated fixes, and rebuild (primary workflow)
44
+ - **Analyze Container Failure**: Analyze build/execution failures without auto-applying fixes (for review workflows)
45
+ - **Approve and Apply Fix**: Apply a specific fix attempt after reviewing analysis results
46
+ - **Get Fix History**: View all fix attempts for a container with their outcomes
47
+ - **Get Fix Status**: Get detailed status and information about a specific fix attempt
40
48
 
41
49
  ### File Management
42
50
  - **List Container Files**: Browse files within containers
@@ -174,6 +182,14 @@ Once connected, you can use these tools in your AI conversations:
174
182
  - `build_container` - Start container builds
175
183
  - `get_build_status` - Check build progress
176
184
  - `list_builds` - View build history
185
+ - `explain_build_logs` - Get AI analysis of build failures
186
+
187
+ #### Fix Operations
188
+ - `fix_container` - Auto-analyze, fix, and rebuild failed containers
189
+ - `analyze_container_failure` - Analyze failures without auto-applying fixes
190
+ - `approve_and_apply_fix` - Apply a specific fix after review
191
+ - `get_fix_history` - View all fix attempts for a container
192
+ - `get_fix_status` - Get details of a specific fix attempt
177
193
 
178
194
  #### Execution Operations
179
195
  - `start_execution` - Deploy and run containers
@@ -205,6 +221,30 @@ await getContainer({ containerId: 'container-123' });
205
221
  // Build a container
206
222
  await buildContainer({ containerId: 'container-123' });
207
223
 
224
+ // Fix a failed container automatically
225
+ await fixContainer({
226
+ containerId: 'container-123',
227
+ autoApply: true,
228
+ progressToken: 'fix-progress-123'
229
+ });
230
+
231
+ // Analyze failure without auto-applying
232
+ const analysis = await analyzeContainerFailure({
233
+ containerId: 'container-123'
234
+ });
235
+
236
+ // Review and approve a specific fix
237
+ await approveAndApplyFix({
238
+ containerId: 'container-123',
239
+ fixAttemptId: analysis.fixAttemptId
240
+ });
241
+
242
+ // View fix history
243
+ await getFixHistory({
244
+ containerId: 'container-123',
245
+ limit: 10
246
+ });
247
+
208
248
  // Deploy and run a container
209
249
  await startExecution({
210
250
  containerId: 'container-123',
@@ -252,6 +292,29 @@ await uploadFile({
252
292
 
253
293
  #### `build_container`
254
294
  - `containerId`: Container ID to build
295
+ - `progressToken`: Optional token for real-time progress notifications
296
+
297
+ #### `fix_container`
298
+ - `containerId`: Container ID to fix
299
+ - `autoApply`: Auto-apply fix after analysis (default: true)
300
+ - `progressToken`: Optional token for real-time progress notifications
301
+
302
+ #### `analyze_container_failure`
303
+ - `containerId`: Container ID to analyze
304
+ - `progressToken`: Optional token for progress notifications
305
+
306
+ #### `approve_and_apply_fix`
307
+ - `containerId`: Container ID
308
+ - `fixAttemptId`: Fix attempt ID from analysis result
309
+ - `progressToken`: Optional token for progress notifications
310
+
311
+ #### `get_fix_history`
312
+ - `containerId`: Container ID
313
+ - `limit`: Maximum number of fix attempts to return (default: 10)
314
+
315
+ #### `get_fix_status`
316
+ - `containerId`: Container ID
317
+ - `fixAttemptId`: Fix attempt ID to retrieve
255
318
 
256
319
  #### `upload_file`
257
320
  - `containerId`: Target container ID
package/dist/server.d.ts CHANGED
@@ -17,6 +17,10 @@ declare class ContainerMCPServer {
17
17
  * Set up all available tools
18
18
  */
19
19
  private setupTools;
20
+ /**
21
+ * Set up container fix management tools
22
+ */
23
+ private setupFixTools;
20
24
  /**
21
25
  * Set up container management tools
22
26
  */
@@ -62,6 +66,11 @@ declare class ContainerMCPServer {
62
66
  private handleExplainBuildLogs;
63
67
  private handleCancelBuildMonitoring;
64
68
  private handleGetStreamAnalytics;
69
+ private handleFixContainer;
70
+ private handleAnalyzeContainerFailure;
71
+ private handleApproveAndApplyFix;
72
+ private handleGetFixHistory;
73
+ private handleGetFixStatus;
65
74
  private handleImportContainer;
66
75
  private handleGetImportStatus;
67
76
  private handleListImportJobs;
@@ -110,6 +119,26 @@ declare class ContainerMCPServer {
110
119
  * Get all progress updates for debugging
111
120
  */
112
121
  private handleGetAllProgressUpdates;
122
+ /**
123
+ * Handle list modifications
124
+ */
125
+ private handleListModifications;
126
+ /**
127
+ * Handle suggest container modifications
128
+ */
129
+ private handleSuggestContainerModifications;
130
+ /**
131
+ * Handle apply container modification
132
+ */
133
+ private handleApplyContainerModification;
134
+ /**
135
+ * Handle get modification status
136
+ */
137
+ private handleGetModificationStatus;
138
+ /**
139
+ * Handle list applied modifications
140
+ */
141
+ private handleListAppliedModifications;
113
142
  /**
114
143
  * Get container development workflow content
115
144
  */
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AA6BA;;;;;GAKG;AACH,cAAM,kBAAkB;IACtB,OAAO,CAAC,MAAM,CAAS;;IAqBvB;;;OAGG;YACW,mBAAmB;IAwCjC;;OAEG;IACH,OAAO,CAAC,UAAU;IAiBlB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAyK3B;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAkFnC;;OAEG;IACH,OAAO,CAAC,WAAW;IAuwCnB;;OAEG;IACH,OAAO,CAAC,eAAe;IAIvB;;OAEG;IACH,OAAO,CAAC,cAAc;IAItB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAI5B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;OAEG;IACH,OAAO,CAAC,kBAAkB;YAoBZ,oBAAoB;YAmBpB,kBAAkB;YAmElB,qBAAqB;YAiCrB,qBAAqB;YAcrB,qBAAqB;YAYrB,mBAAmB;YAcnB,oBAAoB;YAkBpB,oBAAoB;YAmBpB,gBAAgB;YAmBhB,kBAAkB;YAclB,sBAAsB;YAgCtB,2BAA2B;YAc3B,wBAAwB;YA0CxB,qBAAqB;YAsBrB,qBAAqB;YAo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