agent_crew icon indicating copy to clipboard operation
agent_crew copied to clipboard

feat: Display MCP runtime status in UI (running/failed indicators)

Open sre-helmcode opened this issue 8 months ago • 1 comments

Summary

Update the MCP status display in the Settings panel to show the real runtime status of MCP servers, not just the deployment-time "Configured" status.

Problem

Currently, the MCP status panel shows only two states:

  • 🟢 Configured — sidecar wrote the config file successfully
  • 🔴 Error — sidecar validation failed

This is misleading because an MCP server can be "Configured" at deployment but fail at runtime when Claude Code or OpenCode actually tries to start it. The user sees a green dot but the agent cannot use the MCP tools.

Proposed Changes

1. src/types/index.ts

Extend McpServerStatus:

export interface McpServerStatus {
  name: string;
  status: 'configured' | 'running' | 'failed' | 'error';
  error?: string;
}

2. src/components/SkillStatusPanel.tsx

Update the MCP status display to show 4 states:

  • 🟡 Configured — config written, waiting for runtime confirmation
  • 🟢 Running — MCP server successfully started at runtime
  • 🔴 Failed — MCP server failed at runtime (with error tooltip)
  • 🔴 Error — sidecar validation/pre-warming failed (with error tooltip)

The "Configured" state should use a yellow/amber indicator instead of green to signal that runtime confirmation is pending.

3. Real-time updates

MCP runtime status messages arrive via the existing WebSocket activity stream. The component should listen for mcp_status events and update the display in real time when a team is running.

Mockup

MCP Servers
┌──────────────────────────────────────┐
│ 🟢 postgres  stdio  Running         │
│   uvx postgres-mcp --access-mode=…  │
├──────────────────────────────────────┤
│ 🔴 redis     stdio  Failed          │
│   ⚠ MCP server failed at runtime:   │
│   "Connection refused"              │
└──────────────────────────────────────┘

Depends On

  • Backend issue for parsing MCP runtime status from Claude Code init event

Files

  • src/types/index.ts — McpServerStatus type
  • src/components/SkillStatusPanel.tsx — Status display rendering

sre-helmcode avatar Mar 11 '26 14:03 sre-helmcode

Implemented in commit 9b87da3. MCP status UI now shows 4 states: configured (amber), running (green), failed (red), error (red) with expandable error details. Real-time updates via existing WebSocket mcp_status events.

sre-helmcode avatar Mar 12 '26 18:03 sre-helmcode