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

Function get_mcp_status_text

src/apps/cli/src/main.rs:44–53  ·  view source on GitHub ↗

Get MCP status text for UI display

()

Source from the content-addressed store, hash-verified

42
43/// Get MCP status text for UI display
44pub fn get_mcp_status_text() -> String {
45 let status = get_mcp_init_status().load(Ordering::Relaxed);
46 match status {
47 0 => "MCP: Pending".to_string(),
48 1 => "MCP: Connecting...".to_string(),
49 2 => "MCP: Ready".to_string(),
50 3 => "MCP: Failed".to_string(),
51 _ => "MCP: Unknown".to_string(),
52 }
53}
54
55/// Get the global MCP service instance (if initialized)
56pub fn get_mcp_service() -> Option<&'static std::sync::Arc<bitfun_core::service::mcp::MCPService>> {

Callers 1

render_bottom_barMethod · 0.85

Calls 2

get_mcp_init_statusFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected