@@ -38,13 +38,13 @@ def create_deprecated_command(command_name: str, replacement_suggestions=None):
3838 if replacement_suggestions is None :
3939 replacement_suggestions = [
4040 "mcpm install <server> # Install servers globally" ,
41- "mcpm profile add <profile> <server> # Tag servers with profiles" ,
42- "mcpm run <server> # Run servers directly"
41+ "mcpm profile add <profile> <server> # Tag servers with profiles" ,
42+ "mcpm run <server> # Run servers directly" ,
4343 ]
44-
44+
4545 @click .command (context_settings = dict (ignore_unknown_options = True , help_option_names = []))
46- @click .option (' --help' , '-h' , ' help_requested' , is_flag = True , help = ' Show deprecation message.' )
47- @click .argument (' args' , nargs = - 1 , type = click .UNPROCESSED )
46+ @click .option (" --help" , "-h" , " help_requested" , is_flag = True , help = " Show deprecation message." )
47+ @click .argument (" args" , nargs = - 1 , type = click .UNPROCESSED )
4848 def deprecated_command (help_requested , args ):
4949 f"""The '{ command_name } ' command has been removed in MCPM v2.0."""
5050 console .print (f"[bold red]Error:[/] The 'mcpm { command_name } ' command has been removed in MCPM v2.0." )
@@ -55,7 +55,7 @@ def deprecated_command(help_requested, args):
5555 console .print (f" [dim]{ suggestion } [/]" )
5656 console .print ()
5757 raise click .ClickException ("Command has been removed in v2.0" )
58-
58+
5959 # Set the name properly on the command
6060 deprecated_command .name = command_name
6161 return deprecated_command
@@ -127,17 +127,19 @@ def main(ctx, help_flag, version):
127127 # If no command was invoked or help is requested, show our custom help
128128 if ctx .invoked_subcommand is None or help_flag :
129129 print_logo ()
130-
130+
131131 # Display usage info for new simplified model
132132 console .print ("[bold green]Usage:[/] [white]mcpm [OPTIONS] COMMAND [ARGS]...[/]" )
133133 console .print ("" )
134- console .print ("[bold green]Description:[/] [white]Manage MCP servers in a global configuration with profile organization.[/]" )
134+ console .print (
135+ "[bold green]Description:[/] [white]Manage MCP servers in a global configuration with profile organization.[/]"
136+ )
135137 console .print ("" )
136-
138+
137139 # Show quick start examples
138140 console .print ("[bold cyan]Quick Start:[/]" )
139141 console .print (" [dim]mcpm search browser # Find available servers[/]" )
140- console .print (" [dim]mcpm install mcp-server-browse # Install a server[/]" )
142+ console .print (" [dim]mcpm install mcp-server-browse # Install a server[/]" )
141143 console .print (" [dim]mcpm run mcp-server-browse # Run server directly[/]" )
142144 console .print (" [dim]mcpm profile create web-dev # Create a profile[/]" )
143145 console .print (" [dim]mcpm profile add web-dev mcp-server-browse # Tag server[/]" )
@@ -211,19 +213,31 @@ def main(ctx, help_flag, version):
211213# Deprecated v1 commands - show migration guidance
212214main .add_command (create_deprecated_command ("stash" ), name = "stash" )
213215main .add_command (create_deprecated_command ("pop" ), name = "pop" )
214- main .add_command (create_deprecated_command ("mv" , [
215- "mcpm profile add <profile> <server> # Tag servers with profiles" ,
216- "mcpm profile remove <profile> <server> # Remove tags from servers"
217- ]), name = "mv" )
218- main .add_command (create_deprecated_command ("cp" , [
219- "mcpm profile add <profile> <server> # Tag servers with profiles" ,
220- "mcpm profile remove <profile> <server> # Remove tags from servers"
221- ]), name = "cp" )
216+ main .add_command (
217+ create_deprecated_command (
218+ "mv" ,
219+ [
220+ "mcpm profile add <profile> <server> # Tag servers with profiles" ,
221+ "mcpm profile remove <profile> <server> # Remove tags from servers" ,
222+ ],
223+ ),
224+ name = "mv" ,
225+ )
226+ main .add_command (
227+ create_deprecated_command (
228+ "cp" ,
229+ [
230+ "mcpm profile add <profile> <server> # Tag servers with profiles" ,
231+ "mcpm profile remove <profile> <server> # Remove tags from servers" ,
232+ ],
233+ ),
234+ name = "cp" ,
235+ )
222236main .add_command (create_deprecated_command ("target" ), name = "target" )
223237
224238# Keep these for now but they could be simplified later
225239main .add_command (client .client )
226- main .add_command (inspector .inspector , name = "inspector" )
240+ main .add_command (inspector .inspector , name = "inspector" )
227241
228242if __name__ == "__main__" :
229243 main ()
0 commit comments