diff --git a/mcp-server/src/tools/initialize-project.js b/mcp-server/src/tools/initialize-project.js index 4fcfefc6..16764b91 100644 --- a/mcp-server/src/tools/initialize-project.js +++ b/mcp-server/src/tools/initialize-project.js @@ -40,7 +40,7 @@ export function registerInitializeProjectTool(server) { .array(z.string()) .optional() .describe( - 'List of rules to include at initialization (e.g., ["cursor", "roo"]). If omitted, defaults to ["cursor"].' + 'List of rules to include at initialization (e.g., ["cursor", "roo"]). If omitted, defaults to all available brand rules.' ) }), execute: withNormalizedProjectRoot(async (args, context) => { diff --git a/scripts/init.js b/scripts/init.js index a9862ca6..1348becc 100755 --- a/scripts/init.js +++ b/scripts/init.js @@ -537,8 +537,14 @@ function createProjectStructure( } } } else { - // fallback for safety - convertAllRulesToBrandRules(targetDir, BRAND_PROFILES['cursor']); + // fallback for safety - use all available brand rules + log('warn', 'selectedBrandRules is not an array, using all available brand rules as fallback'); + for (const rule of BRAND_NAMES) { + const profile = BRAND_PROFILES[rule]; + if (profile) { + convertAllRulesToBrandRules(targetDir, profile); + } + } } // Run npm install automatically