Skip to content

Conversation

dungnguyent8
Copy link

This PR introduces a new --protocolTimeout CLI option, allowing users to configure the timeout for Chrome DevTools Protocol operations.

Key Changes:

  • README.md: Updated to document the new --protocolTimeout CLI option.
  • src/cli.ts: Added the protocolTimeout option to the CLI argument parser.
  • src/browser.ts: Modified browser connection and launch functions to accept and utilize the protocolTimeout value, defaulting to 10 seconds if not specified. A clarifying comment was added to the McpLaunchOptions interface.
  • src/main.ts: Integrated the protocolTimeout argument when connecting to or launching the browser.

These changes enhance flexibility by enabling users to adjust the protocol timeout based on their specific needs, improving stability for operations that might require longer execution times.

Related issue:
image

Copy link

google-cla bot commented Oct 4, 2025

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.

@dungnguyent8 dungnguyent8 force-pushed the feat/support-protocol-timeout branch from 491ae91 to 8a67125 Compare October 4, 2025 15:21
@Lightning00Blade Lightning00Blade self-requested a review October 6, 2025 09:21
@OrKoN OrKoN force-pushed the feat/support-protocol-timeout branch from 8a67125 to a3ffe2e Compare October 7, 2025 14:02
@OrKoN
Copy link
Collaborator

OrKoN commented Oct 7, 2025

@Lightning00Blade I wonder if we should just bump the protocol timeout value or use Puppeteer's default instead of making it configurable? WDYT?

@Lightning00Blade
Copy link
Collaborator

I think using the default should be OK. We do set some timeouts high ourselves when emulation is enabled.

pull bot pushed a commit to oogalieboogalie/chrome-devtools-mcp that referenced this pull request Oct 8, 2025
AlinaVarkki pushed a commit that referenced this pull request Oct 13, 2025
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.

3 participants