@browserstack/mcp-server 1.1.1 → 1.1.2

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
@@ -1,7 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
- import packageJson from "../package.json" with { type: "json" };
4
+ import { createRequire } from "module";
5
+ const require = createRequire(import.meta.url);
6
+ const packageJson = require("../package.json");
5
7
  import "dotenv/config";
6
8
  import logger from "./logger.js";
7
9
  import addSDKTools from "./tools/bstack-sdk.js";
@@ -1,6 +1,8 @@
1
1
  import logger from "../logger.js";
2
2
  import config from "../config.js";
3
- import packageJson from "../../package.json" with { type: "json" };
3
+ import { createRequire } from "module";
4
+ const require = createRequire(import.meta.url);
5
+ const packageJson = require("../../package.json");
4
6
  import axios from "axios";
5
7
  export function trackMCP(toolName, clientInfo, error) {
6
8
  if (config.DEV_MODE) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browserstack/mcp-server",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "BrowserStack's Official MCP Server",
5
5
  "main": "dist/index.js",
6
6
  "repository": {