@chrrxs/robloxstudio-mcp-inspector 2.11.0 → 2.11.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
@@ -3203,7 +3203,7 @@ var init_server = __esm({
3203
3203
  let promotionInterval;
3204
3204
  try {
3205
3205
  primaryApp = createHttpServer(this.tools, this.bridge, this.allowedToolNames, this.config);
3206
- const result = await listenWithRetry(primaryApp, host, basePort, 5);
3206
+ const result = await listenWithRetry(primaryApp, host, basePort, 1);
3207
3207
  httpHandle = result.server;
3208
3208
  boundPort = result.port;
3209
3209
  console.error(`HTTP server listening on ${host}:${boundPort} for Studio plugin (primary mode)`);
@@ -3214,25 +3214,25 @@ var init_server = __esm({
3214
3214
  const proxyBridge = new ProxyBridgeService(`http://localhost:${basePort}`);
3215
3215
  this.bridge = proxyBridge;
3216
3216
  this.tools = new RobloxStudioTools(this.bridge);
3217
- console.error(`All ports ${basePort}-${basePort + 4} in use - entering proxy mode (forwarding to localhost:${basePort})`);
3217
+ console.error(`Port ${basePort} in use - entering proxy mode (forwarding to localhost:${basePort})`);
3218
3218
  const promotionIntervalMs = parseInt(process.env.ROBLOX_STUDIO_PROXY_PROMOTION_INTERVAL_MS || "5000");
3219
3219
  promotionInterval = setInterval(async () => {
3220
+ const candidateBridge = new BridgeService();
3221
+ const candidateTools = new RobloxStudioTools(candidateBridge);
3222
+ const candidateApp = createHttpServer(candidateTools, candidateBridge, this.allowedToolNames, this.config);
3220
3223
  try {
3221
- this.bridge = new BridgeService();
3222
- this.tools = new RobloxStudioTools(this.bridge);
3223
- primaryApp = createHttpServer(this.tools, this.bridge, this.allowedToolNames, this.config);
3224
- const result = await listenWithRetry(primaryApp, host, basePort, 5);
3224
+ const result = await listenWithRetry(candidateApp, host, basePort, 1);
3225
+ this.bridge = candidateBridge;
3226
+ this.tools = candidateTools;
3225
3227
  httpHandle = result.server;
3226
3228
  boundPort = result.port;
3229
+ primaryApp = candidateApp;
3227
3230
  bridgeMode = "primary";
3228
3231
  primaryApp.setMCPServerActive(true);
3229
3232
  console.error(`Promoted from proxy to primary on port ${boundPort}`);
3230
3233
  if (promotionInterval)
3231
3234
  clearInterval(promotionInterval);
3232
3235
  } catch {
3233
- this.bridge = new ProxyBridgeService(`http://localhost:${basePort}`);
3234
- this.tools = new RobloxStudioTools(this.bridge);
3235
- primaryApp = void 0;
3236
3236
  }
3237
3237
  }, promotionIntervalMs);
3238
3238
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrrxs/robloxstudio-mcp-inspector",
3
- "version": "2.11.0",
3
+ "version": "2.11.1",
4
4
  "description": "Read-only MCP Server for Roblox Studio (fork of boshyxd/robloxstudio-mcp-inspector with per-peer execute_luau fixes baked in)",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -6203,7 +6203,7 @@ return {
6203
6203
  <Properties>
6204
6204
  <string name="Name">State</string>
6205
6205
  <string name="Source"><![CDATA[-- Compiled with roblox-ts v3.0.0
6206
- local CURRENT_VERSION = "2.11.0"
6206
+ local CURRENT_VERSION = "2.11.1"
6207
6207
  local MAX_CONNECTIONS = 5
6208
6208
  local BASE_PORT = 58741
6209
6209
  local activeTabIndex = 0
@@ -6579,7 +6579,7 @@ local function init(pluginRef)
6579
6579
  creditsLabel.Position = UDim2.new(0, 10, 0, 23)
6580
6580
  creditsLabel.BackgroundTransparency = 1
6581
6581
  creditsLabel.RichText = true
6582
- creditsLabel.Text = '<font color="#999999">by</font> <font color="#CCCCCC">@BoshyDx</font> <font color="#666666">|</font> <font color="#999999">discord</font> <font color="#CCCCCC">boshyz</font>'
6582
+ creditsLabel.Text = '<font color="#999999">github</font> <font color="#CCCCCC">Chrrxs/robloxstudio-mcp</font>'
6583
6583
  creditsLabel.TextColor3 = C.muted
6584
6584
  creditsLabel.TextSize = 8
6585
6585
  creditsLabel.Font = Enum.Font.GothamMedium
@@ -6203,7 +6203,7 @@ return {
6203
6203
  <Properties>
6204
6204
  <string name="Name">State</string>
6205
6205
  <string name="Source"><![CDATA[-- Compiled with roblox-ts v3.0.0
6206
- local CURRENT_VERSION = "2.11.0"
6206
+ local CURRENT_VERSION = "2.11.1"
6207
6207
  local MAX_CONNECTIONS = 5
6208
6208
  local BASE_PORT = 58741
6209
6209
  local activeTabIndex = 0
@@ -6579,7 +6579,7 @@ local function init(pluginRef)
6579
6579
  creditsLabel.Position = UDim2.new(0, 10, 0, 23)
6580
6580
  creditsLabel.BackgroundTransparency = 1
6581
6581
  creditsLabel.RichText = true
6582
- creditsLabel.Text = '<font color="#999999">by</font> <font color="#CCCCCC">@BoshyDx</font> <font color="#666666">|</font> <font color="#999999">discord</font> <font color="#CCCCCC">boshyz</font>'
6582
+ creditsLabel.Text = '<font color="#999999">github</font> <font color="#CCCCCC">Chrrxs/robloxstudio-mcp</font>'
6583
6583
  creditsLabel.TextColor3 = C.muted
6584
6584
  creditsLabel.TextSize = 8
6585
6585
  creditsLabel.Font = Enum.Font.GothamMedium
@@ -301,7 +301,7 @@ function init(pluginRef: Plugin) {
301
301
  creditsLabel.Position = new UDim2(0, 10, 0, 23);
302
302
  creditsLabel.BackgroundTransparency = 1;
303
303
  creditsLabel.RichText = true;
304
- creditsLabel.Text = '<font color="#999999">by</font> <font color="#CCCCCC">@BoshyDx</font> <font color="#666666">|</font> <font color="#999999">discord</font> <font color="#CCCCCC">boshyz</font>';
304
+ creditsLabel.Text = '<font color="#999999">github</font> <font color="#CCCCCC">Chrrxs/robloxstudio-mcp</font>';
305
305
  creditsLabel.TextColor3 = C.muted;
306
306
  creditsLabel.TextSize = 8;
307
307
  creditsLabel.Font = Enum.Font.GothamMedium;