Persist CLI defaults for automatic daemon startup
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- cli
Research direction
Start at src/bin/chrome-devtools.ts around lines 262-267, then trace the existing start command option parsing, validation, and status output. Define the persistent-defaults behavior and precedence for automatic and explicit startup, with completion shown by configured values being reused after daemon restarts without bypassing existing validation.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
The experimental chrome-devtools CLI automatically starts its background daemon when the first tool command is invoked. However, the automatic startup path currently calls start([], sessionId), so it cannot reuse user-specific startup options.
For example, a user may always need:
chrome-devtools start --executablePath /usr/bin/chromium --headless=false
If the daemon is not running after a reboot, crash, or explicit stop, invoking a normal command such as chrome-devtools navigate_page --url https://example.com starts it with the built-in defaults instead. The user must remember to run start manually before every new daemon lifecycle, which defeats part of the automatic-start behavior.
The standalone CLI currently has no persistent configuration file or environment-based defaults for options such as executablePath, headless, userDataDir, or other supported start options.
Describe the solution you would like
Add persistent startup defaults for the standalone chrome-devtools CLI.
One possible design is an XDG-compatible configuration file:
$XDG_CONFIG_HOME/chrome-devtools/config.json
with ~/.config/chrome-devtools/config.json as the fallback location. For example:
{
"executablePath": "/usr/bin/chromium",
"headless": false
}
When a tool command automatically starts the daemon, these configured values should be passed to the existing startup path instead of using only an empty argument list.
Suggested precedence:
explicit command-line options > configuration file > built-in defaults
The same defaults could also apply to an explicit chrome-devtools start command when an option is omitted. Existing option parsing and validation should be reused, and chrome-devtools status should continue to show the effective daemon arguments.
An equivalent persistent mechanism would also solve the problem if a configuration file is not considered appropriate.
Describe alternatives you have considered
- Run
chrome-devtools start ...manually before every daemon lifecycle. This is easy to forget and bypasses automatic startup - Define a shell wrapper or function that checks
statusand conditionally runsstart. This is shell-specific, duplicates daemon management logic, and is harder for agents and scripts to use consistently - Run a user-level service that always keeps the daemon alive. This is platform-specific and adds lifecycle management outside the CLI
- Configure startup arguments in an MCP client. This configures an MCP server launched by that client, not the standalone
chrome-devtoolsCLI daemon
Additional context
The current automatic-start implementation is here:
https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/src/bin/chrome-devtools.ts#L262-L267
Related but distinct issues include:
- #1232, which concerns passing options through a Claude Code plugin configuration
- #1184, which added
--autoConnectsupport to the CLI - #889, which concerns discovering Chrome installed in non-standard locations
This request is specifically about persisting defaults for the standalone CLI automatic daemon startup path.
- Dominant language
- TypeScript
- Stars
- 59.8k
- Forks
- 4.8k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 162
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ChromeDevTools/chrome-devtools-mcp
-
feature
Difficulty 1/5 Under an hour Newbie friendliness 78/100
ChromeDevTools/chrome-devtools-mcp#3689 ·
Maintainers usually reply within 1 day
-
`evaluate_script` `sourcePath` http(s) URLs are mangled into `file://` pathsMay be free again A pull request for this issue was closed without being merged. Opencollecting-feedback
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ChromeDevTools/chrome-devtools-mcp#3453 · 3 comments ·
Maintainers usually reply within 1 day
-
collecting-feedback feature
Difficulty 2/5 Half a day Newbie friendliness 76/100
ChromeDevTools/chrome-devtools-mcp#3225 · 3 comments ·
Maintainers usually reply within 1 day
-
confirmed p3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ChromeDevTools/chrome-devtools-mcp#2947 · 1 comment ·
Maintainers usually reply within 1 day
-
Project Migration: Moving to devtools-frontendPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
ChromeDevTools/chrome-devtools-mcp#3648 ·
Maintainers usually reply within 1 day
All issues in ChromeDevTools/chrome-devtools-mcp
Similar issues
-
bug from-app needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nightly-labs/openbot#21303 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ADORSYS-GIS/CoopData#282 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
OHDSI/Data2Evidence#3816 ·
Maintainers usually reply within 3 days
-
`ovsx verify` fails for a version older than the 100 newest of an extensionPossibly taken @trivikr claimed this today. Opencli
Difficulty 2/5 1-3 hours Newbie friendliness 81/100
eclipse-openvsx/openvsx#2482 · 2 comments ·
Maintainers usually reply within 1 day
-
bug builder-vite hmr sev:S3
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
storybookjs/storybook#37965 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day