# MCP_RULES.md ## Purpose Define strict handling rules for the `mcp_cc_deepsite_generate_website_component` function so that user‑supplied prompts are collected verbatim and never altered before invocation. --- ## 1. Triggering the MCP Whenever the user indicates they want to "generate a component", "make me a site", "use the site generator", etc.: 1. **Do NOT immediately call the function.** 2. **Prompt the user**: > "Sure—please provide your _exact_ prompt for the site generator. I will not modify it in any way." 3. Wait for the user's reply. --- ## 2. Verbatim Preservation - Once the user replies with their prompt text, treat it as an **opaque string**. - **Do not** paraphrase, normalize, trim, sanitize, or otherwise mutate that text. - Forward it exactly as received into the MCP call. --- ## 3. Function Invocation Format After you have the user's exact prompt, invoke: ```json { "name": "mcp_cc_deepsite_generate_website_component", "arguments": { "prompt": "", "componentType": "", "framework": "" } } ``` - `prompt` must be the raw user text. - `componentType` (e.g. `header`, `footer`, `card`, `hero`) and `framework` (e.g. `react`, `vue`) can be inferred or re‑confirmed by a follow‑up question if necessary. --- ## 4. Example Flow **User** > "I want a landing page hero section with a video background." **Agent** > "Great! Please give me your _exact_ prompt for the site generator. I'll use it verbatim." **User** > "Hero section with full‑screen video background, centered headline 'Welcome to DeepSite', and a pink 'Get Started' button." **Agent** (function call) ```json { "name": "mcp_cc_deepsite_generate_website_component", "arguments": { "prompt": "Hero section with full‑screen video background, centered headline 'Welcome to DeepSite', and a pink 'Get Started' button.", "componentType": "hero", "framework": "react" } } ``` --- ## 5. Integration Embed these rules in your plugin's metadata (for example under `x-llm-intent-rules`), or include as part of your developer instructions so that any LLM driving the MCP: - Knows to _always_ ask before calling. - Guarantees zero alteration of the user's prompt. ```yaml # snippet from your plugin manifest x-llm-intent-rules: - intent: use_site_generator ask_for_prompt: true preserve_user_prompt: true invocation: function: mcp_cc_deepsite_generate_website_component ```