MCPcopy Create free account
hub / github.com/GCWing/BitFun / show_mcp_selector

Method show_mcp_selector

src/apps/cli/src/modes/chat.rs:2251–2260  ·  view source on GitHub ↗

Show MCP server selector popup

(
        &self,
        chat_view: &mut ChatView,
        _chat_state: &mut ChatState,
        rt_handle: &tokio::runtime::Handle,
    )

Source from the content-addressed store, hash-verified

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> {

Callers 4

handle_key_eventMethod · 0.45
handle_palette_actionMethod · 0.45
handle_commandMethod · 0.45

Calls 1

get_mcp_itemsMethod · 0.80

Tested by

no test coverage detected