MCPcopy Create free account
hub / github.com/GCWing/BitFun / disable_external_client

Function disable_external_client

src/apps/cli/src/acp_cli.rs:318–328  ·  view source on GitHub ↗
(client_id: &str)

Source from the content-addressed store, hash-verified

316}
317
318pub async fn disable_external_client(client_id: &str) -> Result<()> {
319 let service = create_client_service().await?;
320 let current = load_client_config_json(&service).await?;
321 if client_entry(&current, client_id).is_none() {
322 bail!("ACP client '{}' is not configured", client_id);
323 }
324 let config_json = update_client_config_json(current, client_id, None, false, None)?;
325 save_client_config_json(&service, &config_json).await?;
326 println!("Disabled external ACP agent '{}'.", client_id);
327 Ok(())
328}
329
330pub async fn print_external_client_config() -> Result<()> {
331 let service = create_client_service().await?;

Callers 1

run_cliFunction · 0.85

Calls 5

create_client_serviceFunction · 0.85
load_client_config_jsonFunction · 0.85
client_entryFunction · 0.85
save_client_config_jsonFunction · 0.85

Tested by

no test coverage detected