@weppy/roblox-mcp 0.1.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/.claude-plugin/marketplace.json +39 -0
- package/CHANGELOG.md +37 -0
- package/LICENSE +53 -0
- package/README.md +162 -0
- package/assets/screenshots/connection_guide.png +3 -0
- package/assets/screenshots/connection_popup.png +3 -0
- package/assets/screenshots/plugin_main.png +3 -0
- package/assets/screenshots/settings.png +3 -0
- package/dist/http-bridge.d.ts +65 -0
- package/dist/http-bridge.d.ts.map +1 -0
- package/dist/http-bridge.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/server.d.ts +13 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +1 -0
- package/dist/tools/asset-tools.d.ts +10 -0
- package/dist/tools/asset-tools.d.ts.map +1 -0
- package/dist/tools/asset-tools.js +1 -0
- package/dist/tools/bulk-tools.d.ts +11 -0
- package/dist/tools/bulk-tools.d.ts.map +1 -0
- package/dist/tools/bulk-tools.js +1 -0
- package/dist/tools/camera-tools.d.ts +5 -0
- package/dist/tools/camera-tools.d.ts.map +1 -0
- package/dist/tools/camera-tools.js +1 -0
- package/dist/tools/connection-tools.d.ts +5 -0
- package/dist/tools/connection-tools.d.ts.map +1 -0
- package/dist/tools/connection-tools.js +1 -0
- package/dist/tools/environment-tools.d.ts +8 -0
- package/dist/tools/environment-tools.d.ts.map +1 -0
- package/dist/tools/environment-tools.js +1 -0
- package/dist/tools/index.d.ts +21 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +1 -0
- package/dist/tools/instance-tools.d.ts +16 -0
- package/dist/tools/instance-tools.d.ts.map +1 -0
- package/dist/tools/instance-tools.js +1 -0
- package/dist/tools/log-tools.d.ts +6 -0
- package/dist/tools/log-tools.d.ts.map +1 -0
- package/dist/tools/log-tools.js +1 -0
- package/dist/tools/property-tools.d.ts +13 -0
- package/dist/tools/property-tools.d.ts.map +1 -0
- package/dist/tools/property-tools.js +1 -0
- package/dist/tools/raycast-tools.d.ts +11 -0
- package/dist/tools/raycast-tools.d.ts.map +1 -0
- package/dist/tools/raycast-tools.js +1 -0
- package/dist/tools/script-tools.d.ts +13 -0
- package/dist/tools/script-tools.d.ts.map +1 -0
- package/dist/tools/script-tools.js +1 -0
- package/dist/tools/search-tools.d.ts +11 -0
- package/dist/tools/search-tools.d.ts.map +1 -0
- package/dist/tools/search-tools.js +1 -0
- package/dist/tools/selection-tools.d.ts +16 -0
- package/dist/tools/selection-tools.d.ts.map +1 -0
- package/dist/tools/selection-tools.js +1 -0
- package/dist/tools/spatial-tools.d.ts +8 -0
- package/dist/tools/spatial-tools.d.ts.map +1 -0
- package/dist/tools/spatial-tools.js +1 -0
- package/dist/tools/state-tools.d.ts +12 -0
- package/dist/tools/state-tools.d.ts.map +1 -0
- package/dist/tools/state-tools.js +1 -0
- package/dist/tools/tag-tools.d.ts +8 -0
- package/dist/tools/tag-tools.d.ts.map +1 -0
- package/dist/tools/tag-tools.js +1 -0
- package/dist/tools/terrain-tools.d.ts +15 -0
- package/dist/tools/terrain-tools.d.ts.map +1 -0
- package/dist/tools/terrain-tools.js +1 -0
- package/dist/tools/visualization-tools.d.ts +9 -0
- package/dist/tools/visualization-tools.d.ts.map +1 -0
- package/dist/tools/visualization-tools.js +1 -0
- package/dist/types/index.d.ts +143 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/utils/logger.d.ts +16 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +1 -0
- package/dist/utils/quota-checker.d.ts +46 -0
- package/dist/utils/quota-checker.d.ts.map +1 -0
- package/dist/utils/quota-checker.js +1 -0
- package/dist/utils/type-converter.d.ts +33 -0
- package/dist/utils/type-converter.d.ts.map +1 -0
- package/dist/utils/type-converter.js +1 -0
- package/dist/utils/validation.d.ts +17 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +1 -0
- package/docs/ko/README.md +174 -0
- package/docs/ko/faq.md +188 -0
- package/docs/ko/installation/claude-code.md +110 -0
- package/docs/ko/installation/claude-desktop.md +145 -0
- package/docs/ko/installation/codex-cli.md +120 -0
- package/docs/ko/installation/cursor.md +122 -0
- package/docs/ko/installation/gemini-cli.md +136 -0
- package/docs/ko/installation/other-clients.md +180 -0
- package/docs/ko/installation/plugin.md +98 -0
- package/docs/ko/tools/overview.md +270 -0
- package/package.json +46 -0
- package/plugins/weppy-roblox-mcp/.claude-plugin/plugin.json +53 -0
- package/plugins/weppy-roblox-mcp/agents/roblox-engineer.md +65 -0
- package/plugins/weppy-roblox-mcp/dist/dist/http-bridge.d.ts +65 -0
- package/plugins/weppy-roblox-mcp/dist/dist/http-bridge.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/http-bridge.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/index.d.ts +3 -0
- package/plugins/weppy-roblox-mcp/dist/dist/index.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/index.js +2 -0
- package/plugins/weppy-roblox-mcp/dist/dist/server.d.ts +13 -0
- package/plugins/weppy-roblox-mcp/dist/dist/server.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/server.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/asset-tools.d.ts +10 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/asset-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/asset-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/bulk-tools.d.ts +11 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/bulk-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/bulk-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/camera-tools.d.ts +5 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/camera-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/camera-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/connection-tools.d.ts +5 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/connection-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/connection-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/environment-tools.d.ts +8 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/environment-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/environment-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/index.d.ts +21 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/index.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/index.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/instance-tools.d.ts +16 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/instance-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/instance-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/log-tools.d.ts +6 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/log-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/log-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/property-tools.d.ts +13 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/property-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/property-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/raycast-tools.d.ts +11 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/raycast-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/raycast-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/script-tools.d.ts +13 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/script-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/script-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/search-tools.d.ts +11 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/search-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/search-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/selection-tools.d.ts +16 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/selection-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/selection-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/spatial-tools.d.ts +8 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/spatial-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/spatial-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/state-tools.d.ts +12 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/state-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/state-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/tag-tools.d.ts +8 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/tag-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/tag-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/terrain-tools.d.ts +15 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/terrain-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/terrain-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/visualization-tools.d.ts +9 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/visualization-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/tools/visualization-tools.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/types/index.d.ts +143 -0
- package/plugins/weppy-roblox-mcp/dist/dist/types/index.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/types/index.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/utils/logger.d.ts +16 -0
- package/plugins/weppy-roblox-mcp/dist/dist/utils/logger.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/utils/logger.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/utils/quota-checker.d.ts +46 -0
- package/plugins/weppy-roblox-mcp/dist/dist/utils/quota-checker.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/utils/quota-checker.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/utils/type-converter.d.ts +33 -0
- package/plugins/weppy-roblox-mcp/dist/dist/utils/type-converter.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/utils/type-converter.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/utils/validation.d.ts +17 -0
- package/plugins/weppy-roblox-mcp/dist/dist/utils/validation.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/dist/utils/validation.js +1 -0
- package/plugins/weppy-roblox-mcp/dist/http-bridge.d.ts +45 -0
- package/plugins/weppy-roblox-mcp/dist/http-bridge.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/http-bridge.js +434 -0
- package/plugins/weppy-roblox-mcp/dist/http-bridge.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/index.d.ts +3 -0
- package/plugins/weppy-roblox-mcp/dist/index.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/index.js +59 -0
- package/plugins/weppy-roblox-mcp/dist/index.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/server.d.ts +13 -0
- package/plugins/weppy-roblox-mcp/dist/server.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/server.js +260 -0
- package/plugins/weppy-roblox-mcp/dist/server.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/asset-tools.d.ts +10 -0
- package/plugins/weppy-roblox-mcp/dist/tools/asset-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/asset-tools.js +127 -0
- package/plugins/weppy-roblox-mcp/dist/tools/asset-tools.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/bulk-tools.d.ts +11 -0
- package/plugins/weppy-roblox-mcp/dist/tools/bulk-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/bulk-tools.js +225 -0
- package/plugins/weppy-roblox-mcp/dist/tools/bulk-tools.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/environment-tools.d.ts +8 -0
- package/plugins/weppy-roblox-mcp/dist/tools/environment-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/environment-tools.js +93 -0
- package/plugins/weppy-roblox-mcp/dist/tools/environment-tools.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/index.d.ts +18 -0
- package/plugins/weppy-roblox-mcp/dist/tools/index.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/index.js +59 -0
- package/plugins/weppy-roblox-mcp/dist/tools/index.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/instance-tools.d.ts +15 -0
- package/plugins/weppy-roblox-mcp/dist/tools/instance-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/instance-tools.js +252 -0
- package/plugins/weppy-roblox-mcp/dist/tools/instance-tools.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/log-tools.d.ts +6 -0
- package/plugins/weppy-roblox-mcp/dist/tools/log-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/log-tools.js +53 -0
- package/plugins/weppy-roblox-mcp/dist/tools/log-tools.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/property-tools.d.ts +13 -0
- package/plugins/weppy-roblox-mcp/dist/tools/property-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/property-tools.js +213 -0
- package/plugins/weppy-roblox-mcp/dist/tools/property-tools.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/raycast-tools.d.ts +11 -0
- package/plugins/weppy-roblox-mcp/dist/tools/raycast-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/raycast-tools.js +420 -0
- package/plugins/weppy-roblox-mcp/dist/tools/raycast-tools.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/script-tools.d.ts +13 -0
- package/plugins/weppy-roblox-mcp/dist/tools/script-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/script-tools.js +229 -0
- package/plugins/weppy-roblox-mcp/dist/tools/script-tools.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/search-tools.d.ts +11 -0
- package/plugins/weppy-roblox-mcp/dist/tools/search-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/search-tools.js +196 -0
- package/plugins/weppy-roblox-mcp/dist/tools/search-tools.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/selection-tools.d.ts +16 -0
- package/plugins/weppy-roblox-mcp/dist/tools/selection-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/selection-tools.js +185 -0
- package/plugins/weppy-roblox-mcp/dist/tools/selection-tools.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/spatial-tools.d.ts +8 -0
- package/plugins/weppy-roblox-mcp/dist/tools/spatial-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/spatial-tools.js +155 -0
- package/plugins/weppy-roblox-mcp/dist/tools/spatial-tools.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/state-tools.d.ts +153 -0
- package/plugins/weppy-roblox-mcp/dist/tools/state-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/state-tools.js +481 -0
- package/plugins/weppy-roblox-mcp/dist/tools/state-tools.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/tag-tools.d.ts +8 -0
- package/plugins/weppy-roblox-mcp/dist/tools/tag-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/tag-tools.js +99 -0
- package/plugins/weppy-roblox-mcp/dist/tools/tag-tools.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/terrain-tools.d.ts +15 -0
- package/plugins/weppy-roblox-mcp/dist/tools/terrain-tools.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/tools/terrain-tools.js +549 -0
- package/plugins/weppy-roblox-mcp/dist/tools/terrain-tools.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/types/index.d.ts +111 -0
- package/plugins/weppy-roblox-mcp/dist/types/index.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/types/index.js +8 -0
- package/plugins/weppy-roblox-mcp/dist/types/index.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/utils/logger.d.ts +16 -0
- package/plugins/weppy-roblox-mcp/dist/utils/logger.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/utils/logger.js +87 -0
- package/plugins/weppy-roblox-mcp/dist/utils/logger.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/utils/type-converter.d.ts +33 -0
- package/plugins/weppy-roblox-mcp/dist/utils/type-converter.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/utils/type-converter.js +203 -0
- package/plugins/weppy-roblox-mcp/dist/utils/type-converter.js.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/utils/validation.d.ts +17 -0
- package/plugins/weppy-roblox-mcp/dist/utils/validation.d.ts.map +1 -0
- package/plugins/weppy-roblox-mcp/dist/utils/validation.js +26 -0
- package/plugins/weppy-roblox-mcp/dist/utils/validation.js.map +1 -0
- package/plugins/weppy-roblox-mcp/package.json +43 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-game-dev/SKILL.md +548 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-mcp-guide/SKILL.md +680 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-mcp-guide/scripts/check-mcp.sh +86 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-planner/SKILL.md +588 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-planner/scripts/verify-plan.sh +134 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-sync/SKILL.md +389 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-sync/scripts/post-verify.sh +160 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-sync/scripts/pre-check.sh +304 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-sync/scripts/update-metadata.sh +27 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-task-tracker/SKILL.md +349 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-task-tracker/scripts/validate.sh +28 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-templates/SKILL.md +244 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-templates/assets/effects.json +118 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-templates/assets/items.json +169 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-templates/assets/maps/maps.json +763 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-templates/assets/maps/sources/decorations.json +137 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-templates/assets/maps/sources/standalone-maps.json +331 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-templates/assets/maps/sources/terrain-presets.json +272 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-templates/assets/monsters.json +132 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-templates/assets/npcs.json +50 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-templates/assets/weapons.json +140 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-templates/references/animations.json +40 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-templates/references/rpg-balance.json +236 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-templates/references/rpg.md +304 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-templates/references/terrain-generation.json +192 -0
- package/plugins/weppy-roblox-mcp/skills/roblox-templates/samples/SpawnConfig.luau +152 -0
- package/roblox-plugin/WeppyRobloxMCP-Free.rbxm +3 -0
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
import express from 'express';
|
|
2
|
+
import { randomUUID } from 'crypto';
|
|
3
|
+
import { createServer } from 'http';
|
|
4
|
+
import Logger from './utils/logger.js';
|
|
5
|
+
export class HTTPBridge {
|
|
6
|
+
app;
|
|
7
|
+
server = null;
|
|
8
|
+
config;
|
|
9
|
+
commandQueue = new Map();
|
|
10
|
+
pendingCommands = [];
|
|
11
|
+
sseClients = new Set();
|
|
12
|
+
startTime = Date.now();
|
|
13
|
+
requestCounts = new Map();
|
|
14
|
+
cachedSelection = null;
|
|
15
|
+
isClientMode = false;
|
|
16
|
+
baseUrl = '';
|
|
17
|
+
constructor(config) {
|
|
18
|
+
this.config = config;
|
|
19
|
+
this.app = express();
|
|
20
|
+
this.baseUrl = `http://${config.httpHost}:${config.httpPort}`;
|
|
21
|
+
this.setupMiddleware();
|
|
22
|
+
this.setupRoutes();
|
|
23
|
+
}
|
|
24
|
+
setupMiddleware() {
|
|
25
|
+
this.app.use(express.json());
|
|
26
|
+
this.app.use((_req, res, next) => {
|
|
27
|
+
res.setHeader('Access-Control-Allow-Origin', 'http://localhost:3002');
|
|
28
|
+
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS');
|
|
29
|
+
res.setHeader('Access-Control-Allow-Headers', 'Content-Type');
|
|
30
|
+
next();
|
|
31
|
+
});
|
|
32
|
+
this.app.use((req, res, next) => {
|
|
33
|
+
if (!this.checkRateLimit(req.ip || 'unknown')) {
|
|
34
|
+
res.status(429).json({
|
|
35
|
+
error: 'Rate limit exceeded',
|
|
36
|
+
limit: this.config.maxRequestsPerMinute,
|
|
37
|
+
});
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
next();
|
|
41
|
+
});
|
|
42
|
+
this.app.use((req, _res, next) => {
|
|
43
|
+
Logger.debug(`${req.method} ${req.path}`, { ip: req.ip });
|
|
44
|
+
next();
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
checkRateLimit(ip) {
|
|
48
|
+
const now = Date.now();
|
|
49
|
+
const oneMinuteAgo = now - 60000;
|
|
50
|
+
let timestamps = this.requestCounts.get(ip) || [];
|
|
51
|
+
timestamps = timestamps.filter((t) => t > oneMinuteAgo);
|
|
52
|
+
if (timestamps.length >= this.config.maxRequestsPerMinute) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
timestamps.push(now);
|
|
56
|
+
this.requestCounts.set(ip, timestamps);
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
setupRoutes() {
|
|
60
|
+
this.app.get('/events', (req, res) => this.handleSSEConnection(req, res));
|
|
61
|
+
this.app.get('/commands', (_req, res) => this.handleCommandsPoll(res));
|
|
62
|
+
this.app.post('/result', (req, res) => this.handleResult(req, res));
|
|
63
|
+
this.app.post('/selection-update', (req, res) => this.handleSelectionUpdate(req, res));
|
|
64
|
+
this.app.post('/execute', (req, res) => this.handleExecute(req, res));
|
|
65
|
+
this.app.get('/cached-selection', (req, res) => this.handleCachedSelectionRequest(req, res));
|
|
66
|
+
this.app.get('/status', (_req, res) => this.handleStatus(res));
|
|
67
|
+
this.app.options('*', (_req, res) => {
|
|
68
|
+
res.sendStatus(200);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
handleSSEConnection(_req, res) {
|
|
72
|
+
Logger.info('Plugin connected via SSE');
|
|
73
|
+
res.setHeader('Content-Type', 'text/event-stream');
|
|
74
|
+
res.setHeader('Cache-Control', 'no-cache');
|
|
75
|
+
res.setHeader('Connection', 'keep-alive');
|
|
76
|
+
this.sseClients.add(res);
|
|
77
|
+
this.sendSSEEvent(res, {
|
|
78
|
+
event: 'command',
|
|
79
|
+
id: randomUUID(),
|
|
80
|
+
data: {
|
|
81
|
+
action: 'connected',
|
|
82
|
+
requestId: randomUUID(),
|
|
83
|
+
params: {
|
|
84
|
+
serverVersion: '0.1.0',
|
|
85
|
+
timestamp: Date.now(),
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
const pingInterval = setInterval(() => {
|
|
90
|
+
this.sendSSEEvent(res, {
|
|
91
|
+
event: 'command',
|
|
92
|
+
id: randomUUID(),
|
|
93
|
+
data: {
|
|
94
|
+
action: 'keepalive',
|
|
95
|
+
requestId: randomUUID(),
|
|
96
|
+
params: { timestamp: Date.now() },
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
}, 30000);
|
|
100
|
+
res.on('close', () => {
|
|
101
|
+
Logger.info('Plugin disconnected from SSE');
|
|
102
|
+
clearInterval(pingInterval);
|
|
103
|
+
this.sseClients.delete(res);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
sendSSEEvent(res, event) {
|
|
107
|
+
const data = JSON.stringify(event.data);
|
|
108
|
+
res.write(`event: ${event.event}\n`);
|
|
109
|
+
res.write(`id: ${event.id}\n`);
|
|
110
|
+
res.write(`data: ${data}\n\n`);
|
|
111
|
+
}
|
|
112
|
+
handleCommandsPoll(res) {
|
|
113
|
+
const commands = [...this.pendingCommands];
|
|
114
|
+
this.pendingCommands = [];
|
|
115
|
+
Logger.debug('Commands poll', {
|
|
116
|
+
commandsReturned: commands.length,
|
|
117
|
+
});
|
|
118
|
+
res.json(commands);
|
|
119
|
+
}
|
|
120
|
+
broadcastCommand(command) {
|
|
121
|
+
Logger.debug('Broadcasting command', {
|
|
122
|
+
action: command.data.action,
|
|
123
|
+
requestId: command.data.requestId,
|
|
124
|
+
sseClients: this.sseClients.size,
|
|
125
|
+
});
|
|
126
|
+
this.pendingCommands.push(command);
|
|
127
|
+
for (const client of this.sseClients) {
|
|
128
|
+
this.sendSSEEvent(client, command);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
handleResult(req, res) {
|
|
132
|
+
const result = req.body;
|
|
133
|
+
Logger.debug('Received result from plugin', {
|
|
134
|
+
requestId: result.requestId,
|
|
135
|
+
success: result.success,
|
|
136
|
+
});
|
|
137
|
+
const command = this.commandQueue.get(result.requestId);
|
|
138
|
+
if (!command) {
|
|
139
|
+
Logger.warn('Received result for unknown request', {
|
|
140
|
+
requestId: result.requestId,
|
|
141
|
+
});
|
|
142
|
+
res.status(404).json({ error: 'Unknown request ID' });
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
clearTimeout(command.timeoutId);
|
|
146
|
+
if (result.success) {
|
|
147
|
+
command.resolve(result);
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
command.reject(new Error(result.error || 'Unknown error'));
|
|
151
|
+
}
|
|
152
|
+
this.commandQueue.delete(result.requestId);
|
|
153
|
+
res.json({ status: 'ok' });
|
|
154
|
+
}
|
|
155
|
+
handleSelectionUpdate(req, res) {
|
|
156
|
+
try {
|
|
157
|
+
const body = req.body;
|
|
158
|
+
if (!body || !Array.isArray(body.selection) || typeof body.count !== 'number') {
|
|
159
|
+
Logger.warn('Invalid selection update request', { body });
|
|
160
|
+
res.status(400).json({ error: 'Invalid request body' });
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
this.cachedSelection = {
|
|
164
|
+
selection: body.selection,
|
|
165
|
+
count: body.count,
|
|
166
|
+
timestamp: Date.now(),
|
|
167
|
+
};
|
|
168
|
+
Logger.debug('Selection cache updated', {
|
|
169
|
+
count: body.count,
|
|
170
|
+
timestamp: this.cachedSelection.timestamp,
|
|
171
|
+
});
|
|
172
|
+
res.json({
|
|
173
|
+
status: 'ok',
|
|
174
|
+
timestamp: this.cachedSelection.timestamp,
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
catch (error) {
|
|
178
|
+
Logger.error('Error handling selection update', error);
|
|
179
|
+
res.status(500).json({ error: 'Internal server error' });
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
async handleExecute(req, res) {
|
|
183
|
+
try {
|
|
184
|
+
const { action, requestId, params } = req.body;
|
|
185
|
+
if (!action) {
|
|
186
|
+
res.status(400).json({ error: 'Missing action' });
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
Logger.debug('Received execute request from client mode', {
|
|
190
|
+
action,
|
|
191
|
+
requestId,
|
|
192
|
+
});
|
|
193
|
+
const result = await this.executeCommandLocally(action, params, requestId);
|
|
194
|
+
res.json(result);
|
|
195
|
+
}
|
|
196
|
+
catch (error) {
|
|
197
|
+
Logger.error('Execute request failed', error);
|
|
198
|
+
res.status(500).json({
|
|
199
|
+
success: false,
|
|
200
|
+
error: error instanceof Error ? error.message : 'Unknown error',
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
async executeCommandLocally(action, params, requestId) {
|
|
205
|
+
Logger.debug('Executing command locally', { action, requestId });
|
|
206
|
+
const resultPromise = new Promise((resolve, reject) => {
|
|
207
|
+
const timeoutId = setTimeout(() => {
|
|
208
|
+
this.commandQueue.delete(requestId);
|
|
209
|
+
reject(new Error(`Command timeout after ${this.config.requestTimeout}ms: ${action}`));
|
|
210
|
+
}, this.config.requestTimeout);
|
|
211
|
+
const command = {
|
|
212
|
+
requestId,
|
|
213
|
+
action,
|
|
214
|
+
params,
|
|
215
|
+
timestamp: Date.now(),
|
|
216
|
+
resolve,
|
|
217
|
+
reject,
|
|
218
|
+
timeoutId,
|
|
219
|
+
};
|
|
220
|
+
this.commandQueue.set(requestId, command);
|
|
221
|
+
});
|
|
222
|
+
this.broadcastCommand({
|
|
223
|
+
event: 'command',
|
|
224
|
+
id: randomUUID(),
|
|
225
|
+
data: {
|
|
226
|
+
action,
|
|
227
|
+
requestId,
|
|
228
|
+
params,
|
|
229
|
+
},
|
|
230
|
+
});
|
|
231
|
+
return resultPromise;
|
|
232
|
+
}
|
|
233
|
+
handleCachedSelectionRequest(req, res) {
|
|
234
|
+
const maxAge = parseInt(req.query.maxAge) || 30000;
|
|
235
|
+
const cached = this.getCachedSelection(maxAge);
|
|
236
|
+
if (cached) {
|
|
237
|
+
res.json({
|
|
238
|
+
cached: true,
|
|
239
|
+
...cached,
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
res.json({
|
|
244
|
+
cached: false,
|
|
245
|
+
message: 'No cached selection available',
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
handleStatus(res) {
|
|
250
|
+
const status = {
|
|
251
|
+
status: 'online',
|
|
252
|
+
connectedClients: this.sseClients.size,
|
|
253
|
+
queuedCommands: this.commandQueue.size,
|
|
254
|
+
uptime: Date.now() - this.startTime,
|
|
255
|
+
version: '0.1.0',
|
|
256
|
+
isClientMode: this.isClientMode,
|
|
257
|
+
};
|
|
258
|
+
res.json(status);
|
|
259
|
+
}
|
|
260
|
+
getCachedSelection(maxAge = 30000) {
|
|
261
|
+
if (!this.cachedSelection) {
|
|
262
|
+
return null;
|
|
263
|
+
}
|
|
264
|
+
const age = Date.now() - this.cachedSelection.timestamp;
|
|
265
|
+
if (maxAge === 0 || age <= maxAge) {
|
|
266
|
+
return this.cachedSelection;
|
|
267
|
+
}
|
|
268
|
+
return null;
|
|
269
|
+
}
|
|
270
|
+
async executeCommandViaHttp(action, params) {
|
|
271
|
+
const requestId = randomUUID();
|
|
272
|
+
Logger.debug('Executing command via HTTP (client mode)', {
|
|
273
|
+
action,
|
|
274
|
+
requestId,
|
|
275
|
+
baseUrl: this.baseUrl,
|
|
276
|
+
});
|
|
277
|
+
try {
|
|
278
|
+
const response = await fetch(`${this.baseUrl}/execute`, {
|
|
279
|
+
method: 'POST',
|
|
280
|
+
headers: {
|
|
281
|
+
'Content-Type': 'application/json',
|
|
282
|
+
},
|
|
283
|
+
body: JSON.stringify({
|
|
284
|
+
action,
|
|
285
|
+
requestId,
|
|
286
|
+
params,
|
|
287
|
+
}),
|
|
288
|
+
});
|
|
289
|
+
if (!response.ok) {
|
|
290
|
+
const errorText = await response.text();
|
|
291
|
+
throw new Error(`HTTP ${response.status}: ${errorText}`);
|
|
292
|
+
}
|
|
293
|
+
const result = await response.json();
|
|
294
|
+
return result;
|
|
295
|
+
}
|
|
296
|
+
catch (error) {
|
|
297
|
+
Logger.error('HTTP execute command failed', error);
|
|
298
|
+
return {
|
|
299
|
+
requestId,
|
|
300
|
+
success: false,
|
|
301
|
+
error: error instanceof Error ? error.message : 'Unknown error',
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
async executeCommand(action, params) {
|
|
306
|
+
if (this.isClientMode) {
|
|
307
|
+
return this.executeCommandViaHttp(action, params);
|
|
308
|
+
}
|
|
309
|
+
const requestId = randomUUID();
|
|
310
|
+
Logger.debug('Executing command', { action, requestId, params });
|
|
311
|
+
const resultPromise = new Promise((resolve, reject) => {
|
|
312
|
+
const timeoutId = setTimeout(() => {
|
|
313
|
+
this.commandQueue.delete(requestId);
|
|
314
|
+
reject(new Error(`Command timeout after ${this.config.requestTimeout}ms: ${action}`));
|
|
315
|
+
}, this.config.requestTimeout);
|
|
316
|
+
const command = {
|
|
317
|
+
requestId,
|
|
318
|
+
action,
|
|
319
|
+
params,
|
|
320
|
+
timestamp: Date.now(),
|
|
321
|
+
resolve,
|
|
322
|
+
reject,
|
|
323
|
+
timeoutId,
|
|
324
|
+
};
|
|
325
|
+
this.commandQueue.set(requestId, command);
|
|
326
|
+
});
|
|
327
|
+
this.broadcastCommand({
|
|
328
|
+
event: 'command',
|
|
329
|
+
id: randomUUID(),
|
|
330
|
+
data: {
|
|
331
|
+
action,
|
|
332
|
+
requestId,
|
|
333
|
+
params,
|
|
334
|
+
},
|
|
335
|
+
});
|
|
336
|
+
return resultPromise;
|
|
337
|
+
}
|
|
338
|
+
async checkExistingServer() {
|
|
339
|
+
try {
|
|
340
|
+
const controller = new AbortController();
|
|
341
|
+
const timeoutId = setTimeout(() => controller.abort(), 2000);
|
|
342
|
+
const response = await fetch(`${this.baseUrl}/status`, {
|
|
343
|
+
signal: controller.signal,
|
|
344
|
+
});
|
|
345
|
+
clearTimeout(timeoutId);
|
|
346
|
+
if (response.ok) {
|
|
347
|
+
const status = await response.json();
|
|
348
|
+
Logger.info('Existing HTTP Bridge detected', {
|
|
349
|
+
status: status.status,
|
|
350
|
+
uptime: status.uptime,
|
|
351
|
+
version: status.version,
|
|
352
|
+
});
|
|
353
|
+
return true;
|
|
354
|
+
}
|
|
355
|
+
return false;
|
|
356
|
+
}
|
|
357
|
+
catch {
|
|
358
|
+
return false;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
async start() {
|
|
362
|
+
const existingServerAvailable = await this.checkExistingServer();
|
|
363
|
+
if (existingServerAvailable) {
|
|
364
|
+
this.isClientMode = true;
|
|
365
|
+
Logger.info('HTTP Bridge running in CLIENT MODE', {
|
|
366
|
+
baseUrl: this.baseUrl,
|
|
367
|
+
reason: 'Existing server detected on port',
|
|
368
|
+
});
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
return new Promise((resolve, reject) => {
|
|
372
|
+
this.server = createServer(this.app);
|
|
373
|
+
this.server.on('error', async (error) => {
|
|
374
|
+
if (error.code === 'EADDRINUSE') {
|
|
375
|
+
Logger.warn('Port in use, attempting client mode fallback', {
|
|
376
|
+
port: this.config.httpPort,
|
|
377
|
+
});
|
|
378
|
+
await new Promise(r => setTimeout(r, 500));
|
|
379
|
+
const canConnect = await this.checkExistingServer();
|
|
380
|
+
if (canConnect) {
|
|
381
|
+
this.isClientMode = true;
|
|
382
|
+
Logger.info('HTTP Bridge running in CLIENT MODE (fallback)', {
|
|
383
|
+
baseUrl: this.baseUrl,
|
|
384
|
+
});
|
|
385
|
+
resolve();
|
|
386
|
+
}
|
|
387
|
+
else {
|
|
388
|
+
reject(new Error(`Port ${this.config.httpPort} is in use but server is not responding`));
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
else {
|
|
392
|
+
reject(error);
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
this.server.listen(this.config.httpPort, this.config.httpHost, () => {
|
|
396
|
+
this.isClientMode = false;
|
|
397
|
+
Logger.info('HTTP Bridge started in SERVER MODE', {
|
|
398
|
+
host: this.config.httpHost,
|
|
399
|
+
port: this.config.httpPort,
|
|
400
|
+
});
|
|
401
|
+
resolve();
|
|
402
|
+
});
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
async stop() {
|
|
406
|
+
Logger.info('Stopping HTTP Bridge', { isClientMode: this.isClientMode });
|
|
407
|
+
if (this.isClientMode) {
|
|
408
|
+
Logger.info('Client mode - nothing to stop');
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
for (const client of this.sseClients) {
|
|
412
|
+
client.end();
|
|
413
|
+
}
|
|
414
|
+
this.sseClients.clear();
|
|
415
|
+
for (const [requestId, command] of this.commandQueue) {
|
|
416
|
+
clearTimeout(command.timeoutId);
|
|
417
|
+
command.reject(new Error('Server shutting down'));
|
|
418
|
+
this.commandQueue.delete(requestId);
|
|
419
|
+
}
|
|
420
|
+
if (this.server) {
|
|
421
|
+
await new Promise((resolve) => {
|
|
422
|
+
this.server.close(() => {
|
|
423
|
+
Logger.info('HTTP server closed');
|
|
424
|
+
resolve();
|
|
425
|
+
});
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
getIsClientMode() {
|
|
430
|
+
return this.isClientMode;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
export default HTTPBridge;
|
|
434
|
+
//# sourceMappingURL=http-bridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-bridge.js","sourceRoot":"","sources":["../src/http-bridge.ts"],"names":[],"mappings":"AAcA,OAAO,OAA8B,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,YAAY,EAAwB,MAAM,MAAM,CAAC;AAQ1D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,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YAAY,EAAE,CAAC;YACtB,MAAM,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;YAC7C,OAAO;QACT,CAAC;QAGD,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACrC,MAAM,CAAC,GAAG,EAAE,CAAC;QACf,CAAC;QACD,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QAGxB,KAAK,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACrD,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAChC,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC;YAClD,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACtC,CAAC;QAGD,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;gBAClC,IAAI,CAAC,MAAO,CAAC,KAAK,CAAC,GAAG,EAAE;oBACtB,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;oBAClC,OAAO,EAAE,CAAC;gBACZ,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAKM,eAAe;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;CACF;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import RobloxMCPServer from './server.js';
|
|
3
|
+
import Logger from './utils/logger.js';
|
|
4
|
+
import { LogLevel } from './types/index.js';
|
|
5
|
+
function parseConfig() {
|
|
6
|
+
const config = {
|
|
7
|
+
httpPort: parseInt(process.env.HTTP_PORT || '3002', 10),
|
|
8
|
+
httpHost: process.env.HTTP_HOST || '127.0.0.1',
|
|
9
|
+
logLevel: process.env.LOG_LEVEL || LogLevel.INFO,
|
|
10
|
+
requestTimeout: parseInt(process.env.REQUEST_TIMEOUT || '30000', 10),
|
|
11
|
+
maxRequestsPerMinute: parseInt(process.env.MAX_REQUESTS_PER_MINUTE || '450', 10),
|
|
12
|
+
};
|
|
13
|
+
Logger.setLevel(config.logLevel);
|
|
14
|
+
return config;
|
|
15
|
+
}
|
|
16
|
+
async function main() {
|
|
17
|
+
try {
|
|
18
|
+
const config = parseConfig();
|
|
19
|
+
Logger.info('Weppy Roblox MCP Server', {
|
|
20
|
+
version: '0.1.0',
|
|
21
|
+
config: {
|
|
22
|
+
httpHost: config.httpHost,
|
|
23
|
+
httpPort: config.httpPort,
|
|
24
|
+
logLevel: config.logLevel,
|
|
25
|
+
requestTimeout: config.requestTimeout,
|
|
26
|
+
maxRequestsPerMinute: config.maxRequestsPerMinute,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
const server = new RobloxMCPServer(config);
|
|
30
|
+
await server.start();
|
|
31
|
+
const shutdown = async (signal) => {
|
|
32
|
+
Logger.info(`Received ${signal}, shutting down gracefully`);
|
|
33
|
+
try {
|
|
34
|
+
await server.stop();
|
|
35
|
+
process.exit(0);
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
Logger.error('Error during shutdown', error);
|
|
39
|
+
process.exit(1);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
process.on('SIGINT', () => shutdown('SIGINT'));
|
|
43
|
+
process.on('SIGTERM', () => shutdown('SIGTERM'));
|
|
44
|
+
process.on('uncaughtException', (error) => {
|
|
45
|
+
Logger.error('Uncaught exception', error);
|
|
46
|
+
process.exit(1);
|
|
47
|
+
});
|
|
48
|
+
process.on('unhandledRejection', (reason) => {
|
|
49
|
+
Logger.error('Unhandled rejection', reason);
|
|
50
|
+
process.exit(1);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
Logger.error('Failed to start server', error);
|
|
55
|
+
process.exit(1);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
main();
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAUA,OAAO,eAAe,MAAM,aAAa,CAAC;AAC1C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAqB,MAAM,kBAAkB,CAAC;AAK/D,SAAS,WAAW;IAClB,MAAM,MAAM,GAAiB;QAC3B,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,MAAM,EAAE,EAAE,CAAC;QACvD,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,WAAW;QAC9C,QAAQ,EAAG,OAAO,CAAC,GAAG,CAAC,SAAsB,IAAI,QAAQ,CAAC,IAAI;QAC9D,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,OAAO,EAAE,EAAE,CAAC;QACpE,oBAAoB,EAAE,QAAQ,CAC5B,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,KAAK,EAC5C,EAAE,CACH;KACF,CAAC;IAGF,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAEjC,OAAO,MAAM,CAAC;AAChB,CAAC;AAKD,KAAK,UAAU,IAAI;IACjB,IAAI,CAAC;QAEH,MAAM,MAAM,GAAG,WAAW,EAAE,CAAC;QAE7B,MAAM,CAAC,IAAI,CAAC,yBAAyB,EAAE;YACrC,OAAO,EAAE,OAAO;YAChB,MAAM,EAAE;gBACN,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,Q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CAAC;QAClB,CAAC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,KAAK,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC;QAC9C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAGD,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ServerConfig } from './types/index.js';
|
|
2
|
+
export declare class RobloxMCPServer {
|
|
3
|
+
private server;
|
|
4
|
+
private httpBridge;
|
|
5
|
+
private config;
|
|
6
|
+
constructor(config: ServerConfig);
|
|
7
|
+
private setupHandlers;
|
|
8
|
+
private executeTool;
|
|
9
|
+
start(): Promise<void>;
|
|
10
|
+
stop(): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export default RobloxMCPServer;
|
|
13
|
+
//# sourceMappingURL=server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAiBrD,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,MAAM,CAAe;gBAEjB,MAAM,EAAE,YAAY;IAgChC,OAAO,CAAC,aAAa;YAsEP,WAAW;IAyPZ,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAmBtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAWnC;AAED,eAAe,eAAe,CAAC"}
|