chrome-devtools-mcp-for-extension 0.18.1 → 0.18.2

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.
@@ -48,7 +48,25 @@ export function resolveUserDataDir(opts) {
48
48
  clientId = sanitize(detected);
49
49
  console.error(`[profiles] Auto-detected client from parent process: ${clientId}`);
50
50
  }
51
- // 0) CI detection ephemeral session directory (unless MCP_PERSIST_PROFILES)
51
+ // 0a) MCP_SHARED_PROFILEshared profile across all projects
52
+ // - Uses a single profile for all projects to avoid re-login
53
+ if (opts.env.MCP_SHARED_PROFILE === 'true') {
54
+ const key = 'shared';
55
+ const p = projectProfilePath(key, clientId, channel);
56
+ const result = {
57
+ path: p,
58
+ reason: 'MCP_USER_DATA_DIR', // Treat as explicit user choice
59
+ projectKey: key,
60
+ projectName: 'shared',
61
+ hash: '00000000',
62
+ clientId,
63
+ channel,
64
+ };
65
+ console.error(`[profiles] resolved(MCP_SHARED_PROFILE): ${result.path} (client=${clientId})`);
66
+ console.error(`[profiles] ℹ️ Using shared profile - login state persists across all projects`);
67
+ return result;
68
+ }
69
+ // 0b) CI detection → ephemeral session directory (unless MCP_PERSIST_PROFILES)
52
70
  // - This happens before other priorities to keep CI clean by default.
53
71
  if (isCI(opts.env) && !opts.env.MCP_PERSIST_PROFILES) {
54
72
  const sessionId = `${process.pid}-${Date.now()}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrome-devtools-mcp-for-extension",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
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": "./scripts/cli.mjs",