Add cloud tasks (#3197)

Adds a TUI for managing, applying, and creating cloud tasks
This commit is contained in:
easong-openai
2025-09-30 03:10:33 -07:00
committed by GitHub
parent d9dbf48828
commit 5b038135de
49 changed files with 7573 additions and 438 deletions

View File

@@ -875,7 +875,7 @@ pub(crate) fn new_mcp_tools_output(
lines.push(vec![" • Server: ".into(), server.clone().into()].into());
match &cfg.transport {
McpServerTransportConfig::Stdio { command, args, .. } => {
McpServerTransportConfig::Stdio { command, args, env } => {
let args_suffix = if args.is_empty() {
String::new()
} else {
@@ -883,6 +883,15 @@ pub(crate) fn new_mcp_tools_output(
};
let cmd_display = format!("{command}{args_suffix}");
lines.push(vec![" • Command: ".into(), cmd_display.into()].into());
if let Some(env) = 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());
}
}
McpServerTransportConfig::StreamableHttp { url, .. } => {
lines.push(vec![" • URL: ".into(), url.clone().into()].into());