docs: fix Codex MCP add instructions#968
docs: fix Codex MCP add instructions#968liuxiaopai-ai wants to merge 6 commits intoChromeDevTools:mainfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
47496a8 to
74fcf9d
Compare
|
Rebased on latest main and resolved merge conflicts in docs/troubleshooting.md. Also ran:
(Added missing license header + formatting for the remote debugging example so eslint/prettier passes.) Note: |
|
Could you please sign the CLA? |
|
|
||
| ## Specific problems | ||
|
|
||
| ### Codex: `error: unexpected argument 'add' found` |
There was a problem hiding this comment.
if the latest codex version supports add, then we probably should not need to document it as users will upgrade soon?
|
|
||
| Point the MCP connection inside the VM to `http://127.0.0.1:9222`. This allows DevTools to reach the host browser without triggering the Host validation error. | ||
|
|
||
| ### Connecting to a running Chrome instance (remote debugging, 9222) |
There was a problem hiding this comment.
this does not seem to be related to codex. Please remove this section.
| @@ -0,0 +1,55 @@ | |||
| /** | |||
There was a problem hiding this comment.
please remove this example (not related to codex).
|
|
||
| Verification: run `codex mcp list` and confirm `chrome-devtools` is listed. | ||
|
|
||
| If you see `error: unexpected argument 'add' found`, your Codex CLI is too old to support `codex mcp add`. |
There was a problem hiding this comment.
can we be more specific in which codex version does add work?
Fixes #967.
npx -y(matches the recommended config and avoids interactive prompts).codex mcp list).error: unexpected argument 'add' foundcase (older Codex CLIs) and provide a.codex/config.tomlfallback snippet.