@dynamicu/chromedebug-mcp 2.4.4 → 2.5.0
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/package.json +2 -2
- package/src/index.js +10 -0
- package/src/cli.js +0 -19
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamicu/chromedebug-mcp",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "ChromeDebug MCP - MCP server that provides full control over a Chrome browser instance for debugging and automation with AI assistants like Claude Code",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
|
-
"chromedebug-mcp": "./src/
|
|
8
|
+
"chromedebug-mcp": "./src/index.js",
|
|
9
9
|
"chromedebug-mcp-server": "./src/standalone-server.js"
|
|
10
10
|
},
|
|
11
11
|
"publishConfig": {
|
package/src/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Chrome Debug MCP Server - Modular Architecture
|
|
3
5
|
* Refactored from monolithic design to modular components
|
|
@@ -184,6 +186,14 @@ class ChromePilotApp {
|
|
|
184
186
|
}
|
|
185
187
|
}
|
|
186
188
|
|
|
189
|
+
// Auto-enable single-server mode on Windows
|
|
190
|
+
// This prevents HTTP server initialization issues that cause MCP crashes
|
|
191
|
+
if (process.platform === 'win32' && !args.singleServer) {
|
|
192
|
+
args.singleServer = true;
|
|
193
|
+
logger.info('Windows detected: Running in MCP-only mode (HTTP server disabled)');
|
|
194
|
+
logger.info('To start HTTP server for Chrome extension, run: chromedebug-mcp-server');
|
|
195
|
+
}
|
|
196
|
+
|
|
187
197
|
return args;
|
|
188
198
|
}
|
|
189
199
|
|
package/src/cli.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { spawn } from 'child_process';
|
|
4
|
-
import { fileURLToPath } from 'url';
|
|
5
|
-
import { dirname, join } from 'path';
|
|
6
|
-
|
|
7
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
8
|
-
const __dirname = dirname(__filename);
|
|
9
|
-
|
|
10
|
-
const indexPath = join(__dirname, 'index.js');
|
|
11
|
-
|
|
12
|
-
const child = spawn('node', [indexPath], {
|
|
13
|
-
stdio: 'inherit',
|
|
14
|
-
env: process.env
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
child.on('exit', (code) => {
|
|
18
|
-
process.exit(code);
|
|
19
|
-
});
|