[tui] Update /mcp output (#3134)
# Summary Quick update to clean up MCP output ## Testing - [x] Ran locally, confirmed output looked good
This commit is contained in:
@@ -1076,14 +1076,6 @@ pub(crate) fn new_mcp_tools_output(
|
|||||||
lines.push(vec![" • Command: ".into(), cmd_display.into()].into());
|
lines.push(vec![" • Command: ".into(), cmd_display.into()].into());
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(env) = cfg.env.as_ref()
|
|
||||||
&& !env.is_empty()
|
|
||||||
{
|
|
||||||
let mut env_pairs: Vec<String> = env.iter().map(|(k, v)| format!("{k}={v}")).collect();
|
|
||||||
env_pairs.sort();
|
|
||||||
lines.push(vec![" • Env: ".into(), env_pairs.join(" ").into()].into());
|
|
||||||
}
|
|
||||||
|
|
||||||
if names.is_empty() {
|
if names.is_empty() {
|
||||||
lines.push(" • Tools: (none)".into());
|
lines.push(" • Tools: (none)".into());
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user