File size: 2,539 Bytes
1f0573c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# 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": "<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)

```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
```