We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd29bc3 commit d9cb6e3Copy full SHA for d9cb6e3
src/lib/device-cache.ts
@@ -2,6 +2,7 @@ import fs from "fs";
2
import os from "os";
3
import path from "path";
4
import { apiClient } from "./apiClient.js";
5
+import config from "../config.js";
6
7
const CACHE_DIR = path.join(os.homedir(), ".browserstack", "combined_cache");
8
const CACHE_FILE = path.join(CACHE_DIR, "data.json");
@@ -69,6 +70,9 @@ export async function getDevicesAndBrowsers(
69
70
// Rate limiter for started event (3H)
71
export function shouldSendStartedEvent(): boolean {
72
try {
73
+ if(config && config.REMOTE_MCP){
74
+ return false;
75
+ }
76
if (!fs.existsSync(CACHE_DIR)) {
77
fs.mkdirSync(CACHE_DIR, { recursive: true });
78
}
0 commit comments