@@ -54,15 +54,10 @@ def launch_raw_inspector():
5454 [cyan]mcpm inspect time[/] # Inspect time server
5555
5656[bold yellow]Continue with raw inspector?[/]"""
57-
58- panel = Panel (
59- panel_content ,
60- title = "🔍 MCP Inspector" ,
61- border_style = "yellow" ,
62- padding = (1 , 2 )
63- )
57+
58+ panel = Panel (panel_content , title = "🔍 MCP Inspector" , border_style = "yellow" , padding = (1 , 2 ))
6459 console .print (panel )
65-
60+
6661 # Prompt for confirmation
6762 try :
6863 confirm = click .confirm ("Launch raw MCP Inspector" , default = True )
@@ -72,28 +67,28 @@ def launch_raw_inspector():
7267 except (KeyboardInterrupt , EOFError ):
7368 console .print ("\n [yellow]Cancelled.[/]" )
7469 sys .exit (0 )
75-
70+
7671 # Launch raw inspector
7772 raw_inspector_cmd = f"{ NPX_CMD } @modelcontextprotocol/inspector"
78-
73+
7974 console .print ("\n [bold]Launching raw MCP Inspector...[/]" )
8075 console .print ("The Inspector UI will open in your web browser." )
8176 console .print ("[yellow]Press Ctrl+C to stop the Inspector.[/]" )
82-
77+
8378 try :
8479 console .print (f"[dim]Executing: { raw_inspector_cmd } [/]" )
8580 cmd_parts = shlex .split (raw_inspector_cmd )
8681 returncode = subprocess .call (cmd_parts )
87-
82+
8883 if returncode == 0 :
8984 console .print ("[bold green]Inspector process completed successfully.[/]" )
9085 elif returncode in (130 , - 2 ):
9186 console .print ("[bold yellow]Inspector process was terminated.[/]" )
9287 else :
9388 console .print (f"[bold red]Inspector process exited with code { returncode } [/]" )
94-
89+
9590 sys .exit (returncode )
96-
91+
9792 except KeyboardInterrupt :
9893 console .print ("\n [bold yellow]Inspector process terminated by keyboard interrupt.[/]" )
9994 sys .exit (130 )
@@ -112,14 +107,14 @@ def launch_raw_inspector():
112107def inspect (server_name ):
113108 """Launch MCP Inspector to test and debug a server from global configuration.
114109
115- If SERVER_NAME is provided, finds the specified server in the global configuration
110+ If SERVER_NAME is provided, finds the specified server in the global configuration
116111 and launches the MCP Inspector with the correct configuration to connect to and test the server.
117-
112+
118113 If no SERVER_NAME is provided, launches the raw MCP Inspector for manual configuration.
119114
120115 Examples:
121116 mcpm inspect # Launch raw inspector (manual setup)
122- mcpm inspect mcp-server-browse # Inspect the browse server
117+ mcpm inspect mcp-server-browse # Inspect the browse server
123118 mcpm inspect filesystem # Inspect filesystem server
124119 mcpm inspect time # Inspect the time server
125120 """
0 commit comments