()
| 507 | |
| 508 | #[tokio::test] |
| 509 | async fn test_mcp_manager_register_server() { |
| 510 | let manager = McpManager::new(); |
| 511 | |
| 512 | let config = McpServerConfig { |
| 513 | name: "test".to_string(), |
| 514 | transport: McpTransportConfig::Stdio { |
| 515 | command: "echo".to_string(), |
| 516 | args: vec![], |
| 517 | }, |
| 518 | enabled: true, |
| 519 | env: HashMap::new(), |
| 520 | oauth: None, |
| 521 | tool_timeout_secs: 60, |
| 522 | }; |
| 523 | |
| 524 | manager.register_server(config).await; |
| 525 | |
| 526 | let status = manager.get_status().await; |
| 527 | assert!(status.contains_key("test")); |
| 528 | assert!(!status["test"].connected); |
| 529 | } |
| 530 | |
| 531 | #[tokio::test] |
| 532 | async fn test_mcp_manager_default() { |
nothing calls this directly
no test coverage detected