You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[plan] Migrate mcp_inspect_mcp.go to use console helpers instead of direct Lipgloss #11620
Replace direct Lipgloss style usage in mcp_inspect_mcp.go with appropriate console package helpers for consistency.
Context
From discussion #11611: The mcp_inspect_mcp.go file directly uses styles.ServerName, styles.ServerType, and styles.ErrorBox.Render() instead of going through the console package abstraction layer.
Current Issues: Lines 54-57, 73 use direct Lipgloss styles.
Approach
Review current usage in pkg/cli/mcp_inspect_mcp.go:
Identify all direct styles.* usage (lines ~54-57, ~73)
Consider: pkg/console/*.go (if new helpers are needed)
Implementation Guidance
// Before (mcp_inspect_mcp.go:54-57):serverNameStyled:=styles.ServerName.Render(serverName)
serverTypeStyled:=styles.ServerType.Render(fmt.Sprintf("(%s)", mcpConfig.Mode))
// After (option 1 - use existing formatter):serverInfo:=console.FormatInfoMessage(fmt.Sprintf("%s (%s)", serverName, mcpConfig.Mode))
// After (option 2 - create new helper if needed):serverInfo:=console.FormatListItem(fmt.Sprintf("%s (%s)", serverName, mcpConfig.Mode))
// Before (mcp_inspect_mcp.go:73):fmt.Fprintln(os.Stderr, styles.ErrorBox.Render(errorMsg))
// After:fmt.Fprintln(os.Stderr, console.RenderErrorBox(errorMsg))
Acceptance Criteria
All direct styles.* usage replaced with console helpers
Activity
github-actions commentedon Jan 24, 2026
🍪 Issue Monster has assigned this to Copilot!
I've identified this issue as a good candidate for automated resolution and assigned it to the Copilot agent.
The Copilot agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