project-customization-mcp 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -285
- package/bin/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,49 +1,41 @@
|
|
|
1
1
|
# Project Customization MCP
|
|
2
2
|
|
|
3
|
-
An MCP (Model Context Protocol) server that automates project customization by analyzing your codebase and generating configuration files based on industry best practices.
|
|
3
|
+
An open-source MCP (Model Context Protocol) server that automates project customization by analyzing your codebase and generating AI-ready configuration files based on industry best practices. Perfect for teams and individual developers who want consistent, framework-aware project guidelines.
|
|
4
4
|
|
|
5
5
|
**Platform-agnostic**: Works with any IDE, editor, or AI tool that supports the Model Context Protocol (VS Code, JetBrains, Cursor, Claude, etc.)
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## What You Get
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
This tool automatically:
|
|
10
10
|
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
13
|
-
- **
|
|
14
|
-
- **
|
|
15
|
-
- **Gap detection**: Identifies missing customization files
|
|
11
|
+
- 🔍 **Analyzes your project** - Detects frameworks, languages, and project structure
|
|
12
|
+
- 📝 **Generates guidelines** - Creates `.github/copilot-instructions.md` for consistent development
|
|
13
|
+
- ✍️ **Updates documentation** - Enhances README with best practices
|
|
14
|
+
- 💡 **Provides recommendations** - Suggests improvements for your codebase
|
|
16
15
|
|
|
17
|
-
|
|
16
|
+
## 🎯 Tools Available
|
|
18
17
|
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
18
|
+
- 🔎 **`analyze_project`** - Scan your project and detect frameworks/languages
|
|
19
|
+
- 📋 **`generate_copilot_instructions`** - Create customization guidelines for your project
|
|
20
|
+
- 📄 **`update_readme`** - Generate or enhance README with standards
|
|
21
|
+
- 🚀 **`get_customization_recommendations`** - Get actionable improvement suggestions
|
|
23
22
|
|
|
24
|
-
|
|
23
|
+
## 📚 Resources Available
|
|
25
24
|
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
25
|
+
- 📦 **Project Metadata** - Your project type, frameworks, languages
|
|
26
|
+
- 📁 **Project Structure** - Directory organization and files
|
|
27
|
+
- 📖 **Current Guidelines** - Existing customization files
|
|
28
|
+
- 📝 **README** - Your current documentation
|
|
30
29
|
|
|
31
|
-
|
|
30
|
+
## 💬 Prompts Available
|
|
32
31
|
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
- **README** - Current documentation
|
|
32
|
+
- ⚡ **`analyze-and-customize`** - Full workflow (analyze → generate → update)
|
|
33
|
+
- ✨ **`generate-instructions-only`** - Create just the instruction file
|
|
34
|
+
- 🔄 **`review-and-improve`** - Review existing customizations
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
## 📦 Installation
|
|
39
37
|
|
|
40
|
-
|
|
41
|
-
- **generate-instructions-only** - Create just the instruction file
|
|
42
|
-
- **review-and-improve** - Review existing customizations
|
|
43
|
-
|
|
44
|
-
## Installation
|
|
45
|
-
|
|
46
|
-
### Option 1: Using npx (Recommended - No Installation Needed)
|
|
38
|
+
### ⚙️ Option 1: Using npx (Recommended - No Installation Needed)
|
|
47
39
|
|
|
48
40
|
```json
|
|
49
41
|
{
|
|
@@ -56,7 +48,7 @@ An MCP (Model Context Protocol) server that automates project customization by a
|
|
|
56
48
|
}
|
|
57
49
|
```
|
|
58
50
|
|
|
59
|
-
### Option 2: Global npm Installation
|
|
51
|
+
### 🌍 Option 2: Global npm Installation
|
|
60
52
|
|
|
61
53
|
```powershell
|
|
62
54
|
npm install -g project-customization-mcp
|
|
@@ -74,300 +66,72 @@ Then configure:
|
|
|
74
66
|
}
|
|
75
67
|
```
|
|
76
68
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
```powershell
|
|
80
|
-
npm install project-customization-mcp
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
Configure with relative path:
|
|
84
|
-
|
|
85
|
-
```json
|
|
86
|
-
{
|
|
87
|
-
"mcpServers": {
|
|
88
|
-
"project-customization": {
|
|
89
|
-
"command": "node",
|
|
90
|
-
"args": ["./node_modules/project-customization-mcp/build/index.js"]
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
## Configuration
|
|
97
|
-
|
|
98
|
-
### VS Code / Cursor / Other IDE
|
|
69
|
+
## 🚀 How to Use
|
|
99
70
|
|
|
100
|
-
1
|
|
101
|
-
- VS Code: `Ctrl+Shift+P` → "MCP: Open User Configuration"
|
|
102
|
-
- Or edit manually in settings
|
|
71
|
+
### 1️⃣ Configure in Your IDE
|
|
103
72
|
|
|
104
|
-
|
|
73
|
+
- **VS Code**: `Ctrl+Shift+P` → "MCP: Open User Configuration"
|
|
74
|
+
- **Cursor**: Settings → MCP Servers
|
|
75
|
+
- **Other IDEs**: Refer to your IDE's MCP documentation
|
|
105
76
|
|
|
106
|
-
|
|
77
|
+
Add one of the configurations above and restart your IDE.
|
|
107
78
|
|
|
108
|
-
###
|
|
79
|
+
### 2️⃣ Use in Chat
|
|
109
80
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
## Usage
|
|
113
|
-
|
|
114
|
-
### Quick Start: Free-form Chat
|
|
115
|
-
|
|
116
|
-
Open your IDE's chat and type:
|
|
81
|
+
Open your chat and type:
|
|
117
82
|
|
|
118
83
|
```
|
|
119
84
|
Analyze my project and set up customization based on best practices
|
|
120
85
|
```
|
|
121
86
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
1. ✅ Analyze your project structure
|
|
125
|
-
2. ✅ Detect frameworks and languages
|
|
126
|
-
3. ✅ Generate `.github/copilot-instructions.md` (if missing)
|
|
127
|
-
4. ✅ Update README with guidelines
|
|
128
|
-
5. ✅ Provide improvement recommendations
|
|
129
|
-
|
|
130
|
-
### Using Prompts (Slash Commands)
|
|
131
|
-
|
|
132
|
-
If your client supports prompt templates:
|
|
87
|
+
Or use specific prompts:
|
|
133
88
|
|
|
134
89
|
```
|
|
135
|
-
/
|
|
136
|
-
/
|
|
137
|
-
/
|
|
90
|
+
/analyze-and-customize
|
|
91
|
+
/generate-instructions-only
|
|
92
|
+
/review-and-improve
|
|
138
93
|
```
|
|
139
94
|
|
|
140
|
-
### Add Resources to
|
|
95
|
+
### 3. Add Resources to Chat
|
|
141
96
|
|
|
142
|
-
Add project context
|
|
97
|
+
Add project context:
|
|
143
98
|
|
|
144
|
-
- "Add Context"
|
|
145
|
-
- Select "MCP Resources"
|
|
99
|
+
- Select "Add Context" → "MCP Resources"
|
|
146
100
|
- Choose: Project Metadata, Project Structure, Guidelines, README
|
|
147
101
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
Ask your AI to use specific tools:
|
|
151
|
-
|
|
152
|
-
- "Use the analyze_project tool on my project"
|
|
153
|
-
- "Generate customization instructions for my React app"
|
|
154
|
-
- "Update my README with coding guidelines"
|
|
102
|
+
## 📋 What Gets Generated
|
|
155
103
|
|
|
156
|
-
|
|
104
|
+
The tool creates or updates:
|
|
157
105
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
analyze_project (scans structure, detects type/frameworks)
|
|
162
|
-
↓
|
|
163
|
-
Project Analysis (type, frameworks, languages, issues)
|
|
164
|
-
↓
|
|
165
|
-
generate_copilot_instructions (creates customization file)
|
|
166
|
-
↓
|
|
167
|
-
update_readme (adds guidelines and setup instructions)
|
|
168
|
-
↓
|
|
169
|
-
get_customization_recommendations (suggests improvements)
|
|
170
|
-
↓
|
|
171
|
-
Generated Files + Recommendations
|
|
172
|
-
```
|
|
106
|
+
- ✅ **`.github/copilot-instructions.md`** - Project-specific guidelines and standards
|
|
107
|
+
- ✅ **`README.md`** - Enhanced with setup and development guidelines
|
|
108
|
+
- ✅ **Recommendations** - Suggestions for framework-specific improvements
|
|
173
109
|
|
|
174
|
-
## Example
|
|
110
|
+
## 📊 Example Output
|
|
175
111
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
```
|
|
179
|
-
"Analyze my React TypeScript project and set up customization"
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
### Generated Files
|
|
183
|
-
|
|
184
|
-
**`.github/copilot-instructions.md`:**
|
|
112
|
+
For a React TypeScript project, you get:
|
|
185
113
|
|
|
186
114
|
```markdown
|
|
187
115
|
# Project Guidelines
|
|
188
116
|
|
|
189
|
-
## Overview
|
|
190
|
-
|
|
191
|
-
- **Type**: Node.js
|
|
192
|
-
- **Framework**: React
|
|
193
|
-
- **Language**: TypeScript
|
|
194
|
-
|
|
195
117
|
## Code Style
|
|
196
118
|
|
|
197
119
|
- Use functional components with hooks
|
|
198
120
|
- Maintain strict TypeScript (no `any`)
|
|
199
121
|
- ESLint + Prettier for formatting
|
|
200
|
-
- camelCase for variables/functions, PascalCase for components
|
|
201
122
|
|
|
202
|
-
## Structure
|
|
123
|
+
## Project Structure
|
|
203
124
|
|
|
204
125
|
- src/components - React components
|
|
205
126
|
- src/pages - Page components
|
|
206
127
|
- src/utils - Utilities
|
|
207
128
|
- src/hooks - Custom hooks
|
|
208
|
-
- src/types - TypeScript types
|
|
209
|
-
|
|
210
|
-
[... more guidelines ...]
|
|
211
129
|
```
|
|
212
130
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
- Project description
|
|
216
|
-
- Prerequisites and setup
|
|
217
|
-
- Installation commands
|
|
218
|
-
- Development guidelines
|
|
219
|
-
- Best practices for the framework
|
|
220
|
-
|
|
221
|
-
### Recommendations Provided
|
|
222
|
-
|
|
223
|
-
- "Enable strict TypeScript mode"
|
|
224
|
-
- "Add unit testing framework"
|
|
225
|
-
- "Configure git hooks for commits"
|
|
226
|
-
- "Set up CI/CD pipeline"
|
|
227
|
-
|
|
228
|
-
## Customization
|
|
229
|
-
|
|
230
|
-
The server comes with sensible defaults for common frameworks. To customize for your team:
|
|
231
|
-
|
|
232
|
-
1. Fork/clone the repository
|
|
233
|
-
2. Edit `src/utils/bestPractices.ts`:
|
|
234
|
-
- Modify `generateCopilotInstructions()` for your standards
|
|
235
|
-
- Adjust `generateReadmeContent()` for your format
|
|
236
|
-
- Customize `generateRecommendations()` for your priorities
|
|
237
|
-
|
|
238
|
-
3. Build: `npm run build`
|
|
239
|
-
4. Publish: `npm publish` (or use locally with path)
|
|
240
|
-
|
|
241
|
-
## Supported Project Types
|
|
242
|
-
|
|
243
|
-
| Type | Status |
|
|
244
|
-
| ------------- | ------------------ |
|
|
245
|
-
| Node.js / npm | ✅ Full Support |
|
|
246
|
-
| TypeScript | ✅ Full Support |
|
|
247
|
-
| React | ✅ Full Support |
|
|
248
|
-
| Vue.js | ✅ Full Support |
|
|
249
|
-
| Next.js | ✅ Full Support |
|
|
250
|
-
| Python | ✅ Full Support |
|
|
251
|
-
| .NET | ✅ Full Support |
|
|
252
|
-
| Other | ✅ Generic Support |
|
|
253
|
-
|
|
254
|
-
## Architecture
|
|
255
|
-
|
|
256
|
-
```
|
|
257
|
-
src/
|
|
258
|
-
├── index.ts # Server startup
|
|
259
|
-
├── server.ts # MCP setup & registration
|
|
260
|
-
├── tools.ts # Tool implementations
|
|
261
|
-
├── resources.ts # Resource providers
|
|
262
|
-
├── prompts.ts # Prompt templates
|
|
263
|
-
├── types.ts # TypeScript types
|
|
264
|
-
└── utils/
|
|
265
|
-
├── fileHandler.ts # File I/O
|
|
266
|
-
├── projectScanner.ts # Project analysis
|
|
267
|
-
├── bestPractices.ts # Customization templates
|
|
268
|
-
├── validator.ts # Input validation
|
|
269
|
-
└── logger.ts # Logging
|
|
270
|
-
```
|
|
271
|
-
|
|
272
|
-
## Development
|
|
273
|
-
|
|
274
|
-
### Prerequisites
|
|
275
|
-
|
|
276
|
-
- Node.js 16+
|
|
277
|
-
- npm or yarn
|
|
278
|
-
|
|
279
|
-
### Setup
|
|
280
|
-
|
|
281
|
-
```powershell
|
|
282
|
-
git clone https://github.com/yourusername/project-customization-mcp.git
|
|
283
|
-
cd project-customization-mcp
|
|
284
|
-
npm install
|
|
285
|
-
npm run build
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
### Development Mode
|
|
289
|
-
|
|
290
|
-
```powershell
|
|
291
|
-
npm run dev
|
|
292
|
-
```
|
|
293
|
-
|
|
294
|
-
### Build for Production
|
|
295
|
-
|
|
296
|
-
```powershell
|
|
297
|
-
npm run build
|
|
298
|
-
```
|
|
299
|
-
|
|
300
|
-
## Contributing
|
|
301
|
-
|
|
302
|
-
Contributions welcome! Areas for enhancement:
|
|
303
|
-
|
|
304
|
-
- [ ] Support for more languages/frameworks
|
|
305
|
-
- [ ] Custom organization templates
|
|
306
|
-
- [ ] Integration with CI/CD systems
|
|
307
|
-
- [ ] Linting and formatting configuration generation
|
|
308
|
-
- [ ] Test setup automation
|
|
309
|
-
- [ ] Documentation generators
|
|
310
|
-
|
|
311
|
-
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
312
|
-
|
|
313
|
-
## Troubleshooting
|
|
314
|
-
|
|
315
|
-
### Server not connecting
|
|
316
|
-
|
|
317
|
-
1. Check MCP configuration syntax
|
|
318
|
-
2. Verify command path is correct
|
|
319
|
-
3. Ensure `build/index.js` exists (run `npm run build`)
|
|
320
|
-
4. Check IDE logs for errors
|
|
321
|
-
|
|
322
|
-
### Tools not appearing
|
|
323
|
-
|
|
324
|
-
1. Reload IDE window
|
|
325
|
-
2. Restart IDE completely
|
|
326
|
-
3. Verify MCP server is running (check IDE status)
|
|
327
|
-
4. Check server logs for errors
|
|
328
|
-
|
|
329
|
-
### File permissions
|
|
330
|
-
|
|
331
|
-
- Ensure write access to project directory
|
|
332
|
-
- Check that `.github/` directory can be created
|
|
333
|
-
|
|
334
|
-
## FAQ
|
|
335
|
-
|
|
336
|
-
**Q: Will this modify my existing files?**
|
|
337
|
-
A: By default, it creates new files or updates README by appending. Existing instructions are backed up.
|
|
338
|
-
|
|
339
|
-
**Q: What if my project is not detected correctly?**
|
|
340
|
-
A: Check for standard configuration files (package.json, pyproject.toml, etc.). You can also provide hints through chat context.
|
|
341
|
-
|
|
342
|
-
**Q: Can I use this for multiple projects?**
|
|
343
|
-
A: Yes! Configure once and use with any project. It auto-detects project type.
|
|
344
|
-
|
|
345
|
-
**Q: Is this IDE-specific?**
|
|
346
|
-
A: No! It's a standard MCP server. Works with any MCP-compatible client.
|
|
347
|
-
|
|
348
|
-
**Q: Can I customize the guidelines?**
|
|
349
|
-
A: Yes! Fork the repo and edit `bestPractices.ts` for your organization's standards.
|
|
350
|
-
|
|
351
|
-
## License
|
|
131
|
+
## 📄 License
|
|
352
132
|
|
|
353
133
|
MIT License - See [LICENSE](LICENSE) file
|
|
354
134
|
|
|
355
|
-
## Support
|
|
356
|
-
|
|
357
|
-
- 📖 [GitHub Wiki](https://github.com/yourusername/project-customization-mcp/wiki)
|
|
358
|
-
- 🐛 [Report Issues](https://github.com/yourusername/project-customization-mcp/issues)
|
|
359
|
-
- 💬 [Discussions](https://github.com/yourusername/project-customization-mcp/discussions)
|
|
360
|
-
|
|
361
|
-
## Roadmap
|
|
362
|
-
|
|
363
|
-
- [ ] Web-based configuration UI
|
|
364
|
-
- [ ] Organization-specific templates library
|
|
365
|
-
- [ ] Linter/formatter configuration generation
|
|
366
|
-
- [ ] Test framework setup automation
|
|
367
|
-
- [ ] Git hooks generation (Husky, etc.)
|
|
368
|
-
- [ ] Pre-commit configuration
|
|
369
|
-
- [ ] EditorConfig generation
|
|
370
|
-
|
|
371
135
|
---
|
|
372
136
|
|
|
373
|
-
**Made for the Model Context Protocol** | Works with any MCP-compatible client
|
|
137
|
+
🎉 **Made for the Model Context Protocol** | Works with any MCP-compatible client
|
package/bin/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "project-customization-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "An MCP server for automating project customization based on best practices. Analyzes projects and generates customization files for any IDE or tool that supports the Model Context Protocol.",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"bin": {
|