@@ -586,7 +586,11 @@ def _print_rows(rows: list[dict[str, str]]) -> None:
586586
587587def _summarize_status_rows (rows : list [dict [str , str ]], statuses : tuple [str , ...]) -> dict [str , int ]:
588588 """Summarize row counts for the requested statuses."""
589- return {status : sum (row ["status" ] == status for row in rows ) for status in statuses if any (row ["status" ] == status for row in rows )}
589+ return {
590+ status : sum (row ["status" ] == status for row in rows )
591+ for status in statuses
592+ if any (row ["status" ] == status for row in rows )
593+ }
590594
591595
592596def _collect_client_rows (selected_clients : list [str ] | None = None ) -> list [dict [str , str ]]:
@@ -794,7 +798,12 @@ def install_mcp_servers(*, uninstall: bool = False, selected_clients: list[str]
794798
795799 if not os .path .exists (config_dir ):
796800 result_rows .append (
797- {"marker" : "[SKIP]" , "name" : name , "detail" : f"{ action_word } skipped (config dir not found)" , "path" : config_path }
801+ {
802+ "marker" : "[SKIP]" ,
803+ "name" : name ,
804+ "detail" : f"{ action_word } skipped (config dir not found)" ,
805+ "path" : config_path ,
806+ }
798807 )
799808 skipped += 1
800809 continue
@@ -808,7 +817,9 @@ def install_mcp_servers(*, uninstall: bool = False, selected_clients: list[str]
808817 continue
809818
810819 done_word = "uninstalled" if uninstall else "installed"
811- result_rows .append ({"marker" : "[OK]" , "name" : name , "detail" : f"{ done_word } (restart required)" , "path" : config_path })
820+ result_rows .append (
821+ {"marker" : "[OK]" , "name" : name , "detail" : f"{ done_word } (restart required)" , "path" : config_path }
822+ )
812823 installed += 1
813824 continue
814825
@@ -827,7 +838,9 @@ def install_mcp_servers(*, uninstall: bool = False, selected_clients: list[str]
827838 _write_json_config (config_path , config )
828839
829840 done_word = "uninstalled" if uninstall else "installed"
830- result_rows .append ({"marker" : "[OK]" , "name" : name , "detail" : f"{ done_word } (restart required)" , "path" : config_path })
841+ result_rows .append (
842+ {"marker" : "[OK]" , "name" : name , "detail" : f"{ done_word } (restart required)" , "path" : config_path }
843+ )
831844 installed += 1
832845
833846 _print_rows (result_rows )
0 commit comments