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

Function shutdown_mcp_servers

src/apps/cli/src/main.rs:450–458  ·  view source on GitHub ↗

Shutdown MCP servers gracefully

()

Source from the content-addressed store, hash-verified

448
449/// Shutdown MCP servers gracefully
450async fn shutdown_mcp_servers() {
451 if let Some(mcp_service) = get_mcp_service() {
452 if let Err(e) = mcp_service.server_manager().shutdown().await {
453 tracing::warn!("Failed to shutdown MCP servers: {}", e);
454 } else {
455 tracing::info!("MCP servers shut down successfully");
456 }
457 }
458}
459
460// ======================== Interactive TUI Flow ========================
461

Callers 3

handle_exec_commandFunction · 0.85
run_interactiveFunction · 0.85

Calls 3

get_mcp_serviceFunction · 0.85
server_managerMethod · 0.80
shutdownMethod · 0.45

Tested by

no test coverage detected