Skip to content

feat: Add MCP & LSP connection status display to Status component - #127

Merged
will-lamerton merged 1 commit into
Nano-Collective:mainfrom
Avtrkrb:mod/status-component
Dec 7, 2025
Merged

will-lamerton merged 1 commit into
Nano-Collective:mainfrom
Avtrkrb:mod/status-component

Conversation

@Avtrkrb

@Avtrkrb Avtrkrb commented Dec 7, 2025

Copy link
Copy Markdown
Member

Summary

Implements GitHub issue #120 by moving verbose MCP and LSP server connection messages from the main chat area to a clean, summarized status display in the Status component.

Changes Made

1. Type Definitions (source/types/core.ts)

  • Added ConnectionStatus type for server states ('connected', 'failed', 'pending')
  • Added MCPConnectionStatus and LSPConnectionStatus interfaces
  • Included error message support for failed connections

2. State Management (source/hooks/useAppState.tsx)

  • Added mcpServersStatus and lspServersStatus state arrays
  • Added corresponding setter functions to track connection status

3. Background Initialization (source/hooks/useAppInitialization.tsx)

  • Modified MCP and LSP initialization to track status silently
  • Removed verbose success messages from chat during initialization
  • Added progress callbacks to update status arrays in real-time
  • Preserved error information for failed connections

4. Status Component Enhancement (source/components/status.tsx)

  • Added MCP and LSP status sections after Theme display
  • Shows connected/total count with color-coded status indicators
  • Displays error details for failed connections in an indented list
  • Maintains all existing functionality without breaking changes

5. App Integration (source/app.tsx)

  • Updated Status component calls to pass connection status props
  • Provided status props to both static and dynamic Status instances

Test Plan

  • Created comprehensive tests for new Status component functionality
  • Tests cover MCP/LSP status display, error handling, and edge cases
  • All tests pass successfully

Benefits

  • Cleaner startup experience: No more verbose server connection messages flooding chat
  • At-a-glance status: Users can quickly see connection health (e.g., "MCP: 3/4 connected")
  • Error visibility: Failed connections show error messages for debugging
  • Non-intrusive: Status displayed in dedicated section, separate from conversation

Closes #120

…emoved the verbose mcp + lsp connection status messages from main UI.
@Avtrkrb
Avtrkrb requested a review from will-lamerton December 7, 2025 16:04
@Avtrkrb Avtrkrb self-assigned this Dec 7, 2025
@will-lamerton

Copy link
Copy Markdown
Member

Hey @Avtrkrb - this is great :D

@will-lamerton
will-lamerton merged commit 7e710f5 into Nano-Collective:main Dec 7, 2025
@Avtrkrb
Avtrkrb deleted the mod/status-component branch December 8, 2025 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move MCP and LSP connection status to background initialization with summarized status display

2 participants