Skip to main content

upsert_opencode

Function upsert_opencode 

Source
pub fn upsert_opencode(
    path: &Path,
    server_name: &str,
    entry: &Value,
) -> Result<bool>
Expand description

OpenCode shape: {"mcp": {"<name>": {"type": "local", "command": ["<bin>", ...args], "enabled": true}}}. Three differences vs. standard: top-level mcp (not mcpServers); no servers intermediate; command is a single combined array, not the {command, args} pair.