sandboxbox 3.0.39 → 3.0.41
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 +1 -1
- package/utils/sandbox.js +10 -32
package/package.json
CHANGED
package/utils/sandbox.js
CHANGED
|
@@ -213,8 +213,8 @@ node_modules/
|
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
if (VERBOSE_OUTPUT) {
|
|
216
|
-
console.log('✅ Using bundled SandboxBox settings with Git integration hooks');
|
|
217
|
-
// Show hook information
|
|
216
|
+
console.log('✅ Using bundled SandboxBox settings with Git integration hooks and MCP servers');
|
|
217
|
+
// Show hook and MCP information
|
|
218
218
|
const settings = JSON.parse(readFileSync(bundledSettingsPath, 'utf8'));
|
|
219
219
|
if (settings.hooks) {
|
|
220
220
|
console.log('📋 Bundled hooks configured:');
|
|
@@ -227,6 +227,13 @@ node_modules/
|
|
|
227
227
|
});
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
+
if (settings.mcpServers) {
|
|
231
|
+
console.log('🔧 MCP servers configured:');
|
|
232
|
+
Object.keys(settings.mcpServers).forEach(serverName => {
|
|
233
|
+
const server = settings.mcpServers[serverName];
|
|
234
|
+
console.log(` ${serverName}: ${server.command} ${server.args.join(' ')}`);
|
|
235
|
+
});
|
|
236
|
+
}
|
|
230
237
|
}
|
|
231
238
|
}
|
|
232
239
|
} else if (existsSync(hostClaudeDir)) {
|
|
@@ -346,36 +353,7 @@ node_modules/
|
|
|
346
353
|
}
|
|
347
354
|
}
|
|
348
355
|
|
|
349
|
-
//
|
|
350
|
-
const minimalSettings = {
|
|
351
|
-
"$schema": "https://schemas.modelcontextprotocol.io/0.1.0/mcp.json",
|
|
352
|
-
"mcpServers": {
|
|
353
|
-
"glootie": {
|
|
354
|
-
"command": "npx",
|
|
355
|
-
"args": ["-y", "mcp-glootie@latest"]
|
|
356
|
-
},
|
|
357
|
-
"playwright": {
|
|
358
|
-
"command": "npx",
|
|
359
|
-
"args": ["-y", "@playwright/mcp@latest"]
|
|
360
|
-
},
|
|
361
|
-
"vexify": {
|
|
362
|
-
"command": "npx",
|
|
363
|
-
"args": ["-y", "vexify@latest", "mcp"]
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
|
-
|
|
368
|
-
const sandboxSettingsPath = join(sandboxClaudeDir, 'settings.json');
|
|
369
|
-
writeFileSync(sandboxSettingsPath, JSON.stringify(minimalSettings, null, 2));
|
|
370
|
-
|
|
371
|
-
if (VERBOSE_OUTPUT) {
|
|
372
|
-
console.log('✅ Created minimal settings.json with enforced MCP servers');
|
|
373
|
-
console.log('📋 MCP servers configured:');
|
|
374
|
-
Object.keys(minimalSettings.mcpServers).forEach(serverName => {
|
|
375
|
-
const server = minimalSettings.mcpServers[serverName];
|
|
376
|
-
console.log(` ${serverName}: ${server.command} ${server.args.join(' ')}`);
|
|
377
|
-
});
|
|
378
|
-
}
|
|
356
|
+
// Bundled settings already contain both MCP servers and hooks - no need to create minimal settings
|
|
379
357
|
|
|
380
358
|
// Copy the glootie-cc plugin from host if it exists
|
|
381
359
|
const hostPluginDir = join(dirname(projectDir), 'plugin');
|