@arabold/docs-mcp-server 1.33.0 → 1.33.1

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 CHANGED
@@ -2357,19 +2357,17 @@ class BrowserFetcher {
2357
2357
  );
2358
2358
  }
2359
2359
  }
2360
+ static async launchBrowser() {
2361
+ return chromium.launch({
2362
+ headless: true,
2363
+ executablePath: process.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH || void 0,
2364
+ args: ["--no-sandbox"]
2365
+ });
2366
+ }
2360
2367
  async ensureBrowserReady() {
2361
2368
  if (!this.browser) {
2362
2369
  logger.debug("Launching browser...");
2363
- this.browser = await chromium.launch({
2364
- headless: true,
2365
- args: [
2366
- "--no-sandbox",
2367
- "--disable-setuid-sandbox",
2368
- "--disable-dev-shm-usage",
2369
- "--disable-web-security",
2370
- "--disable-features=site-per-process"
2371
- ]
2372
- });
2370
+ this.browser = await BrowserFetcher.launchBrowser();
2373
2371
  }
2374
2372
  if (!this.page) {
2375
2373
  this.page = await this.browser.newPage();
@@ -5203,16 +5201,8 @@ class HtmlPlaywrightMiddleware {
5203
5201
  */
5204
5202
  async ensureBrowser() {
5205
5203
  if (!this.browser || !this.browser.isConnected()) {
5206
- const launchArgs = process.env.PLAYWRIGHT_LAUNCH_ARGS?.split(" ") ?? [];
5207
- const executablePath = process.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH || void 0;
5208
- logger.debug(
5209
- `Launching new Playwright browser instance (Chromium) with args: ${launchArgs.join(" ") || "none"}...`
5210
- );
5211
- this.browser = await chromium.launch({
5212
- channel: "chromium",
5213
- args: launchArgs,
5214
- executablePath
5215
- });
5204
+ logger.debug("Launching new Playwright browser instance (Chromium)");
5205
+ this.browser = await BrowserFetcher.launchBrowser();
5216
5206
  this.browser.on("disconnected", () => {
5217
5207
  logger.debug("Playwright browser instance disconnected.");
5218
5208
  this.browser = null;
@@ -10870,7 +10860,7 @@ const Layout = ({
10870
10860
  children,
10871
10861
  eventClientConfig
10872
10862
  }) => {
10873
- const versionString = version || "1.33.0";
10863
+ const versionString = version || "1.33.1";
10874
10864
  const versionInitializer = `versionUpdate({ currentVersion: ${`'${versionString}'`} })`;
10875
10865
  return /* @__PURE__ */ jsxs("html", { lang: "en", children: [
10876
10866
  /* @__PURE__ */ jsxs("head", { children: [
@@ -13182,7 +13172,7 @@ class AppServer {
13182
13172
  try {
13183
13173
  if (telemetry.isEnabled()) {
13184
13174
  telemetry.setGlobalContext({
13185
- appVersion: "1.33.0",
13175
+ appVersion: "1.33.1",
13186
13176
  appPlatform: process.platform,
13187
13177
  appNodeVersion: process.version,
13188
13178
  appServicesEnabled: this.getActiveServicesList(),
@@ -16669,7 +16659,7 @@ function createCliProgram() {
16669
16659
  const commandStartTimes = /* @__PURE__ */ new Map();
16670
16660
  let globalEventBus = null;
16671
16661
  let globalTelemetryService = null;
16672
- program.name("docs-mcp-server").description("Unified CLI, MCP Server, and Web Interface for Docs MCP Server.").version("1.33.0").addOption(
16662
+ program.name("docs-mcp-server").description("Unified CLI, MCP Server, and Web Interface for Docs MCP Server.").version("1.33.1").addOption(
16673
16663
  new Option("--verbose", "Enable verbose (debug) logging").conflicts("silent")
16674
16664
  ).addOption(new Option("--silent", "Disable all logging except errors")).addOption(
16675
16665
  new Option("--telemetry", "Enable telemetry collection").env("DOCS_MCP_TELEMETRY").argParser((value) => {
@@ -16703,7 +16693,7 @@ function createCliProgram() {
16703
16693
  if (shouldEnableTelemetry()) {
16704
16694
  if (telemetry.isEnabled()) {
16705
16695
  telemetry.setGlobalContext({
16706
- appVersion: "1.33.0",
16696
+ appVersion: "1.33.1",
16707
16697
  appPlatform: process.platform,
16708
16698
  appNodeVersion: process.version,
16709
16699
  appInterface: "cli",