Skip to main content

add_to_files

Function add_to_files 

Source
pub fn add_to_files(
    files: &mut [AgentConfigFile],
    refs: &Store,
    catalog: &Store,
    agent_id: Option<&str>,
    container: bool,
)
Expand description

The picker path’s MCP step (writeagentconfig): lay the agent’s effective servers over the .mcp.json among the frontend’s files, which has only the agentmux entry and the agent’s legacy blob. Nothing to do without one, or without an agent id (an older frontend sends none).