aios-core 3.4.0 → 3.6.0

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.
@@ -166,11 +166,47 @@ docker mcp catalog info {mcp-name}
166
166
  ### 3. Add MCP Server
167
167
 
168
168
  ```bash
169
- # Add the server
170
- docker mcp server add {mcp-name}
169
+ # Enable the server
170
+ docker mcp server enable {mcp-name}
171
+ ```
172
+
173
+ ### 3.1 Configure Credentials (CRITICAL - Known Bug Workaround)
174
+
175
+ ⚠️ **BUG:** Docker MCP Toolkit's secrets store and template interpolation (`{{...}}`) do NOT work properly. Credentials set via `docker mcp secret set` are not passed to containers.
176
+
177
+ **WORKAROUND:** Edit the catalog file directly to hardcode env values.
178
+
179
+ ```yaml
180
+ # Edit: ~/.docker/mcp/catalogs/docker-mcp.yaml
181
+ # Find your MCP entry and add/modify the env section:
182
+
183
+ {mcp-name}:
184
+ # ... other config ...
185
+ env:
186
+ - name: {ENV_VAR_NAME}
187
+ value: '{actual-api-key-value}'
188
+ - name: TOOLS
189
+ value: 'tool1,tool2,tool3'
190
+ ```
191
+
192
+ **Example for Apify:**
193
+ ```yaml
194
+ apify-mcp-server:
195
+ env:
196
+ - name: TOOLS
197
+ value: 'actors,docs,apify/rag-web-browser'
198
+ - name: APIFY_TOKEN
199
+ value: 'apify_api_xxxxxxxxxxxxx'
200
+ ```
171
201
 
172
- # With environment variable
173
- docker mcp server add {mcp-name} --env NOTION_API_KEY=${NOTION_API_KEY}
202
+ **Security Note:** This exposes credentials in a local file. Ensure:
203
+ 1. `~/.docker/mcp/catalogs/` is not committed to any repo
204
+ 2. File permissions restrict access to current user only
205
+
206
+ **Alternative (if secrets work in future):**
207
+ ```bash
208
+ # Set secret (currently NOT working)
209
+ docker mcp secret set {mcp-name}.{credential_name}={value}
174
210
  ```
175
211
 
176
212
  ### 4. Update Gordon Config (Optional)
@@ -208,6 +244,50 @@ docker mcp preset update {preset-name} --add-server {mcp-name}
208
244
  docker mcp preset create {new-preset} --servers fs,github,{mcp-name}
209
245
  ```
210
246
 
247
+ ### 7. Update AIOS Documentation (REQUIRED)
248
+
249
+ Add the new MCP to `.claude/rules/mcp-usage.md`:
250
+
251
+ ```markdown
252
+ ## {MCP-Name} MCP Usage (via Docker)
253
+
254
+ ### Use {MCP-Name} for:
255
+ 1. [Primary use case 1]
256
+ 2. [Primary use case 2]
257
+
258
+ ### Access pattern:
259
+ \`\`\`
260
+ mcp__docker-gateway__{tool-name-1}
261
+ mcp__docker-gateway__{tool-name-2}
262
+ \`\`\`
263
+ ```
264
+
265
+ Also update the table in "Inside Docker Desktop (via docker-gateway)" section.
266
+
267
+ ### 8. Notify User About Session Restart (CRITICAL)
268
+
269
+ ⚠️ **The user MUST restart their Claude Code session** for new MCP tools to be available.
270
+
271
+ ```text
272
+ IMPORTANT: New MCP tools will NOT be available until you:
273
+ 1. Close this Claude Code session
274
+ 2. Open a new Claude Code session: `claude`
275
+
276
+ The docker-gateway caches tools at startup. New tools only appear after restart.
277
+ ```
278
+
279
+ ### 9. Verify Tools Available in New Session
280
+
281
+ After user restarts Claude Code, verify tools are accessible:
282
+
283
+ ```bash
284
+ # In new Claude Code session, ask an agent to use the new MCP
285
+ @analyst Use the {mcp-name} tool to [perform some action]
286
+
287
+ # Expected: Agent should see and use mcp__docker-gateway__{tool-name}
288
+ # If not visible: Check docker mcp server list and docker mcp tools ls
289
+ ```
290
+
211
291
  ---
