cc_site_maker / MCP_RULES.md
postApocalebtic
Local Server Fix
1f0573c
|
Raw History Blame
2.54 kB

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:

{
  "name": "mcp_cc_deepsite_generate_website_component",
  "arguments": {
    "prompt": "<USER_PROMPT_VERBATIM>",
    "componentType": "<TYPE_FROM_USER_OR_FOLLOW‑UP>",
    "framework": "<FRAMEWORK_FROM_USER_OR_FOLLOW‑UP>"
  }
}
  • 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)

{
  "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.
# 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