zag-cli 0.11.0

A unified CLI for AI coding agents — Claude, Codex, Gemini, Copilot, and Ollama
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use anyhow::Result;
use zag_agent::mcp;

pub(crate) fn run(from: &str) -> Result<()> {
    let imported = mcp::import_servers(from)?;
    if imported.is_empty() {
        println!("No new MCP servers to import from '{}'.", from);
    } else {
        for name in &imported {
            println!("\x1b[32m✓\x1b[0m Imported MCP server '{}'", name);
        }
        println!("Imported {} MCP server(s) from '{}'.", imported.len(), from);
    }
    Ok(())
}