可选安装示例会直接执行未固定版本的远程 npm 包
原文依据:3 处配置示例使用 `npx -y chrome-devtools-mcp@latest`。`-y` 会自动接受安装,而 `@latest` 会随发布变化,因此将来执行的代码没有固定到已审查版本。技能确实限定只有在用户要求安装且配置变更已获授权时才这样做,但这不能消除远程包更新或依赖被入侵的供应链风险。
如果用户采用此配置,启动 MCP 服务时可能下载并以用户权限执行当时的最新版包及其依赖;恶意或被入侵的版本可能读取该账户可访问的文件、令牌或浏览器数据。
这是可选且有条件的安装示例:仅当用户要求设置且配置变更属于授权范围时才适用。实际采用示例会让 `npx -y` 无需再次确认便获取并运行 `chrome-devtools-mcp@latest`;`latest` 未固定到已审查版本,因此执行内容可能随未来发布变化。用户可要求作者固定具体版本并提供包来源与版本审查说明。
If the user wants Chrome DevTools MCP setup, consult its [installation guide](https://github.com/ChromeDevTools/chrome-devtools-mcp#quick-start) and use the latest package version. Only change MCP configuration when setup is within the user's authorized scope; otherwise ask first. For clients using `command` and `args`, an example server entry is:查看另外 2 个位置
```json"chrome-devtools": { "command": "npx", "args": ["-y", "chrome-devtools-mcp@latest"]}```"chrome-devtools": { "command": "npx", "args": ["-y", "chrome-devtools-mcp@latest"]}