lin的独り言

解决 codex 在 WSL2 中使用 chrome-devtools-mcp 问题

/ 0评

TLDR 完整配置:

[mcp_servers.chrome-devtools]
command = "/full-path/npx" # 完整路径
args = [
    "-y",
    "chrome-devtools-mcp@latest",
    " --no-usage-statistics",
    "--no-performance-crux",
    "--executablePath", # 指定 google-chrome 完整路径
    "/usr/bin/google-chrome",
]
env = { DISPLAY = ":0" } # 设定显示器

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注