add rules to mcp initialize project

This commit is contained in:
Joe Danziger
2025-05-09 11:23:14 -04:00
parent c8904d750e
commit 746fa90212
2 changed files with 22 additions and 1 deletions

View File

@@ -35,7 +35,11 @@ export function registerInitializeProjectTool(server) {
.string()
.describe(
'The root directory for the project. ALWAYS SET THIS TO THE PROJECT ROOT DIRECTORY. IF NOT SET, THE TOOL WILL NOT WORK.'
)
),
rules: z
.array(z.string())
.optional()
.describe('List of brand rules to include at initialization (e.g., ["cursor", "roo"]). If omitted, defaults to ["cursor"].')
}),
execute: withNormalizedProjectRoot(async (args, context) => {
const { log } = context;