@@ -6,6 +6,7 @@ import { MCPConfigService } from '../core/mcp';
66import { TableFormatter } from '../utils/table' ;
77import { ToolDiscoveryManager } from '../utils/tool-discovery-manager' ;
88import { AuthenticationError } from '../types/auth' ;
9+ import { displayBackendUrl } from '../utils/display' ;
910
1011export function registerTeamsCommand ( program : Command ) {
1112 program
@@ -71,23 +72,23 @@ export function registerTeamsCommand(program: Command) {
7172 continueOnError : true
7273 } ) ;
7374
74- console . log ( chalk . gray ( `🌐 Using backend: ${ backendUrl } ` ) ) ;
75+ console . log ( chalk . gray ( `🌐 Using backend: ${ displayBackendUrl ( backendUrl ) } ` ) ) ;
7576 } catch ( mcpError ) {
7677 // Team switch succeeded but MCP config failed - still show success but warn about MCP
7778 console . log ( chalk . green ( `✅ Switched to team: ${ chalk . cyan ( teamToSwitch . name ) } (#${ teamNumber } )` ) ) ;
7879 console . log ( chalk . yellow ( '⚠️ Could not download MCP configurations for new team' ) ) ;
7980 if ( mcpError instanceof Error ) {
8081 console . log ( chalk . gray ( ` MCP Error: ${ mcpError . message } ` ) ) ;
8182 }
82- console . log ( chalk . gray ( `🌐 Using backend: ${ backendUrl } ` ) ) ;
83+ console . log ( chalk . gray ( `🌐 Using backend: ${ displayBackendUrl ( backendUrl ) } ` ) ) ;
8384 }
8485 return ;
8586 }
8687
8788 if ( teams . length === 0 ) {
8889 console . log ( chalk . yellow ( '📭 You are not a member of any teams' ) ) ;
8990 console . log ( chalk . gray ( '💡 Contact your administrator to be added to a team' ) ) ;
90- console . log ( chalk . gray ( `🌐 Using backend: ${ backendUrl } ` ) ) ;
91+ console . log ( chalk . gray ( `🌐 Using backend: ${ displayBackendUrl ( backendUrl ) } ` ) ) ;
9192 return ;
9293 }
9394
@@ -101,7 +102,7 @@ export function registerTeamsCommand(program: Command) {
101102 console . log ( chalk . yellow ( '⚠️ No team selected - use --switch <team-number> to select one' ) ) ;
102103 }
103104
104- console . log ( chalk . gray ( `🌐 Using backend: ${ backendUrl } \n` ) ) ;
105+ console . log ( chalk . gray ( `🌐 Using backend: ${ displayBackendUrl ( backendUrl ) } \n` ) ) ;
105106
106107 // Create table
107108 const table = TableFormatter . createTable ( {
0 commit comments