Skip to content

Generated mcp.json is not compatible with Windows + WSL development environments #120

@HichemTab-tech

Description

@HichemTab-tech

Laravel Package Version

1.0.16

Laravel Version

12.22.1

PHP Version

8.4

System Info

Windows 11 & Ubuntu WSL Distribution

Description

When using Laravel Boost’s MCP server in PhpStorm with WSL, the default mcp.json configuration fails because PhpStorm’s MCP server settings try to execute the command value directly, instead of resolving it via the configured PHP interpreter. This results in an error like:

Cannot run program "\usr\bin\php8.4": CreateProcess error=2, The system cannot find the file specified

This happens because WSL paths and executables (/usr/bin/php8.4) aren’t valid for direct execution on Windows, and PhpStorm doesn’t automatically wrap them with WSL context.

I believe it's the case for other IDEs as well

Steps To Reproduce

open a laravel project on WSL using a windows Phpstorm and try to add the mcp in mcp server settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions