Register the Chrome DevTools MCP server in Codex by adding the TOML block to ~/.codex/config.toml and restarting Codex.
[mcp_servers."chrome-devtools"]
command = "npx"
args = ["chrome-devtools-mcp@latest"]
1/10/2025
Codex looks for Model Context Protocol servers in ~/.codex/config.toml. Adding the Chrome DevTools block lets Codex launch a dedicated Chrome instance with the correct debugging flags whenever a DevTools task runs.
~/.codex/config.toml exists (create the directory/file if needed).After Codex restarts, ask it to run a browser task such as:
Check the LCP of https://web.dev
Codex should spawn a Chrome window controlled through MCP and return a response. You can also target a local project:
Open http://localhost:3000 and report console errors
[mcp_servers."name"] block.--remote-debugging-port=9222 and rerun the command.Removes the outdated codex Homebrew formula (0.46.x) so the newly installed cask (0.47.x) becomes the active binary.
brew uninstall codex --formulaForce your Mac to resolve a domain to a specific IP by modifying the /etc/hosts file
sudo nano /etc/hostsSearch recursively for <Button in TS/TSX files while excluding node_modules, src/components/contact, and src/components/ui.
rg "<Button" -g "*.ts*" -g '!*./node_modules/**' -g '!src/components/contact/**' -g '!src/components/ui/**'