Get MCP status text for UI display
()
| 42 | |
| 43 | /// Get MCP status text for UI display |
| 44 | pub 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) |
| 56 | pub fn get_mcp_service() -> Option<&'static std::sync::Arc<bitfun_core::service::mcp::MCPService>> { |
no test coverage detected