update "brand rules" to "rules"

This commit is contained in:
Joe Danziger
2025-05-22 14:26:08 -04:00
parent 0c64e9a739
commit c5c46e0cf8
9 changed files with 54 additions and 115 deletions

View File

@@ -1,6 +1,6 @@
/**
* tools/rules.js
* Tool to add or remove brand rules from a project (MCP server)
* Tool to add or remove rules from a project (MCP server)
*/
import { z } from 'zod';
@@ -19,16 +19,16 @@ export function registerRulesTool(server) {
server.addTool({
name: 'rules',
description:
'Add or remove brand rules and MCP config from the project (mirrors CLI rules add/remove).',
'Add or remove rules and MCP config from the project (mirrors CLI rules add/remove).',
parameters: z.object({
action: z
.enum(['add', 'remove'])
.describe('Whether to add or remove brand rules.'),
.describe('Whether to add or remove rules.'),
rules: z
.array(z.string())
.min(1)
.describe(
'List of brand rules to add or remove (e.g., ["roo", "windsurf"]).'
'List of rules to add or remove (e.g., ["roo", "windsurf"]).'
),
projectRoot: z
.string()