Feature request: include MCP server status in statusLine command stdin data

Resolved 💬 2 comments Opened Mar 14, 2026 by julish13 Closed Apr 11, 2026

Problem

The statusLine command receives a JSON payload via stdin with session data (model, context window, cost, etc.), but it does not include MCP server status.

This makes it impossible to build a status line widget that shows which MCP servers are currently enabled/connected in the active session.

Current workaround

Walking up the process tree to find the parent claude --mcp-config <file> process and reading the config file — but this only shows all configured servers, not which ones are actually enabled/connected.

Proposed solution

Add an mcp_servers field to the stdin JSON payload, similar to what is already available internally:

{
  "mcp_servers": [
    { "name": "linear", "status": "connected" },
    { "name": "figma", "status": "connected" },
    { "name": "notion", "status": "disconnected" }
  ]
}

This would allow status line tools (e.g. ccstatusline) to display real-time MCP connection status.

— By Claude

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