Show MCP server selector popup
(
&self,
chat_view: &mut ChatView,
_chat_state: &mut ChatState,
rt_handle: &tokio::runtime::Handle,
)
| 2249 | |
| 2250 | /// Show MCP server selector popup |
| 2251 | fn show_mcp_selector( |
| 2252 | &self, |
| 2253 | chat_view: &mut ChatView, |
| 2254 | _chat_state: &mut ChatState, |
| 2255 | rt_handle: &tokio::runtime::Handle, |
| 2256 | ) { |
| 2257 | let items = self.get_mcp_items(rt_handle); |
| 2258 | // Show even if empty — user can press 'a' to add |
| 2259 | chat_view.show_mcp_selector(items); |
| 2260 | } |
| 2261 | |
| 2262 | /// Get MCP server items for display |
| 2263 | fn get_mcp_items(&self, rt_handle: &tokio::runtime::Handle) -> Vec<McpItem> { |
no test coverage detected