From f323c919f5e30a4dafa04ac01b23c2b925c8b741 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Fri, 28 Aug 2026 12:32:45 -0600 Subject: [PATCH] feat(repl): color .info mcp-server verdicts and complete only running servers --- src/config/request_context.rs | 64 +++++++++++++++++++++++++++-------- 1 file changed, 49 insertions(+), 15 deletions(-) diff --git a/src/config/request_context.rs b/src/config/request_context.rs index 0242791..55d0972 100644 --- a/src/config/request_context.rs +++ b/src/config/request_context.rs @@ -885,23 +885,28 @@ impl RequestContext { .map(|tool| tool.chars().count()) .max() .unwrap_or_default(); + let allowed_marker = "✓".green().bold().to_string(); + let hidden_marker = "✗".red().bold().to_string(); for tool in &names { let explained = filter.map(|f| f.allows_explain(tool)); match explained { - None => out.push_str(&format!(" ✓ {tool}\n")), + None => out.push_str(&format!(" {allowed_marker} {tool}\n")), Some(Ok(matches)) => { let chain: Vec = matches .iter() .map(|(source, pattern)| format!("{pattern} ({})", source.short_label())) .collect(); if chain.is_empty() { - out.push_str(&format!(" ✓ {tool}\n")); + out.push_str(&format!(" {allowed_marker} {tool}\n")); } else { - out.push_str(&format!(" ✓ {tool: out.push_str(&format!( - " ✗ {tool: