From 250ae37c8492f475b5f2af3f7a9f3e96973b2657 Mon Sep 17 00:00:00 2001 From: ae Date: Wed, 20 Aug 2025 14:58:04 -0700 Subject: [PATCH] tui: link docs when no MCP servers configured (#2516) --- codex-rs/tui/src/history_cell.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/codex-rs/tui/src/history_cell.rs b/codex-rs/tui/src/history_cell.rs index 3583aaa3..40623935 100644 --- a/codex-rs/tui/src/history_cell.rs +++ b/codex-rs/tui/src/history_cell.rs @@ -642,6 +642,15 @@ pub(crate) fn empty_mcp_output() -> PlainHistoryCell { Line::from(vec!["🔌 ".into(), "MCP Tools".bold()]), Line::from(""), Line::from(" • No MCP servers configured.".italic()), + Line::from(vec![ + " See the ".into(), + Span::styled( + "\u{1b}]8;;https://github.com/openai/codex/blob/main/codex-rs/config.md#mcp_servers\u{7}MCP docs\u{1b}]8;;\u{7}", + Style::default().add_modifier(Modifier::UNDERLINED), + ), + " to configure them.".into(), + ]) + .style(Style::default().add_modifier(Modifier::DIM)), Line::from(""), ];