chrome-devtools-mcp-for-extension 0.9.12 → 0.9.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -424,6 +424,7 @@ export async function launch(options) {
424
424
  let userDataDir = options.userDataDir;
425
425
  let usingSystemProfile = false;
426
426
  let profileDirectory = 'Default';
427
+ let needsSystemProfile = false;
427
428
  if (!userDataDir) {
428
429
  // Use isolated profile (independent from system Chrome)
429
430
  userDataDir = path.join(os.homedir(), '.cache', 'chrome-devtools-mcp', profileDirName);
@@ -508,6 +509,7 @@ export async function launch(options) {
508
509
  if (!executablePath && extensionPaths.length > 0) {
509
510
  // Auto-detect system Chrome executable for extension support
510
511
  effectiveExecutablePath = getSystemChromeExecutable(channel);
512
+ needsSystemProfile = true;
511
513
  console.error(`🔍 Auto-detected system Chrome: ${effectiveExecutablePath}`);
512
514
  console.error(`💡 Using system Chrome for extension support (not Chrome for Testing)`);
513
515
  }
@@ -518,6 +520,11 @@ export async function launch(options) {
518
520
  ? `chrome-${channel}`
519
521
  : 'chrome';
520
522
  }
523
+ // If using system Chrome, also use system Chrome's profile
524
+ if (needsSystemProfile && !options.userDataDir) {
525
+ userDataDir = getSystemChromeUserDataDir(channel);
526
+ console.error(`📁 Switching to system Chrome profile: ${userDataDir}`);
527
+ }
521
528
  // Log complete Chrome configuration before launch
522
529
  console.error('Chrome Launch Configuration:');
523
530
  console.error(` Channel: ${puppeterChannel || 'default'}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrome-devtools-mcp-for-extension",
3
- "version": "0.9.12",
3
+ "version": "0.9.13",
4
4
  "description": "MCP server for Chrome extension development with Web Store automation. Fork of chrome-devtools-mcp with extension-specific tools.",
5
5
  "type": "module",
6
6
  "bin": "./build/src/index.js",