Skip to content

docs(getting-started): add npx -y to mcpServers args to auto-confirm install#215

Merged
sebastianbenz merged 2 commits intoChromeDevTools:mainfrom
wuchangming:main
Sep 30, 2025
Merged

docs(getting-started): add npx -y to mcpServers args to auto-confirm install#215
sebastianbenz merged 2 commits intoChromeDevTools:mainfrom
wuchangming:main

Conversation

@wuchangming
Copy link
Copy Markdown
Contributor

Avoids the "Need to install ... Ok to proceed?" interaction so the setup is non-interactive
for CI and first-time runs. (-y == --yes)

@OrKoN OrKoN requested a review from sebastianbenz September 30, 2025 06:20
@sebastianbenz
Copy link
Copy Markdown
Collaborator

Which client are you using? So far, all clients I've tried worked without the -y flag.

@wuchangming
Copy link
Copy Markdown
Contributor Author

Which client are you using? So far, all clients I've tried worked without the -y flag.

I’m using Cursor. The issue happens when the version of chrome-devtools-mcp is higher than my local one — it fails to load. From what I can see, the installation gets interrupted at:

Need to install the following packages:
some-package@x.x.x
Ok to proceed? (y)

That’s why I had to add the -y flag.

Copy link
Copy Markdown
Collaborator

@sebastianbenz sebastianbenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok, seems to be an issue with Cursor then (just noticed that they also include the flag in their docs). I've added a suggestion to also update the add to cursor button. Thanks!

Comment thread README.md Outdated
wuchangming and others added 2 commits September 30, 2025 15:11
@sebastianbenz sebastianbenz merged commit 6947581 into ChromeDevTools:main Sep 30, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants