scripts / setup.cjs
const { setup } = require("./runtime.cjs");
setup().then((python) => console.log("Web Security MCP Python ready: " + python)).catch((error) => {
console.error("Web Security MCP setup: " + error.message);
// Keep the plugin loadable even if the recipient has not installed Python yet.
// Explicit setup fails, whereas the optional installation hook gives guidance.
process.exitCode = process.argv.includes("--optional") ? 0 : 1;
});
scripts / setup.cjs
const { setup } = require("./runtime.cjs");
setup().then((python) => console.log("Web Security MCP Python ready: " + python)).catch((error) => {
console.error("Web Security MCP setup: " + error.message);
// Keep the plugin loadable even if the recipient has not installed Python yet.
// Explicit setup fails, whereas the optional installation hook gives guidance.
process.exitCode = process.argv.includes("--optional") ? 0 : 1;
});