install

Function install 

Source
pub async fn install(
    server_id: &str,
    name: Option<&str>,
    scope: &str,
    transport_override: Option<&str>,
    command_override: Option<&str>,
    args_override: Option<Vec<String>>,
    url_override: Option<&str>,
    env_vars: HashMap<String, String>,
) -> Result<McpManagerOutput>
Expand description

Install a server into .mcp.json by looking it up in the registry and deriving the best config entry automatically.

§Parameters (from args JSON)

  • server_id – registry server name (e.g. "io.github.org/repo")
  • name – local alias in .mcp.json (defaults to last path segment of server_id)
  • scope"user" | "project" (default "project")
  • transport – override transport: "stdio" | "http" (auto-detected if omitted)
  • command – override launch command (stdio only)
  • args – override args array (stdio only)
  • url – override URL (http only)
  • env – map of env var name → value