@dynamicu/chromedebug-mcp 2.5.13 → 2.5.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/package.json +1 -1
- package/src/logger.js +5 -4
- package/src/services/http-client.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamicu/chromedebug-mcp",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.14",
|
|
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",
|
package/src/logger.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// Simple conditional logger for Chrome Debug
|
|
2
|
+
// All logs go to stderr to avoid interfering with MCP stdio communication
|
|
2
3
|
const isDev = process.env.NODE_ENV === 'development';
|
|
3
4
|
|
|
4
5
|
module.exports = {
|
|
5
|
-
log: (...args) => { if (isDev) console.
|
|
6
|
+
log: (...args) => { if (isDev) console.error(...args); },
|
|
6
7
|
error: (...args) => console.error(...args),
|
|
7
|
-
warn: (...args) => { if (isDev) console.
|
|
8
|
-
info: (...args) => { if (isDev) console.
|
|
9
|
-
debug: (...args) => { if (isDev) console.
|
|
8
|
+
warn: (...args) => { if (isDev) console.error(...args); },
|
|
9
|
+
info: (...args) => { if (isDev) console.error(...args); },
|
|
10
|
+
debug: (...args) => { if (isDev) console.error(...args); }
|
|
10
11
|
};
|
|
@@ -30,12 +30,12 @@ class HttpClientService {
|
|
|
30
30
|
port = config.httpPort || port;
|
|
31
31
|
}
|
|
32
32
|
} catch (configError) {
|
|
33
|
-
console.
|
|
33
|
+
console.error('[HttpClient] Config loader not available, using default port:', port);
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
this.baseUrl = `http://localhost:${port}`;
|
|
37
37
|
this.initialized = true;
|
|
38
|
-
console.
|
|
38
|
+
console.error(`[HttpClient] Initialized with base URL: ${this.baseUrl}`);
|
|
39
39
|
} catch (error) {
|
|
40
40
|
console.error('[HttpClient] Failed to initialize:', error);
|
|
41
41
|
throw error;
|
|
@@ -71,7 +71,7 @@ class HttpClientService {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
try {
|
|
74
|
-
console.
|
|
74
|
+
console.error(`[HttpClient] Making ${requestOptions.method} request to ${url}`);
|
|
75
75
|
const response = await fetch(url, requestOptions);
|
|
76
76
|
|
|
77
77
|
if (!response.ok) {
|