⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.
Update MCP configuration and statusline to use dynamic MCP listing
Michael Vöhringerfeabc11366bb
diff --git a/.claude/statusline-command.sh b/.claude/statusline-command.shindex 99205cb7..306a302c 100755--- a/.claude/statusline-command.sh+++ b/.claude/statusline-command.sh@@ -27,9 +27,7 @@ if [ -d "$claude_dir/commands" ]; thenfi# Count MCPs from settings.json-if [ -f "$claude_dir/settings.json" ]; then- mcps_count=$(jq -r '.mcpServers | keys | length' "$claude_dir/settings.json" 2>/dev/null || echo "0")-fi+mcps_count=$(claude mcp list | grep ✓ | wc -l | tr -d ' ' 2>/dev/null || echo "0")# Count Services from FoundryServices directoryservices_dir="/Users/daniel/Projects/FoundryServices/Services"@@ -117,32 +115,30 @@ RESET='\033[0m' # Reset all formatting# Get MCP names for line 2 with blue color schememcp_names_formatted=""-if [ -f "$claude_dir/settings.json" ]; then- mcp_names_raw=$(jq -r '.mcpServers | keys[]' "$claude_dir/settings.json" 2>/dev/null | tr '\n' ' ')- # Format MCP names - line 2 blue scheme with accent colors for important ones- for mcp in $mcp_names_raw; do- case "$mcp" in- "daemon") formatted="${MCP_DAEMON}Daemon${RESET}" ;; # Bright blue accent: Personal API- "stripe") formatted="${MCP_STRIPE}Stripe${RESET}" ;; # Blue accent: Financial ops- # All other MCPs use line 2 blue- "httpx") formatted="${MCP_DEFAULT}HTTPx${RESET}" ;;- "brightdata") formatted="${MCP_DEFAULT}BrightData${RESET}" ;;- "naabu") formatted="${MCP_DEFAULT}Naabu${RESET}" ;;- "apify") formatted="${MCP_DEFAULT}Apify${RESET}" ;;- "content") formatted="${MCP_DEFAULT}Content${RESET}" ;;- "Ref") formatted="${MCP_DEFAULT}Ref${RESET}" ;;- "pai") formatted="${MCP_DEFAULT}Foundry${RESET}" ;;- "playwright") formatted="${MCP_DEFAULT}Playwright${RESET}" ;;- *) formatted="${MCP_DEFAULT}${mcp^}${RESET}" ;; # Capitalize first letter, line 2 blue- esac-- if [ -z "$mcp_names_formatted" ]; then- mcp_names_formatted="$formatted"- else- mcp_names_formatted="$mcp_names_formatted${SEPARATOR_COLOR}, ${formatted}"- fi- done-fi+mcp_names_raw=$(claude mcp list 2>/dev/null | grep -v "Checking MCP server health" | cut -d':' -f1 | tr '\n' ' ')+# Format MCP names - line 2 blue scheme with accent colors for important ones+for mcp in $mcp_names_raw; do+ case "$mcp" in+ "daemon") formatted="${MCP_DAEMON}Daemon${RESET}" ;; # Bright blue accent: Personal API+ "stripe") formatted="${MCP_STRIPE}Stripe${RESET}" ;; # Blue accent: Financial ops+ # All other MCPs use line 2 blue+ "httpx") formatted="${MCP_DEFAULT}HTTPx${RESET}" ;;+ "brightdata") formatted="${MCP_DEFAULT}BrightData${RESET}" ;;+ "naabu") formatted="${MCP_DEFAULT}Naabu${RESET}" ;;+ "apify") formatted="${MCP_DEFAULT}Apify${RESET}" ;;+ "content") formatted="${MCP_DEFAULT}Content${RESET}" ;;+ "Ref") formatted="${MCP_DEFAULT}Ref${RESET}" ;;+ "pai") formatted="${MCP_DEFAULT}Foundry${RESET}" ;;+ "playwright") formatted="${MCP_DEFAULT}Playwright${RESET}" ;;+ *) formatted="${MCP_DEFAULT}${mcp^}${RESET}" ;; # Capitalize first letter, line 2 blue+ esac++ if [ -z "$mcp_names_formatted" ]; then+ mcp_names_formatted="$formatted"+ else+ mcp_names_formatted="$mcp_names_formatted${SEPARATOR_COLOR}, ${formatted}"+ fi+done# Output the line-based color themed statusline# Light blue color for directory