ropilot 0.1.10 → 0.1.11

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 (2) hide show
  1. package/lib/setup.js +1 -41
  2. package/package.json +1 -1
package/lib/setup.js CHANGED
@@ -237,45 +237,6 @@ function installGlobally() {
237
237
  }
238
238
  }
239
239
 
240
- /**
241
- * Create .mcp.json for Claude Code compatibility
242
- */
243
- function createMcpConfig(useNpx = false) {
244
- const mcpConfig = {
245
- mcpServers: {
246
- ropilot: useNpx ? {
247
- command: "npx",
248
- args: ["ropilot", "serve"]
249
- } : {
250
- command: "ropilot",
251
- args: ["serve"]
252
- }
253
- }
254
- };
255
-
256
- const mcpPath = '.mcp.json';
257
-
258
- if (existsSync(mcpPath)) {
259
- // Merge with existing config
260
- try {
261
- const existing = JSON.parse(readFileSync(mcpPath, 'utf-8'));
262
- if (!existing.mcpServers?.ropilot) {
263
- existing.mcpServers = existing.mcpServers || {};
264
- existing.mcpServers.ropilot = mcpConfig.mcpServers.ropilot;
265
- writeFileSync(mcpPath, JSON.stringify(existing, null, 2));
266
- console.log(` Updated: ${mcpPath} (added ropilot server)`);
267
- } else {
268
- console.log(` Exists: ${mcpPath} (ropilot already configured)`);
269
- }
270
- } catch (err) {
271
- console.error(` Failed to update ${mcpPath}: ${err.message}`);
272
- }
273
- } else {
274
- writeFileSync(mcpPath, JSON.stringify(mcpConfig, null, 2));
275
- console.log(` Created: ${mcpPath}`);
276
- }
277
- }
278
-
279
240
  /**
280
241
  * Download prompts from edge server
281
242
  */
@@ -459,10 +420,9 @@ export async function init(providedApiKey = null) {
459
420
  const pkg = await downloadPrompts(apiKey);
460
421
  console.log('');
461
422
 
462
- // Set up project files
423
+ // Set up project files (includes .mcp.json from package)
463
424
  console.log('Setting up project files...');
464
425
  setupProjectPrompts(pkg);
465
- createMcpConfig(!globalInstallOk);
466
426
  console.log('');
467
427
 
468
428
  // Done!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ropilot",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "AI-powered Roblox development assistant - MCP CLI",
5
5
  "author": "whut",
6
6
  "license": "MIT",