Boost Version
2.4.4
Laravel Version
12.56.0
Agent/IDE Name & Version
codex-cli 0.125.0
PHP Version
8.4.18
System Info
CachyOS (Linux 7.0.1) with Laravel Sail
Description
When running vendor/bin/sail artisan boost:install and selecting Codex, the generated .codex/config.toml contains cwd = "/var/www/html" — the path inside the Docker container, not the host filesystem.
Codex CLI runs on the host machine, so it tries to chdir to /var/www/html, which doesn't exist, and the MCP server fails to start:
⚠ MCP client for `laravel-boost` failed to start: MCP startup failed: No such file or directory (os error 2)
⚠ MCP startup incomplete (failed: laravel-boost)
Root cause: Codex::mcpServerConfig() sets cwd to config('boost.executable_paths.current_directory', base_path()). When the Artisan command runs inside Sail, base_path() returns /var/www/html, which gets written verbatim into the host-side TOML config.
The base Agent::mcpServerConfig() does not include cwd, so Claude Code's .mcp.json is unaffected — vendor/bin/sail resolves correctly from the project root.
Workaround: Remove the cwd line from .codex/config.toml after installation.
Steps To Reproduce
- Install Laravel with Sail
composer require laravel/boost
vendor/bin/sail artisan boost:install — select Codex with MCP enabled
- Inspect
.codex/config.toml — observe cwd = "/var/www/html"
- Run
codex from the project root — MCP fails with "No such file or directory"
- Remove the
cwd line — MCP starts successfully
Boost Version
2.4.4
Laravel Version
12.56.0
Agent/IDE Name & Version
codex-cli 0.125.0
PHP Version
8.4.18
System Info
CachyOS (Linux 7.0.1) with Laravel Sail
Description
When running
vendor/bin/sail artisan boost:installand selecting Codex, the generated.codex/config.tomlcontainscwd = "/var/www/html"— the path inside the Docker container, not the host filesystem.Codex CLI runs on the host machine, so it tries to
chdirto/var/www/html, which doesn't exist, and the MCP server fails to start:Root cause:
Codex::mcpServerConfig()setscwdtoconfig('boost.executable_paths.current_directory', base_path()). When the Artisan command runs inside Sail,base_path()returns/var/www/html, which gets written verbatim into the host-side TOML config.The base
Agent::mcpServerConfig()does not includecwd, so Claude Code's.mcp.jsonis unaffected —vendor/bin/sailresolves correctly from the project root.Workaround: Remove the
cwdline from.codex/config.tomlafter installation.Steps To Reproduce
composer require laravel/boostvendor/bin/sail artisan boost:install— select Codex with MCP enabled.codex/config.toml— observecwd = "/var/www/html"codexfrom the project root — MCP fails with "No such file or directory"cwdline — MCP starts successfully