Chrome DevTools for coding agents
fix: change profile folder name to browser-profile (#39)
Alex Rudenko36115d757abb
diff --git a/README.md b/README.mdindex 93a2519b..4149e57f 100644--- a/README.md+++ b/README.md@@ -189,8 +189,8 @@ You can also run `npx chrome-devtools-mcp@latest --help` to see all available co`chrome-devtools-mcp` starts a Chrome's stable channel instance using the following userdata directory:-- Linux / MacOS: `$HOME/.cache/chrome-devtools-mcp/mcp-profile-$CHANNEL`-- Window: `%HOMEPATH%/.cache/chrome-devtools-mcp/mcp-profile-$CHANNEL`+- Linux / MacOS: `$HOME/.cache/chrome-devtools-mcp/chrome-profile-$CHANNEL`+- Window: `%HOMEPATH%/.cache/chrome-devtools-mcp/chrome-profile-$CHANNEL`The user data directory is not cleared between runs and shared acrossall instances of `chrome-devtools-mcp`. Set the `isolated` option to `true`diff --git a/src/browser.ts b/src/browser.tsindex f400fd76..09527fca 100644--- a/src/browser.ts+++ b/src/browser.ts@@ -66,7 +66,9 @@ type McpLaunchOptions = {export async function launch(options: McpLaunchOptions): Promise<Browser> {const {channel, executablePath, customDevTools, headless, isolated} = options;const profileDirName =- channel && channel !== 'stable' ? `mcp-profile-${channel}` : 'mcp-profile';+ channel && channel !== 'stable'+ ? `chrome-profile-${channel}`+ : 'chrome-profile';let userDataDir = options.userDataDir;if (!isolated && !userDataDir) {