Laravel Boost '# MCP servers failed' issue

I spent the last hour trying to figure out this issue of showing "2 MCP servers failed" in Claude Code, as you see in the below screenshot. And was finally able to understand and fix this.

Laravel Boost MCP failing to start in Claude Code

Laravel Boost's service provider has a shouldRun() check that skips registering commands (including boost:mcp) when the app isn't in local environment and APP_DEBUG is false. After I corrected the mistake by setting APP_ENV=local and APP_DEBUG=true, the MCP servers started working correctly.

SMH 🤦