firefox-devtools-mcp 0.2.3 → 0.3.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/dist/index.js +10 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -12055,7 +12055,7 @@ var init_constants = __esm({
|
|
|
12055
12055
|
"src/config/constants.ts"() {
|
|
12056
12056
|
"use strict";
|
|
12057
12057
|
SERVER_NAME = "firefox-devtools";
|
|
12058
|
-
SERVER_VERSION = "0.2.
|
|
12058
|
+
SERVER_VERSION = "0.2.5";
|
|
12059
12059
|
}
|
|
12060
12060
|
});
|
|
12061
12061
|
|
|
@@ -15646,6 +15646,7 @@ __export(index_exports, {
|
|
|
15646
15646
|
import { version } from "process";
|
|
15647
15647
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
15648
15648
|
import { resolve as resolve2 } from "path";
|
|
15649
|
+
import { realpathSync } from "fs";
|
|
15649
15650
|
async function getFirefox() {
|
|
15650
15651
|
if (!firefox2) {
|
|
15651
15652
|
log("Initializing Firefox DevTools connection...");
|
|
@@ -15809,7 +15810,14 @@ var init_index = __esm({
|
|
|
15809
15810
|
];
|
|
15810
15811
|
modulePath = fileURLToPath2(import.meta.url);
|
|
15811
15812
|
scriptPath = process.argv[1] ? resolve2(process.argv[1]) : "";
|
|
15812
|
-
isMainModule =
|
|
15813
|
+
isMainModule = false;
|
|
15814
|
+
try {
|
|
15815
|
+
const realModulePath = realpathSync(modulePath);
|
|
15816
|
+
const realScriptPath = scriptPath ? realpathSync(scriptPath) : "";
|
|
15817
|
+
isMainModule = realModulePath === realScriptPath;
|
|
15818
|
+
} catch (error) {
|
|
15819
|
+
isMainModule = modulePath === scriptPath;
|
|
15820
|
+
}
|
|
15813
15821
|
if (isMainModule) {
|
|
15814
15822
|
main().catch((error) => {
|
|
15815
15823
|
logError("Fatal error in main", error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firefox-devtools-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Model Context Protocol (MCP) server for Firefox DevTools automation",
|
|
5
5
|
"author": "freema",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@modelcontextprotocol/sdk": "^1.17.1",
|
|
61
|
+
"geckodriver": "^6.0.2",
|
|
61
62
|
"selenium-webdriver": "^4.36.0",
|
|
62
63
|
"ws": "^8.18.3",
|
|
63
64
|
"yargs": "^17.7.2"
|
|
@@ -75,7 +76,6 @@
|
|
|
75
76
|
"eslint": "^8.57.1",
|
|
76
77
|
"eslint-config-prettier": "^10.1.5",
|
|
77
78
|
"eslint-plugin-prettier": "^5.4.0",
|
|
78
|
-
"geckodriver": "^6.0.2",
|
|
79
79
|
"prettier": "^3.5.3",
|
|
80
80
|
"tsup": "^8.0.0",
|
|
81
81
|
"tsx": "^4.7.0",
|