Files
cd768e9793 MUL-8397: fix(daemon): parse OpenCode 2.x nested MCP server config (#9713)
* fix(daemon): parse OpenCode 2.x nested MCP server config

OpenCode 2.x nests user MCP servers under mcp.servers; 1.x keeps them flat
under mcp. Reading both as the flat mcp map turned a 2.x config into a single
literal "servers" entry with no url or command, so the OpenCode 2.x MCP
support check refused every run that carried user MCP servers.

Resolve the user server map through a provider dispatcher: OpenCode detects
the shape from the content (mcp.servers if present, else the flat mcp map);
every other provider keeps the existing dotted-key lookup. Applied to both the
task-local merge and the agent capabilities inventory.

Co-authored-by: multica-agent <[email protected]>

* fix(daemon): respect disabled OpenCode MCP servers (MUL-8397)

Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: multica-agent <[email protected]>
Co-authored-by: Sol-Boy <[email protected]>
2026-10-30 14:13:00 +08:00
..