@@ -27,21 +27,24 @@ def info(server_name):
2727 mcpm info github # Show details for the GitHub server
2828 mcpm info pinecone # Show details for the Pinecone server
2929 """
30- console .print (f"[bold green]Showing information for MCP server:[/] [bold cyan]{ server_name } [/]" )
30+ console .print (
31+ f"[bold green]Showing information for MCP server:[/] [bold cyan]{ server_name } [/]" )
3132
3233 try :
3334 # Get the server information
3435 server = repo_manager .get_server_metadata (server_name )
3536
3637 if not server :
37- console .print (f"[yellow]Server '[bold]{ server_name } [/]' not found.[/]" )
38+ console .print (
39+ f"[yellow]Server '[bold]{ server_name } [/]' not found.[/]" )
3840 return
3941
4042 # Display detailed information for this server
4143 _display_server_info (server )
4244
4345 except Exception as e :
44- print_error (f"Error retrieving information for server '{ server_name } '" , str (e ))
46+ print_error (
47+ f"Error retrieving information for server '{ server_name } '" , str (e ))
4548
4649
4750def _display_server_info (server ):
@@ -52,6 +55,7 @@ def _display_server_info(server):
5255 description = server .get ("description" , "No description" )
5356 license_info = server .get ("license" , "Unknown" )
5457 is_official = server .get ("is_official" , False )
58+ is_archived = server .get ("is_archived" , False )
5559
5660 # Get author info
5761 author_info = server .get ("author" , {})
@@ -80,9 +84,12 @@ def _display_server_info(server):
8084 console .print (f"Tags: { ', ' .join (tags )} " )
8185 if package :
8286 console .print (f"Package: { package } " )
83- console .print (f"Author: { author_name } " + (f" ({ author_email } )" if author_email else "" ))
87+ console .print (f"Author: { author_name } " +
88+ (f" ({ author_email } )" if author_email else "" ))
8489 console .print (f"License: { license_info } " )
8590 console .print (f"Official: { is_official } " )
91+ if is_archived :
92+ console .print (f"Archived: { is_archived } " )
8693 console .print ("" )
8794
8895 # URLs section
@@ -114,10 +121,13 @@ def _display_server_info(server):
114121 console .print ("[bold yellow]Installation Details:[/]" )
115122 for method_name , method in installations .items ():
116123 method_type = method .get ("type" , "unknown" )
117- description = method .get ("description" , f"{ method_type } installation" )
118- recommended = " [green](recommended)[/]" if method .get ("recommended" , False ) else ""
124+ description = method .get (
125+ "description" , f"{ method_type } installation" )
126+ recommended = " [green](recommended)[/]" if method .get (
127+ "recommended" , False ) else ""
119128
120- console .print (f"[cyan]{ method_type } [/]: { description } { recommended } " )
129+ console .print (
130+ f"[cyan]{ method_type } [/]: { description } { recommended } " )
121131
122132 # Show command if available
123133 if "command" in method :
@@ -136,7 +146,8 @@ def _display_server_info(server):
136146 if env_vars :
137147 console .print ("Environment Variables:" )
138148 for key , value in env_vars .items ():
139- console .print (f' [bold blue]{ key } [/] = [green]"{ value } "[/]' )
149+ console .print (
150+ f' [bold blue]{ key } [/] = [green]"{ value } "[/]' )
140151 console .print ("" )
141152
142153 # Examples section
0 commit comments