@@ -10,6 +10,93 @@ model: opus
1010
1111## Execution Sequence
1212
13+ ### Phase 0: Custom MCP Servers Configuration
14+
15+ ** Purpose:** Document any custom MCP servers the user has added beyond the standard ones (claude-context, tavily, Ref).
16+
17+ 1 . ** Ask user about custom MCP servers:**
18+
19+ Use AskUserQuestion:
20+ ```
21+ Question: "Do you have custom MCP servers to add to this project?"
22+ Options:
23+ - "Yes, let me add them now" - User will edit .mcp.json
24+ - "No, skip this step" - Proceed without custom servers
25+ ```
26+
27+ 2 . ** If user selects "Yes":**
28+
29+ Display instructions:
30+ ```
31+ Please add your custom MCP servers to .mcp.json now.
32+
33+ The file is located at: [project_dir]/.mcp.json
34+
35+ Example format:
36+ {
37+ "mcpServers": {
38+ "your-server-name": {
39+ "command": "npx",
40+ "args": ["-y", "your-mcp-package"]
41+ }
42+ }
43+ }
44+
45+ Note: claude-context, tavily, and Ref are already configured.
46+ ```
47+
48+ Then ask for confirmation:
49+ ```
50+ Question: "Have you finished adding your MCP servers?"
51+ Options:
52+ - "Yes, I've added them" - Proceed to create documentation
53+ - "Skip for now" - Continue without documenting custom servers
54+ ```
55+
56+ 3 . ** Read .mcp.json and identify custom servers:**
57+
58+ ``` python
59+ Read(file_path = " .mcp.json" )
60+ ```
61+
62+ Parse the JSON and filter out standard servers:
63+ - Exclude: ` claude-context ` , ` tavily ` , ` Ref `
64+ - Keep: All other servers as "custom"
65+
66+ 4 . ** If custom servers found, create ` .claude/rules/custom/mcp-tools.md ` :**
67+
68+ Generate content with this structure:
69+
70+ ``` markdown
71+ ## Custom MCP Servers
72+
73+ This project uses the following custom MCP servers in addition to the standard ones (claude-context, tavily, Ref).
74+
75+ ### [ Server Name]
76+
77+ ** Command:** ` [command from config] `
78+ ** Args:** ` [args from config] `
79+
80+ ** When to use:**
81+ - [ Brief description - ask user or infer from server name]
82+
83+ ** Example usage:**
84+ ```
85+ mcp__ [ server-name] __ [ tool_name] ( param="value" )
86+ ```
87+
88+ [Repeat for each custom server]
89+ ```
90+
91+ 5 . ** Write the custom MCP tools rule:**
92+ ``` python
93+ Write(file_path = " .claude/rules/custom/mcp-tools.md" , content = generated_content)
94+ ```
95+
96+ If no custom servers found, skip creating this file.
97+
98+ ---
99+
13100### Phase 1: Project Discovery
14101
151021 . ** Scan Directory Structure:**
@@ -147,11 +234,16 @@ Display a summary like:
147234├─────────────────────────────────────────────────────────────┤
148235│ Created: │
149236│ ✓ .claude/rules/custom/project.md │
237+ │ ✓ .claude/rules/custom/mcp-tools.md (if custom servers) │
150238│ │
151239│ Semantic Search: │
152240│ ✓ Claude Context index initialized │
153241│ ✓ Excluded: node_modules, __pycache__, .venv, cdk.out... │
154242│ ✓ Indexed X files │
243+ │ │
244+ │ MCP Servers: │
245+ │ ✓ Standard: claude-context, tavily, Ref │
246+ │ ✓ Custom: [list custom server names or "none"] │
155247├─────────────────────────────────────────────────────────────┤
156248│ Next Steps: │
157249│ 1. Run 'ccp' to reload with new rules in context │
0 commit comments