flockbay 0.10.49 → 0.10.52

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.
Files changed (74) hide show
  1. package/README.md +60 -60
  2. package/bin/flockbay-mcp.mjs +62 -62
  3. package/bin/flockbay.mjs +95 -95
  4. package/dist/{index-r3VTdgFI.cjs → index-IntvnrmZ.cjs} +71 -14
  5. package/dist/{index-D8AeVbvv.mjs → index-wkeSi0iC.mjs} +70 -13
  6. package/dist/index.cjs +2 -2
  7. package/dist/index.mjs +2 -2
  8. package/dist/lib.cjs +1 -1
  9. package/dist/lib.mjs +1 -1
  10. package/dist/{migratePlugin-CEvGPul8.mjs → migratePlugin-C71hAoc5.mjs} +12 -2
  11. package/dist/{migratePlugin-wFK-k3Wk.cjs → migratePlugin-D1XjjWFq.cjs} +12 -2
  12. package/dist/{runCodex-DuyuYqoB.cjs → runCodex-B7i_ICoQ.cjs} +34 -23
  13. package/dist/{runCodex-ZfUyhHF6.mjs → runCodex-BSx-hCu6.mjs} +34 -23
  14. package/dist/{runGemini-DBU1mMdp.mjs → runGemini-Dwyh7_WI.mjs} +2 -2
  15. package/dist/{runGemini-D7j5Y5TF.cjs → runGemini-gBKR3rdL.cjs} +2 -2
  16. package/dist/{types-DNr0xwSy.cjs → types-5z8UADAi.cjs} +224 -15
  17. package/dist/{types-BRJuZQj_.mjs → types-Bgzap7qR.mjs} +224 -16
  18. package/package.json +131 -131
  19. package/scripts/claude_local_launcher.cjs +72 -72
  20. package/scripts/claude_remote_launcher.cjs +15 -15
  21. package/scripts/claude_version_utils.cjs +445 -445
  22. package/scripts/ripgrep_launcher.cjs +32 -32
  23. package/scripts/run-with-root-env.mjs +37 -32
  24. package/scripts/session_hook_forwarder.cjs +49 -49
  25. package/scripts/test-codex-abort-history.mjs +77 -77
  26. package/scripts/unpack-tools.cjs +244 -244
  27. package/tools/licenses/difftastic-LICENSE +21 -21
  28. package/tools/licenses/ripgrep-LICENSE +3 -3
  29. package/tools/unreal-mcp/UPSTREAM_VERSION.md +8 -8
  30. package/tools/unreal-mcp/upstream/Docs/README.md +8 -8
  31. package/tools/unreal-mcp/upstream/Docs/Tools/README.md +6 -6
  32. package/tools/unreal-mcp/upstream/Docs/Tools/actor_tools.md +183 -183
  33. package/tools/unreal-mcp/upstream/Docs/Tools/blueprint_tools.md +268 -268
  34. package/tools/unreal-mcp/upstream/Docs/Tools/editor_tools.md +104 -104
  35. package/tools/unreal-mcp/upstream/Docs/Tools/node_tools.md +274 -274
  36. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Config/FilterPlugin.ini +8 -8
  37. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/FlockbayMCP.uplugin +36 -36
  38. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/FlockbayMCP.Build.cs +82 -82
  39. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/Commands/UnrealMCPBlueprintCommands.cpp +1364 -1364
  40. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/Commands/UnrealMCPBlueprintNodeCommands.cpp +1310 -1310
  41. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/Commands/UnrealMCPCommandSchema.cpp +756 -756
  42. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/Commands/UnrealMCPCommonUtils.cpp +1177 -1177
  43. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/Commands/UnrealMCPEditorCommands.cpp +2618 -2618
  44. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/Commands/UnrealMCPProjectCommands.cpp +71 -71
  45. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/Commands/UnrealMCPUMGCommands.cpp +543 -543
  46. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/MCPServerRunnable.cpp +372 -372
  47. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/UnrealMCPBridge.cpp +457 -457
  48. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Private/UnrealMCPModule.cpp +21 -21
  49. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/Commands/UnrealMCPBlueprintCommands.h +35 -35
  50. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/Commands/UnrealMCPBlueprintNodeCommands.h +30 -30
  51. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/Commands/UnrealMCPCommandSchema.h +41 -41
  52. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/Commands/UnrealMCPCommonUtils.h +59 -59
  53. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/Commands/UnrealMCPEditorCommands.h +61 -61
  54. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/Commands/UnrealMCPProjectCommands.h +20 -20
  55. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/Commands/UnrealMCPUMGCommands.h +82 -82
  56. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/MCPServerRunnable.h +33 -33
  57. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/UnrealMCPBridge.h +64 -64
  58. package/tools/unreal-mcp/upstream/MCPGameProject/Plugins/FlockbayMCP/Source/FlockbayMCP/Public/UnrealMCPModule.h +22 -22
  59. package/tools/unreal-mcp/upstream/Python/README.md +39 -39
  60. package/tools/unreal-mcp/upstream/Python/pyproject.toml +22 -22
  61. package/tools/unreal-mcp/upstream/Python/scripts/actors/test_cube.py +202 -202
  62. package/tools/unreal-mcp/upstream/Python/scripts/blueprints/test_create_and_spawn_blueprints_with_different_components.py +496 -496
  63. package/tools/unreal-mcp/upstream/Python/scripts/blueprints/test_create_and_spawn_cube_blueprint.py +193 -193
  64. package/tools/unreal-mcp/upstream/Python/scripts/node/test_component_reference.py +266 -266
  65. package/tools/unreal-mcp/upstream/Python/scripts/node/test_create_bird_blueprint_with_input_and_camera.py +617 -617
  66. package/tools/unreal-mcp/upstream/Python/scripts/node/test_input_mapping.py +365 -365
  67. package/tools/unreal-mcp/upstream/Python/scripts/node/test_physics_variables.py +389 -389
  68. package/tools/unreal-mcp/upstream/Python/tools/blueprint_tools.py +419 -419
  69. package/tools/unreal-mcp/upstream/Python/tools/editor_tools.py +369 -369
  70. package/tools/unreal-mcp/upstream/Python/tools/node_tools.py +429 -429
  71. package/tools/unreal-mcp/upstream/Python/tools/project_tools.py +63 -63
  72. package/tools/unreal-mcp/upstream/Python/tools/umg_tools.py +332 -332
  73. package/tools/unreal-mcp/upstream/Python/unreal_mcp_server.py +398 -398
  74. package/tools/unreal-mcp/upstream/Python/uv.lock +521 -521
