()
| 575 | |
| 576 | #[test] |
| 577 | fn test_dispatch_mcp() { |
| 578 | let reg = CommandRegistry::new(); |
| 579 | let ctx = test_ctx(); |
| 580 | let out = reg.dispatch("/mcp", &ctx).unwrap(); |
| 581 | assert!(out.text.contains("1 server(s)")); |
| 582 | assert!(out.text.contains("github")); |
| 583 | assert!(out.text.contains("create_issue")); |
| 584 | assert!(out.text.contains("list_repos")); |
| 585 | } |
| 586 | |
| 587 | #[test] |
| 588 | fn test_dispatch_mcp_empty() { |