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

Method show

src/apps/cli/src/ui/mcp_selector.rs:68–77  ·  view source on GitHub ↗

Show the MCP selector with given server list

(&mut self, items: Vec<McpItem>)

Source from the content-addressed store, hash-verified

66
67 /// Show the MCP selector with given server list
68 pub fn show(&mut self, items: Vec<McpItem>) {
69 self.items = items;
70 if !self.items.is_empty() {
71 self.list_state.select(Some(0));
72 } else {
73 self.list_state.select(None);
74 }
75 self.loading_id = None;
76 self.visible = true;
77 }
78
79 /// Update items in-place (after toggle completes) without closing
80 pub fn update_items(&mut self, items: Vec<McpItem>) {

Callers 15

show_main_windowFunction · 0.45
toggle_main_windowFunction · 0.45
show_main_windowFunction · 0.45
send_system_notificationFunction · 0.45
handle_keyMethod · 0.45
handle_palette_actionMethod · 0.45
handle_commandMethod · 0.45
show_session_selectorMethod · 0.45
show_model_selectorMethod · 0.45

Calls 2

is_emptyMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected