@weppy/roblox-mcp 0.1.7 → 0.1.8
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.
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "Roblox MCP server and tools for AI-powered game development",
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.8"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "weppy-roblox-mcp",
|
|
14
|
-
"source": "
|
|
14
|
+
"source": "./plugins/weppy-roblox-mcp",
|
|
15
15
|
"description": "MCP server for Roblox Studio integration - 132 tools for AI-powered game development with specialized agents and skills",
|
|
16
|
-
"version": "0.1.
|
|
16
|
+
"version": "0.1.8",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "hope1026"
|
|
19
19
|
},
|
package/CHANGELOG.md
CHANGED
|
@@ -3,28 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
## [0.1.8] - 2026-02-08
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## [0.1.6] - 2026-02-07
|
|
12
|
-
|
|
13
|
-
### Other Changes
|
|
14
|
-
|
|
15
|
-
- refactor: improve stability
|
|
16
|
-
|
|
17
|
-
## [0.1.5] - 2026-02-07
|
|
18
|
-
|
|
19
|
-
### Other Changes
|
|
20
|
-
|
|
21
|
-
- update guide
|
|
8
|
+
### Fix
|
|
9
|
+
- improve stability
|
|
22
10
|
|
|
23
11
|
|
|
24
12
|
## [0.1.3] - 2026-02-07
|
|
25
13
|
|
|
26
14
|
### Features
|
|
27
|
-
|
|
28
15
|
- add tool history and statistics tracking system
|
|
29
16
|
- add version info display in plugin UI
|
|
30
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weppy/roblox-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "MCP (Model Context Protocol) server for Roblox Studio integration - enables AI coding agents to interact with Roblox Studio in real-time",
|
|
5
5
|
"main": "plugins/weppy-roblox-mcp/dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -145,7 +145,7 @@ Basic tier users cannot use Pro tools - they will receive a friendly message sug
|
|
|
145
145
|
Stack: ${e.stack}`;if(typeof e=="object")try{return`
|
|
146
146
|
`+JSON.stringify(e,null,2).replace(/\n/g,`
|
|
147
147
|
`)}catch{return`
|
|
148
|
-
[Circular or non-serializable object]`}return` ${String(e)}`}static log(e,r,n){if(!this.shouldLog(e))return;let i=this.getTimestamp(),a=up[e],o=this.formatData(n),s=`${up.gray}[${i}]${up.reset} ${a}[${e.toUpperCase()}]${up.reset} ${r}${o}`;console.error(s)}static debug(e,r){this.log("debug",e,r)}static info(e,r){this.log("info",e,r)}static warn(e,r){this.log("warn",e,r)}static error(e,r){this.log("error",e,r)}},S=ox;var RB=new Set(["ping","echo","get_info","get_usage_status","create_instance","delete_instance","clone_instance","move_instance","get_instance","get_instance_children","rename_instance","find_first_child","find_first_descendant","create_instance_with_properties","get_class_info","wait_for_child","pivot_to","create_script","get_script_source","set_script_source","read_script","update_script","delete_script","edit_script_lines","insert_script_lines","delete_script_lines","search_in_scripts","get_script_dependencies","get_property","set_property","get_properties","set_properties","get_all_properties","set_multiple_properties","set_calculated_property","set_relative_property","get_attribute","set_attribute","get_all_attributes","delete_attribute","find_by_name","search_by_name","search_by_class","get_selection","get_selection_context","get_selection_details","set_selection","clear_selection","add_to_selection","remove_from_selection","get_place_info","get_services","get_studio_settings","run_command","watch_selection","add_tag","remove_tag","get_tags","get_tagged","has_tag","get_camera_info","get_suggested_camera_view","focus_camera_path","focus_camera_position","get_output_logs","clear_output_logs","get_recent_errors"]),CB=60*1e3,lp=null;function pp(t){return RB.has(t)?"basic":"pro"}function zP(t){lp={...t,timestamp:Date.now()}}function DB(){return!lp||Date.now()-lp.timestamp>CB?null:lp}function TP(t){if(pp(t)==="basic")return{allowed:!0,tier:"basic"};let r=DB();if(!r)return{allowed:!0,tier:"pro"};if(r.tier==="pro")return{allowed:!0,tier:"pro"};if(r.remaining<=0){let n=Math.floor(r.resetIn/3600),i=Math.floor(r.resetIn%3600/60);return{allowed:!1,tier:"pro",remaining:0,error:`Pro tool quota exhausted (${r.used}/${r.limit}). Resets in ${n}h ${i}m. Use basic alternatives or upgrade to Pro.`}}return{allowed:!0,tier:"pro",remaining:r.remaining}}var At="0.1.
|
|
148
|
+
[Circular or non-serializable object]`}return` ${String(e)}`}static log(e,r,n){if(!this.shouldLog(e))return;let i=this.getTimestamp(),a=up[e],o=this.formatData(n),s=`${up.gray}[${i}]${up.reset} ${a}[${e.toUpperCase()}]${up.reset} ${r}${o}`;console.error(s)}static debug(e,r){this.log("debug",e,r)}static info(e,r){this.log("info",e,r)}static warn(e,r){this.log("warn",e,r)}static error(e,r){this.log("error",e,r)}},S=ox;var RB=new Set(["ping","echo","get_info","get_usage_status","create_instance","delete_instance","clone_instance","move_instance","get_instance","get_instance_children","rename_instance","find_first_child","find_first_descendant","create_instance_with_properties","get_class_info","wait_for_child","pivot_to","create_script","get_script_source","set_script_source","read_script","update_script","delete_script","edit_script_lines","insert_script_lines","delete_script_lines","search_in_scripts","get_script_dependencies","get_property","set_property","get_properties","set_properties","get_all_properties","set_multiple_properties","set_calculated_property","set_relative_property","get_attribute","set_attribute","get_all_attributes","delete_attribute","find_by_name","search_by_name","search_by_class","get_selection","get_selection_context","get_selection_details","set_selection","clear_selection","add_to_selection","remove_from_selection","get_place_info","get_services","get_studio_settings","run_command","watch_selection","add_tag","remove_tag","get_tags","get_tagged","has_tag","get_camera_info","get_suggested_camera_view","focus_camera_path","focus_camera_position","get_output_logs","clear_output_logs","get_recent_errors"]),CB=60*1e3,lp=null;function pp(t){return RB.has(t)?"basic":"pro"}function zP(t){lp={...t,timestamp:Date.now()}}function DB(){return!lp||Date.now()-lp.timestamp>CB?null:lp}function TP(t){if(pp(t)==="basic")return{allowed:!0,tier:"basic"};let r=DB();if(!r)return{allowed:!0,tier:"pro"};if(r.tier==="pro")return{allowed:!0,tier:"pro"};if(r.remaining<=0){let n=Math.floor(r.resetIn/3600),i=Math.floor(r.resetIn%3600/60);return{allowed:!1,tier:"pro",remaining:0,error:`Pro tool quota exhausted (${r.used}/${r.limit}). Resets in ${n}h ${i}m. Use basic alternatives or upgrade to Pro.`}}return{allowed:!0,tier:"pro",remaining:r.remaining}}var At="0.1.8";var lx=class{app;server=null;config;commandQueue=new Map;pendingCommands=new Map;globalPendingCommands=[];sseClients=new Set;startTime=Date.now();requestCounts=new Map;cachedSelection=null;isClientMode=!1;baseUrl="";instanceId=Rr();sessionId="";pluginClients=new Map;mcpInstances=new Map;totalCommandsProcessed=0;historyManager=null;constructor(e){this.config=e,this.app=(0,ux.default)(),this.baseUrl=`http://${e.httpHost}:${e.httpPort}`,this.sessionId=this.generateSessionId(),this.setupMiddleware(),this.setupRoutes()}generateSessionId(){let e=this.instanceId.replace(/-/g,"").substring(0,8).toUpperCase();return`${e.substring(0,4)}-${e.substring(4,8)}`}getSessionId(){return this.sessionId}setupMiddleware(){this.app.use(ux.default.json()),this.app.use((e,r,n)=>{r.setHeader("Access-Control-Allow-Origin","http://localhost:3002"),r.setHeader("Access-Control-Allow-Methods","GET, POST, OPTIONS"),r.setHeader("Access-Control-Allow-Headers","Content-Type"),n()}),this.app.use((e,r,n)=>{if(!this.checkRateLimit(e.ip||"unknown")){r.status(429).json({error:"Rate limit exceeded",limit:this.config.maxRequestsPerMinute});return}n()}),this.app.use((e,r,n)=>{S.debug(`${e.method} ${e.path}`,{ip:e.ip}),n()})}checkRateLimit(e){let r=Date.now(),n=r-6e4,i=this.requestCounts.get(e)||[];return i=i.filter(a=>a>n),i.length>=this.config.maxRequestsPerMinute?!1:(i.push(r),this.requestCounts.set(e,i),!0)}setupRoutes(){this.app.get("/events",(e,r)=>this.handleSSEConnection(e,r)),this.app.get("/commands",(e,r)=>this.handleCommandsPoll(e,r)),this.app.post("/result",(e,r)=>this.handleResult(e,r)),this.app.post("/selection-update",(e,r)=>this.handleSelectionUpdate(e,r)),this.app.post("/execute",(e,r)=>this.handleExecute(e,r)),this.app.get("/cached-selection",(e,r)=>this.handleCachedSelectionRequest(e,r)),this.app.post("/register-plugin",(e,r)=>this.handleRegisterPlugin(e,r)),this.app.post("/unregister-plugin",(e,r)=>this.handleUnregisterPlugin(e,r)),this.app.post("/register-mcp",(e,r)=>this.handleRegisterMCP(e,r)),this.app.post("/unregister-mcp",(e,r)=>this.handleUnregisterMCP(e,r)),this.app.get("/connection-info",(e,r)=>this.handleConnectionInfo(r)),this.app.post("/logs",(e,r)=>this.handleLogs(e,r)),this.app.post("/quota-status",(e,r)=>this.handleQuotaStatus(e,r)),this.app.get("/status",(e,r)=>this.handleStatus(r)),this.app.post("/shutdown",(e,r)=>this.handleShutdown(e,r)),this.app.options("*",(e,r)=>{r.sendStatus(200)})}setHistoryManager(e){this.historyManager=e}handleSSEConnection(e,r){S.info("Plugin connected via SSE"),r.setHeader("Content-Type","text/event-stream"),r.setHeader("Cache-Control","no-cache"),r.setHeader("Connection","keep-alive"),this.sseClients.add(r),this.sendSSEEvent(r,{event:"command",id:Rr(),data:{action:"connected",requestId:Rr(),params:{serverVersion:At,timestamp:Date.now()}}});let n=setInterval(()=>{this.sendSSEEvent(r,{event:"command",id:Rr(),data:{action:"keepalive",requestId:Rr(),params:{timestamp:Date.now()}}})},3e4);r.on("close",()=>{S.info("Plugin disconnected from SSE"),clearInterval(n),this.sseClients.delete(r)})}sendSSEEvent(e,r){let n=JSON.stringify(r.data);e.write(`event: ${r.event}
|
|
149
149
|
`),e.write(`id: ${r.id}
|
|
150
150
|
`),e.write(`data: ${n}
|
|
151
151
|
|