@chrrxs/robloxstudio-mcp-inspector 2.11.3 → 2.12.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrrxs/robloxstudio-mcp-inspector",
3
- "version": "2.11.3",
3
+ "version": "2.12.0",
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",
@@ -37,7 +37,7 @@
37
37
  "url": "https://github.com/chrrxs/robloxstudio-mcp/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@modelcontextprotocol/sdk": "^0.6.0",
40
+ "@modelcontextprotocol/sdk": "^1.27.1",
41
41
  "cors": "^2.8.5",
42
42
  "express": "^4.18.2",
43
43
  "node-fetch": "^3.3.2",
@@ -2827,7 +2827,9 @@ return {
2827
2827
  <string name="Name">MetadataHandlers</string>
2828
2828
  <string name="Source"><![CDATA[-- Compiled with roblox-ts v3.0.0
2829
2829
  local TS = require(script.Parent.Parent.Parent.include.RuntimeLib)
2830
- local CollectionService = TS.import(script, script.Parent.Parent.Parent, "node_modules", "@rbxts", "services").CollectionService
2830
+ local _services = TS.import(script, script.Parent.Parent.Parent, "node_modules", "@rbxts", "services")
2831
+ local CollectionService = _services.CollectionService
2832
+ local LogService = _services.LogService
2831
2833
  local Utils = TS.import(script, script.Parent.Parent, "Utils")
2832
2834
  local Recording = TS.import(script, script.Parent.Parent, "Recording")
2833
2835
  local ChangeHistoryService = game:GetService("ChangeHistoryService")
@@ -3314,7 +3316,26 @@ end)())`
3314
3316
  end)
3315
3317
  m:Destroy()
3316
3318
  if not okReq then
3317
- error(tostring(reqResult))
3319
+ local errMsg = tostring(reqResult)
3320
+ -- pcall(require, m) collapses parse/compile failures into the
3321
+ -- canned engine string below. Walk LogService backward for the
3322
+ -- real diagnostic, which was emitted to MessageOut just before.
3323
+ if errMsg == "Requested module experienced an error while loading" then
3324
+ -- The parser diagnostic is emitted to LogService on the next
3325
+ -- engine frame, not synchronously with pcall(require). task.wait(0)
3326
+ -- yields too early; 50ms is enough to let the frame complete and
3327
+ -- the message land in GetLogHistory.
3328
+ task.wait(0.05)
3329
+ local hist = LogService:GetLogHistory()
3330
+ for i = #hist - 1, 0, -1 do
3331
+ local e = hist[i + 1]
3332
+ if e.messageType == Enum.MessageType.MessageError and string.sub(e.message, 1, 31) == "Workspace.__MCPExecLuauPayload:" then
3333
+ errMsg = e.message
3334
+ break
3335
+ end
3336
+ end
3337
+ end
3338
+ error(errMsg)
3318
3339
  end
3319
3340
  return reqResult
3320
3341
  end
@@ -6215,7 +6236,7 @@ return {
6215
6236
  <Properties>
6216
6237
  <string name="Name">State</string>
6217
6238
  <string name="Source"><![CDATA[-- Compiled with roblox-ts v3.0.0
6218
- local CURRENT_VERSION = "2.11.3"
6239
+ local CURRENT_VERSION = "2.11.4"
6219
6240
  local MAX_CONNECTIONS = 5
6220
6241
  local BASE_PORT = 58741
6221
6242
  local activeTabIndex = 0