on main help sign in
fix(ui): ensure MCPs are displayed in configured order
commit749a966f306f81cfa34ed7e56f6f0c4501674711 authorAyman Bagabas <ayman.bagabas@gmail.com> dateWed 17 Dec 2025, 10:50 (1 year ago) parent4f07a54
1 file changed+4−2
internal/ui/model/mcp.go+4−2
internal/ui/model/mcp.go+4−2
@@ -16,8 +16,10 @@ func (m *UI) mcpInfo(width, maxItems int, isSection bool) string {
1616 var mcps []mcp.ClientInfo
1717 t := m.com.Styles
1818
19− for _, state := range m.mcpStates {
20− mcps = append(mcps, state)
19+ for _, mcp := range m.com.Config().MCP.Sorted() {
20+ if state, ok := m.mcpStates[mcp.Name]; ok {
21+ mcps = append(mcps, state)
22+ }
2123 }
2224
2325 title := t.Subtle.Render("MCPs")