chrome-devtools-mcp-for-extension 0.9.13 → 0.9.14
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.
- package/build/src/browser.js +2 -8
- package/package.json +1 -1
package/build/src/browser.js
CHANGED
|
@@ -424,7 +424,6 @@ 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;
|
|
428
427
|
if (!userDataDir) {
|
|
429
428
|
// Use isolated profile (independent from system Chrome)
|
|
430
429
|
userDataDir = path.join(os.homedir(), '.cache', 'chrome-devtools-mcp', profileDirName);
|
|
@@ -509,9 +508,9 @@ export async function launch(options) {
|
|
|
509
508
|
if (!executablePath && extensionPaths.length > 0) {
|
|
510
509
|
// Auto-detect system Chrome executable for extension support
|
|
511
510
|
effectiveExecutablePath = getSystemChromeExecutable(channel);
|
|
512
|
-
needsSystemProfile = true;
|
|
513
511
|
console.error(`🔍 Auto-detected system Chrome: ${effectiveExecutablePath}`);
|
|
514
|
-
console.error(`💡 Using system Chrome
|
|
512
|
+
console.error(`💡 Using system Chrome binary with isolated MCP profile`);
|
|
513
|
+
console.error(`📝 Extensions will be loaded from: ${extensionPaths.join(', ')}`);
|
|
515
514
|
}
|
|
516
515
|
else if (!executablePath) {
|
|
517
516
|
// No extensions, use Chrome for Testing via channel
|
|
@@ -520,11 +519,6 @@ export async function launch(options) {
|
|
|
520
519
|
? `chrome-${channel}`
|
|
521
520
|
: 'chrome';
|
|
522
521
|
}
|
|
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
|
-
}
|
|
528
522
|
// Log complete Chrome configuration before launch
|
|
529
523
|
console.error('Chrome Launch Configuration:');
|
|
530
524
|
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.
|
|
3
|
+
"version": "0.9.14",
|
|
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",
|