Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 1.44 KB

File metadata and controls

31 lines (27 loc) · 1.44 KB

Session Status

Goal

Check and ensure multi-location loading for MCPs, Commands, and other resources (similar to Skills/Plugins refactor).

Progress

  1. Analyzed server/index.js:
    • Found loadAggregatedConfig function (lines 735-786).
    • Found getSearchRoots function (lines 583-614).
  2. MCPs:
    • Status: ✅ Already Multi-location.
    • Logic: loadAggregatedConfig iterates all search roots and merges mcpServers.
  3. Commands:
    • Status: ✅ Already Multi-location (JSON only).
    • Logic: loadAggregatedConfig iterates all search roots and merges command.
    • Directory: No command/ directory exists. Commands are strictly defined in opencode.json.
  4. Agents:
    • Status: ⚠️ Mixed.
    • Markdown Agents: ✅ Aggregated via getAgentDirs.
    • JSON Agents: ❌ Not aggregated (only active config).
  5. Models/Providers:
    • Status: ❌ Not aggregated (only active config via loadConfig).

Findings

  • The refactor for MCPs and Commands was effectively already in place via loadAggregatedConfig.
  • No command/ directory logic exists or is needed unless requested.
  • "Etc etc" (Models, JSON Agents) are the only non-aggregated resources remaining.

Next Steps

  1. User Decision: confirm if JSON Agents and Models should be aggregated.
  2. Implementation: If yes, update loadAggregatedConfig or consumer endpoints to merge them.