@@ -1,244 +1,244 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * Unpacks platform-specific binaries from compressed archives
5
- * This script extracts the necessary tools for the current platform
6
- */
7
-
8
- const fs = require('fs');
9
- const path = require('path');
10
- const zlib = require('zlib');
11
- const tar = require('tar');
12
- const os = require('os');
13
- const https = require('https');
14
-
15
- /**
16
- * Get the platform-specific directory name
17
- */
18
- function getPlatformDir() {
19
- const platform = os.platform();
20
- const arch = os.arch();
21
-
22
- if (platform === 'darwin') {
23
- if (arch === 'arm64') return 'arm64-darwin';
24
- if (arch === 'x64') return 'x64-darwin';
25
- } else if (platform === 'linux') {
26
- if (arch === 'arm64') return 'arm64-linux';
27
- if (arch === 'x64') return 'x64-linux';
28
- } else if (platform === 'win32') {
29
- if (arch === 'x64') return 'x64-win32';
30
- if (arch === 'arm64') {
31
- throw new Error(
32
- [
33
- 'Unsupported platform: arm64-win32 (Windows ARM64).',
34
- '',
35
- 'Flockbay currently bundles tools only for:',
36
- '- darwin: arm64, x64',
37
- '- linux: arm64, x64',
38
- '- win32: x64',
39
- '',
40
- 'Fix: use Windows x64, or run the CLI on a supported platform.',
41
- ].join('\n'),
42
- );
43
- }
44
- }
45
-
46
- throw new Error(
47
- [
48
- `Unsupported platform: ${arch}-${platform}`,
49
- '',
50
- 'Supported:',
51
- '- darwin: arm64, x64',
52
- '- linux: arm64, x64',
53
- '- win32: x64',
54
- ].join('\n'),
55
- );
56
- }
57
-
58
- /**
59
- * Get the root tools directory
60
- */
61
- function getToolsDir() {
62
- // Handle both direct execution and require() calls
63
- const scriptDir = __dirname;
64
- return path.resolve(scriptDir, '..', 'tools');
65
- }
66
-
67
- function getToolsBaseUrl() {
68
- // Allow override for development/testing or alternative mirrors.
69
- // Default points at our public Cloudflare Worker path that serves R2 objects.
70
- return (process.env.FLOCKBAY_TOOLS_BASE_URL || 'https://api.flockbay.com/bootstrap/tools').replace(/\/+$/, '');
71
- }
72
-
73
- function downloadFile(url, destPath, redirectCount = 0) {
74
- return new Promise((resolve, reject) => {
75
- if (redirectCount > 5) {
76
- reject(new Error(`Too many redirects while downloading: ${url}`));
77
- return;
78
- }
79
-
80
- const req = https.get(url, (res) => {
81
- const statusCode = res.statusCode || 0;
82
-
83
- if (statusCode >= 300 && statusCode < 400 && res.headers.location) {
84
- const nextUrl = new URL(res.headers.location, url).toString();
85
- res.resume();
86
- downloadFile(nextUrl, destPath, redirectCount + 1).then(resolve).catch(reject);
87
- return;
88
- }
89
-
90
- if (statusCode !== 200) {
91
- res.resume();
92
- reject(new Error(`Download failed (${statusCode}) for ${url}`));
93
- return;
94
- }
95
-
96
- const tmpPath = `${destPath}.tmp`;
97
- const out = fs.createWriteStream(tmpPath);
98
- res.pipe(out);
99
- out.on('finish', () => {
100
- out.close(() => {
101
- fs.renameSync(tmpPath, destPath);
102
- resolve();
103
- });
104
- });
105
- out.on('error', (err) => {
106
- try { fs.unlinkSync(tmpPath); } catch {}
107
- reject(err);
108
- });
109
- });
110
-
111
- req.on('error', reject);
112
- });
113
- }
114
-
115
- /**
116
- * Check if tools are already unpacked for current platform
117
- */
118
- function areToolsUnpacked(toolsDir) {
119
- const unpackedPath = path.join(toolsDir, 'unpacked');
120
-
121
- if (!fs.existsSync(unpackedPath)) {
122
- return false;
123
- }
124
-
125
- // Check for expected binaries
126
- const isWin = os.platform() === 'win32';
127
- const difftBinary = isWin ? 'difft.exe' : 'difft';
128
- const rgBinary = isWin ? 'rg.exe' : 'rg';
129
-
130
- const expectedFiles = [
131
- path.join(unpackedPath, difftBinary),
132
- path.join(unpackedPath, rgBinary)
133
- ];
134
-
135
- return expectedFiles.every(file => fs.existsSync(file));
136
- }
137
-
138
- /**
139
- * Unpack a tar.gz archive to a destination directory
140
- */
141
- async function unpackArchive(archivePath, destDir) {
142
- return new Promise((resolve, reject) => {
143
- // Ensure destination directory exists
144
- if (!fs.existsSync(destDir)) {
145
- fs.mkdirSync(destDir, { recursive: true });
146
- }
147
-
148
- // Create read stream and extract
149
- fs.createReadStream(archivePath)
150
- .pipe(zlib.createGunzip())
151
- .pipe(tar.extract({
152
- cwd: destDir,
153
- preserveMode: true,
154
- preserveOwner: false
155
- }))
156
- .on('finish', () => {
157
- // Set executable permissions for Unix systems
158
- if (os.platform() !== 'win32') {
159
- const files = fs.readdirSync(destDir);
160
- files.forEach(file => {
161
- const filePath = path.join(destDir, file);
162
- const stats = fs.statSync(filePath);
163
- if (stats.isFile() && !file.endsWith('.node')) {
164
- // Make binary files executable
165
- fs.chmodSync(filePath, 0o755);
166
- }
167
- });
168
- }
169
- resolve();
170
- })
171
- .on('error', reject);
172
- });
173
- }
174
-
175
- /**
176
- * Main unpacking function
177
- */
178
- async function unpackTools() {
179
- try {
180
- const platformDir = getPlatformDir();
181
- const toolsDir = getToolsDir();
182
- const archivesDir = path.join(toolsDir, 'archives');
183
- const unpackedPath = path.join(toolsDir, 'unpacked');
184
- const baseUrl = getToolsBaseUrl();
185
-
186
- // Check if already unpacked
187
- if (areToolsUnpacked(toolsDir)) {
188
- console.log(`Tools already unpacked for ${platformDir}`);
189
- return { success: true, alreadyUnpacked: true };
190
- }
191
-
192
- console.log(`Unpacking tools for ${platformDir}...`);
193
-
194
- // Create unpacked directory
195
- if (!fs.existsSync(unpackedPath)) {
196
- fs.mkdirSync(unpackedPath, { recursive: true });
197
- }
198
-
199
- // Ensure archives directory exists (archives are downloaded on-demand in npm installs)
200
- if (!fs.existsSync(archivesDir)) {
201
- fs.mkdirSync(archivesDir, { recursive: true });
202
- }
203
-
204
- // Unpack difftastic
205
- const difftasticArchive = path.join(archivesDir, `difftastic-${platformDir}.tar.gz`);
206
- if (!fs.existsSync(difftasticArchive)) {
207
- const url = `${baseUrl}/difftastic-${platformDir}.tar.gz`;
208
- console.log(`Downloading difftastic archive: ${url}`);
209
- await downloadFile(url, difftasticArchive);
210
- }
211
- await unpackArchive(difftasticArchive, unpackedPath);
212
-
213
- // Unpack ripgrep
214
- const ripgrepArchive = path.join(archivesDir, `ripgrep-${platformDir}.tar.gz`);
215
- if (!fs.existsSync(ripgrepArchive)) {
216
- const url = `${baseUrl}/ripgrep-${platformDir}.tar.gz`;
217
- console.log(`Downloading ripgrep archive: ${url}`);
218
- await downloadFile(url, ripgrepArchive);
219
- }
220
- await unpackArchive(ripgrepArchive, unpackedPath);
221
-
222
- console.log(`Tools unpacked successfully to ${unpackedPath}`);
223
- return { success: true, alreadyUnpacked: false };
224
-
225
- } catch (error) {
226
- console.error('Failed to unpack tools:', error.message);
227
- throw error;
228
- }
229
- }
230
-
231
- // Export for use as module
232
- module.exports = { unpackTools, getPlatformDir, getToolsDir };
233
-
234
- // Run if executed directly
235
- if (require.main === module) {
236
- unpackTools()
237
- .then(result => {
238
- process.exit(0);
239
- })
240
- .catch(error => {
241
- console.error('Error:', error);
242
- process.exit(1);
243
- });
244
- }
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Unpacks platform-specific binaries from compressed archives
5
+ * This script extracts the necessary tools for the current platform
6
+ */
7
+
8
+ const fs = require('fs');
9
+ const path = require('path');
10
+ const zlib = require('zlib');
11
+ const tar = require('tar');
12
+ const os = require('os');
13
+ const https = require('https');
14
+
15
+ /**
16
+ * Get the platform-specific directory name
17
+ */
18
+ function getPlatformDir() {
19
+ const platform = os.platform();
20
+ const arch = os.arch();
21
+
22
+ if (platform === 'darwin') {
23
+ if (arch === 'arm64') return 'arm64-darwin';
24
+ if (arch === 'x64') return 'x64-darwin';
25
+ } else if (platform === 'linux') {
26
+ if (arch === 'arm64') return 'arm64-linux';
27
+ if (arch === 'x64') return 'x64-linux';
28
+ } else if (platform === 'win32') {
29
+ if (arch === 'x64') return 'x64-win32';
30
+ if (arch === 'arm64') {
31
+ throw new Error(
32
+ [
33
+ 'Unsupported platform: arm64-win32 (Windows ARM64).',
34
+ '',
35
+ 'Flockbay currently bundles tools only for:',
36
+ '- darwin: arm64, x64',
37
+ '- linux: arm64, x64',
38
+ '- win32: x64',
39
+ '',
40
+ 'Fix: use Windows x64, or run the CLI on a supported platform.',
41
+ ].join('\n'),
42
+ );
43
+ }
44
+ }
45
+
46
+ throw new Error(
47
+ [
48
+ `Unsupported platform: ${arch}-${platform}`,
49
+ '',
50
+ 'Supported:',
51
+ '- darwin: arm64, x64',
52
+ '- linux: arm64, x64',
53
+ '- win32: x64',
54
+ ].join('\n'),
55
+ );
56
+ }
57
+
58
+ /**
59
+ * Get the root tools directory
60
+ */
61
+ function getToolsDir() {
62
+ // Handle both direct execution and require() calls
63
+ const scriptDir = __dirname;
64
+ return path.resolve(scriptDir, '..', 'tools');
65
+ }
66
+
67
+ function getToolsBaseUrl() {
68
+ // Allow override for development/testing or alternative mirrors.
69
+ // Default points at our public Cloudflare Worker path that serves R2 objects.
70
+ return (process.env.FLOCKBAY_TOOLS_BASE_URL || 'https://api.flockbay.com/bootstrap/tools').replace(/\/+$/, '');
71
+ }
72
+
73
+ function downloadFile(url, destPath, redirectCount = 0) {
74
+ return new Promise((resolve, reject) => {
75
+ if (redirectCount > 5) {
76
+ reject(new Error(`Too many redirects while downloading: ${url}`));
77
+ return;
78
+ }
79
+
80
+ const req = https.get(url, (res) => {
81
+ const statusCode = res.statusCode || 0;
82
+
83
+ if (statusCode >= 300 && statusCode < 400 && res.headers.location) {
84
+ const nextUrl = new URL(res.headers.location, url).toString();
85
+ res.resume();
86
+ downloadFile(nextUrl, destPath, redirectCount + 1).then(resolve).catch(reject);
87
+ return;
88
+ }
89
+
90
+ if (statusCode !== 200) {
91
+ res.resume();
92
+ reject(new Error(`Download failed (${statusCode}) for ${url}`));
93
+ return;
94
+ }
95
+
96
+ const tmpPath = `${destPath}.tmp`;
97
+ const out = fs.createWriteStream(tmpPath);
98
+ res.pipe(out);
99
+ out.on('finish', () => {
100
+ out.close(() => {
101
+ fs.renameSync(tmpPath, destPath);
102
+ resolve();
103
+ });
104
+ });
105
+ out.on('error', (err) => {
106
+ try { fs.unlinkSync(tmpPath); } catch {}
107
+ reject(err);
108
+ });
109
+ });
110
+
111
+ req.on('error', reject);
112
+ });
113
+ }
114
+
115
+ /**
116
+ * Check if tools are already unpacked for current platform
117
+ */
118
+ function areToolsUnpacked(toolsDir) {
119
+ const unpackedPath = path.join(toolsDir, 'unpacked');
120
+
121
+ if (!fs.existsSync(unpackedPath)) {
122
+ return false;
123
+ }
124
+
125
+ // Check for expected binaries
126
+ const isWin = os.platform() === 'win32';
127
+ const difftBinary = isWin ? 'difft.exe' : 'difft';
128
+ const rgBinary = isWin ? 'rg.exe' : 'rg';
129
+
130
+ const expectedFiles = [
131
+ path.join(unpackedPath, difftBinary),
132
+ path.join(unpackedPath, rgBinary)
133
+ ];
134
+
135
+ return expectedFiles.every(file => fs.existsSync(file));
136
+ }
137
+
138
+ /**
139
+ * Unpack a tar.gz archive to a destination directory
140
+ */
141
+ async function unpackArchive(archivePath, destDir) {
142
+ return new Promise((resolve, reject) => {
143
+ // Ensure destination directory exists
144
+ if (!fs.existsSync(destDir)) {
145
+ fs.mkdirSync(destDir, { recursive: true });
146
+ }
147
+
148
+ // Create read stream and extract
149
+ fs.createReadStream(archivePath)
150
+ .pipe(zlib.createGunzip())
151
+ .pipe(tar.extract({
152
+ cwd: destDir,
153
+ preserveMode: true,
154
+ preserveOwner: false
155
+ }))
156
+ .on('finish', () => {
157
+ // Set executable permissions for Unix systems
158
+ if (os.platform() !== 'win32') {
159
+ const files = fs.readdirSync(destDir);
160
+ files.forEach(file => {
161
+ const filePath = path.join(destDir, file);
162
+ const stats = fs.statSync(filePath);
163
+ if (stats.isFile() && !file.endsWith('.node')) {
164
+ // Make binary files executable
165
+ fs.chmodSync(filePath, 0o755);
166
+ }
167
+ });
168
+ }
169
+ resolve();
170
+ })
171
+ .on('error', reject);
172
+ });
173
+ }
174
+
175
+ /**
176
+ * Main unpacking function
177
+ */
178
+ async function unpackTools() {
179
+ try {
180
+ const platformDir = getPlatformDir();
181
+ const toolsDir = getToolsDir();
182
+ const archivesDir = path.join(toolsDir, 'archives');
183
+ const unpackedPath = path.join(toolsDir, 'unpacked');
184
+ const baseUrl = getToolsBaseUrl();
185
+
186
+ // Check if already unpacked
187
+ if (areToolsUnpacked(toolsDir)) {
188
+ console.log(`Tools already unpacked for ${platformDir}`);
189
+ return { success: true, alreadyUnpacked: true };
190
+ }
191
+
192
+ console.log(`Unpacking tools for ${platformDir}...`);
193
+
194
+ // Create unpacked directory
195
+ if (!fs.existsSync(unpackedPath)) {
196
+ fs.mkdirSync(unpackedPath, { recursive: true });
197
+ }
198
+
199
+ // Ensure archives directory exists (archives are downloaded on-demand in npm installs)
200
+ if (!fs.existsSync(archivesDir)) {
201
+ fs.mkdirSync(archivesDir, { recursive: true });
202
+ }
203
+
204
+ // Unpack difftastic
205
+ const difftasticArchive = path.join(archivesDir, `difftastic-${platformDir}.tar.gz`);
206
+ if (!fs.existsSync(difftasticArchive)) {
207
+ const url = `${baseUrl}/difftastic-${platformDir}.tar.gz`;
208
+ console.log(`Downloading difftastic archive: ${url}`);
209
+ await downloadFile(url, difftasticArchive);
210
+ }
211
+ await unpackArchive(difftasticArchive, unpackedPath);
212
+
213
+ // Unpack ripgrep
214
+ const ripgrepArchive = path.join(archivesDir, `ripgrep-${platformDir}.tar.gz`);
215
+ if (!fs.existsSync(ripgrepArchive)) {
216
+ const url = `${baseUrl}/ripgrep-${platformDir}.tar.gz`;
217
+ console.log(`Downloading ripgrep archive: ${url}`);
218
+ await downloadFile(url, ripgrepArchive);
219
+ }
220
+ await unpackArchive(ripgrepArchive, unpackedPath);
221
+
222
+ console.log(`Tools unpacked successfully to ${unpackedPath}`);
223
+ return { success: true, alreadyUnpacked: false };
224
+
225
+ } catch (error) {
226
+ console.error('Failed to unpack tools:', error.message);
227
+ throw error;
228
+ }
229
+ }
230
+
231
+ // Export for use as module
232
+ module.exports = { unpackTools, getPlatformDir, getToolsDir };
233
+
234
+ // Run if executed directly
235
+ if (require.main === module) {
236
+ unpackTools()
237
+ .then(result => {
238
+ process.exit(0);
239
+ })
240
+ .catch(error => {
241
+ console.error('Error:', error);
242
+ process.exit(1);
243
+ });
244
+ }
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2021-2025 Wilfred Hughes
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2021-2025 Wilfred Hughes
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,3 +1,3 @@
1
- This project is dual-licensed under the Unlicense and MIT licenses.
2
-
3
- You may use this code under the terms of either license.
1
+ This project is dual-licensed under the Unlicense and MIT licenses.
2
+
3
+ You may use this code under the terms of either license.
@@ -1,8 +1,8 @@
1
- # Upstream Snapshot
2
-
3
- Repository: `https://github.com/chongdashu/unreal-mcp`
4
-
5
- Pinned commit: `4e5f00da50733190481311e254d16d137a84ef33`
6
-
7
- Snapshot location: `tools/unreal-mcp/upstream/`
8
-
1
+ # Upstream Snapshot
2
+
3
+ Repository: `https://github.com/chongdashu/unreal-mcp`
4
+
5
+ Pinned commit: `4e5f00da50733190481311e254d16d137a84ef33`
6
+
7
+ Snapshot location: `tools/unreal-mcp/upstream/`
8
+
@@ -1,8 +1,8 @@
1
- # Unreal Engine MCP Documentation
2
-
3
- Welcome to the documentation for the Unreal Engine Model Context Protocol (MCP) integration. This documentation will help you understand, set up, and use the MCP system with Unreal Engine.
4
-
5
- ## Contents
6
-
7
- - [Tools](Tools/README.md) - All the tools that are available.
8
-
1
+ # Unreal Engine MCP Documentation
2
+
3
+ Welcome to the documentation for the Unreal Engine Model Context Protocol (MCP) integration. This documentation will help you understand, set up, and use the MCP system with Unreal Engine.
4
+
5
+ ## Contents
6
+
7
+ - [Tools](Tools/README.md) - All the tools that are available.
8
+
@@ -1,7 +1,7 @@
1
- # Unreal MCP Tools
2
-
3
- This document is an index to all the tools supported.
4
-
5
- - [Actor Tools](actor_tools.md)
6
- - [Editor Tools](editor_tools.md)
1
+ # Unreal MCP Tools
2
+
3
+ This document is an index to all the tools supported.
4
+
5
+ - [Actor Tools](actor_tools.md)
6
+ - [Editor Tools](editor_tools.md)
7
7
  - [Blueprint Tools](blueprint_tools.md)