@@ -323,11 +323,8 @@ function createTopLevelProgram(): Command {
323323 program . addHelpText (
324324 'after' ,
325325 `
326- Session commands (after connecting):
326+ MCP session commands (after connecting):
327327 <@session> Show MCP server info and capabilities
328- <@session> shell Open interactive shell
329- <@session> close Close the session
330- <@session> restart Kill and restart the session
331328 <@session> tools-list List MCP tools
332329 <@session> tools-get <name>
333330 <@session> tools-call <name> [arg:=val ... | <json> | <stdin]
@@ -405,7 +402,7 @@ Server formats:
405402
406403 // close command: mcpc close @<session>
407404 program
408- . command ( 'close [@session]' , { hidden : true } )
405+ . command ( 'close [@session]' )
409406 . usage ( '<@session>' )
410407 . description ( 'Close a session' )
411408 . action ( async ( sessionName , _opts , command ) => {
@@ -417,9 +414,9 @@ Server formats:
417414
418415 // restart command: mcpc restart @<session>
419416 program
420- . command ( 'restart [@session]' , { hidden : true } )
417+ . command ( 'restart [@session]' )
421418 . usage ( '<@session>' )
422- . description ( 'Restart a session' )
419+ . description ( 'Restart a session (losing all state) ' )
423420 . action ( async ( sessionName , _opts , command ) => {
424421 if ( ! sessionName ) {
425422 throw new ClientError (
@@ -431,7 +428,7 @@ Server formats:
431428
432429 // shell command: mcpc shell @<session>
433430 program
434- . command ( 'shell [@session]' , { hidden : true } )
431+ . command ( 'shell [@session]' )
435432 . usage ( '<@session>' )
436433 . description ( 'Open interactive shell for a session' )
437434 . action ( async ( sessionName ) => {
@@ -445,7 +442,7 @@ Server formats:
445442 program
446443 . command ( 'login [server]' )
447444 . usage ( '<server>' )
448- . description ( 'Authenticate to server using OAuth and save the profile ' )
445+ . description ( 'Open web browser for interactive login to a server using OAuth ' )
449446 . option ( '--profile <name>' , 'Profile name (default: "default")' )
450447 . option ( '--scope <scope>' , 'OAuth scope(s) to request' )
451448 . action ( async ( server , opts , command ) => {
@@ -608,7 +605,7 @@ function registerSessionCommands(program: Command, session: string): void {
608605
609606 // Close command
610607 program
611- . command ( 'close' )
608+ . command ( 'close' , { hidden : true } )
612609 . description ( 'Close the session' )
613610 . action ( async ( _options , command ) => {
614611 await sessions . closeSession ( session , getOptionsFromCommand ( command ) ) ;
0 commit comments