212
292
 
213
293
  ## Post-Conditions
@@ -220,13 +300,27 @@ post-conditions:
220
300
  validacao: docker mcp server list includes new MCP
221
301
  error_message: "MCP addition failed"
222
302
 
223
- - [ ] Tools available
303
+ - [ ] Tools available in Docker MCP
224
304
  tipo: post-condition
225
305
  blocker: true
226
306
  validacao: docker mcp tools ls shows MCP tools
227
307
  error_message: "MCP tools not available - check credentials"
308
+
309
+ - [ ] AIOS documentation updated
310
+ tipo: post-condition
311
+ blocker: true
312
+ validacao: .claude/rules/mcp-usage.md includes new MCP
313
+ error_message: "Update mcp-usage.md with new MCP documentation"
314
+
315
+ - [ ] User notified about session restart
316
+ tipo: post-condition
317
+ blocker: true
318
+ validacao: User informed to restart Claude Code session
319
+ error_message: "Notify user: tools only available after session restart"
228
320
  ```
229
321
 
322
+ **CRITICAL NOTE:** Tools added to Docker MCP Toolkit are NOT immediately available to AIOS agents. The docker-gateway caches tools at Claude Code startup. User MUST restart their Claude Code session for new tools to appear.
323
+
230
324
  ---
231
325
 
232
326
  ## Error Handling
@@ -240,13 +334,19 @@ Resolution:
240
334
  3. Check if MCP is in the registry: https://github.com/modelcontextprotocol/registry
241
335
  ```
242
336
 
243
- ### Error: Credentials Missing
337
+ ### Error: Credentials Missing / Tools Not Loading
244
338
 
245
- ```
246
- Resolution:
247
- 1. Set environment variable: export NOTION_API_KEY=your_key
248
- 2. Add to .env file: NOTION_API_KEY=your_key
249
- 3. Pass directly: docker mcp server add notion --env NOTION_API_KEY=key
339
+ ```text
340
+ Resolution (Due to Known Bug):
341
+ 1. Edit catalog directly: ~/.docker/mcp/catalogs/docker-mcp.yaml
342
+ 2. Add hardcoded env values in the MCP's env section
343
+ 3. Verify with: docker mcp tools ls --verbose
344
+ 4. Check output shows "(N tools)" not "(N prompts)"
345
+
346
+ If still showing only prompts:
347
+ - Token may be invalid
348
+ - TOOLS env var may be wrong
349
+ - MCP may need specific configuration
250
350
  ```
251
351
 
252
352
  ### Error: MCP Fails to Start
@@ -302,7 +402,7 @@ Next steps:
302
402
 
303
403
  ```yaml
304
404
  task: add-mcp
305
- version: 1.1.0
405
+ version: 1.3.0
306
406
  story: Story 6.14 - MCP Governance Consolidation
307
407
  dependencies:
308
408
  - Docker MCP Toolkit
@@ -313,10 +413,21 @@ tags:
313
413
  - docker
314
414
  - dynamic
315
415
  created_at: 2025-12-08
316
- updated_at: 2025-12-17
416
+ updated_at: 2025-12-23
317
417
  agents:
318
418
  - devops
319
419
  changelog:
420
+ 1.3.0:
421
+ - Added: Step 3.1 documenting Docker MCP secrets/template bug
422
+ - Added: Workaround using catalog file direct edit
423
+ - Updated: Error handling for credentials issues
424
+ - Fixed: Apify MCP now working with 7 tools
425
+ - Note: Bug affects all MCPs requiring authentication
426
+ 1.2.0:
427
+ - Added: Steps 7-9 for AIOS documentation and session restart
428
+ - Added: Post-conditions for documentation update and user notification
429
+ - Added: Critical note about docker-gateway tool caching
430
+ - Fixed: Tools not appearing in AIOS agents after MCP addition
320
431
  1.1.0:
321
432
  - Changed: DevOps Agent now exclusive responsible (Story 6.14)
322
433
  - Removed: Dev Agent from agents list