project-customization-mcp 0.1.2 → 0.1.3
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/LICENSE +21 -21
- package/README.md +163 -137
- package/bin/cli.js +6 -6
- package/build/prompts.js +28 -28
- package/build/server.js +63 -5
- package/build/server.js.map +1 -1
- package/build/tools.js.map +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,137 +1,163 @@
|
|
|
1
|
-
# Project Customization MCP
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
**Platform-agnostic**: Works with any IDE, editor, or AI tool that supports the Model Context Protocol (VS Code, JetBrains, Cursor, Claude, etc.)
|
|
6
|
-
|
|
7
|
-
## What You Get
|
|
8
|
-
|
|
9
|
-
This tool automatically:
|
|
10
|
-
|
|
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
|
|
15
|
-
|
|
16
|
-
## 🎯 Tools Available
|
|
17
|
-
|
|
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
|
|
22
|
-
|
|
23
|
-
## 📚 Resources Available
|
|
24
|
-
|
|
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
|
|
29
|
-
|
|
30
|
-
## 💬 Prompts Available
|
|
31
|
-
|
|
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
|
|
35
|
-
|
|
36
|
-
## 📦 Installation
|
|
37
|
-
|
|
38
|
-
### ⚙️ Option 1: Using npx (Recommended - No Installation Needed)
|
|
39
|
-
|
|
40
|
-
```json
|
|
41
|
-
{
|
|
42
|
-
"mcpServers": {
|
|
43
|
-
"project-customization": {
|
|
44
|
-
"command": "npx",
|
|
45
|
-
"args": ["-y", "project-customization-mcp"]
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### 🌍 Option 2: Global npm Installation
|
|
52
|
-
|
|
53
|
-
```powershell
|
|
54
|
-
npm install -g project-customization-mcp
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Then configure:
|
|
58
|
-
|
|
59
|
-
```json
|
|
60
|
-
{
|
|
61
|
-
"mcpServers": {
|
|
62
|
-
"project-customization": {
|
|
63
|
-
"command": "project-customization-mcp"
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
1
|
+
# Project Customization MCP
|
|
2
|
+
|
|
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
|
+
|
|
5
|
+
**Platform-agnostic**: Works with any IDE, editor, or AI tool that supports the Model Context Protocol (VS Code, JetBrains, Cursor, Claude, etc.)
|
|
6
|
+
|
|
7
|
+
## What You Get
|
|
8
|
+
|
|
9
|
+
This tool automatically:
|
|
10
|
+
|
|
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
|
|
15
|
+
|
|
16
|
+
## 🎯 Tools Available
|
|
17
|
+
|
|
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
|
|
22
|
+
|
|
23
|
+
## 📚 Resources Available
|
|
24
|
+
|
|
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
|
|
29
|
+
|
|
30
|
+
## 💬 Prompts Available
|
|
31
|
+
|
|
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
|
|
35
|
+
|
|
36
|
+
## 📦 Installation
|
|
37
|
+
|
|
38
|
+
### ⚙️ Option 1: Using npx (Recommended - No Installation Needed)
|
|
39
|
+
|
|
40
|
+
```json
|
|
41
|
+
{
|
|
42
|
+
"mcpServers": {
|
|
43
|
+
"project-customization": {
|
|
44
|
+
"command": "npx",
|
|
45
|
+
"args": ["-y", "project-customization-mcp"]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### 🌍 Option 2: Global npm Installation
|
|
52
|
+
|
|
53
|
+
```powershell
|
|
54
|
+
npm install -g project-customization-mcp
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Then configure:
|
|
58
|
+
|
|
59
|
+
```json
|
|
60
|
+
{
|
|
61
|
+
"mcpServers": {
|
|
62
|
+
"project-customization": {
|
|
63
|
+
"command": "project-customization-mcp",
|
|
64
|
+
"env": {
|
|
65
|
+
"MCP_API_KEY": "YOUR_KEY"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## 🔐 Authorization (Tools Only)
|
|
73
|
+
|
|
74
|
+
Tool execution requires an API key configured via `MCP_API_KEY` in the MCP server configuration `env`. If the key is missing, tool calls return an authorization error. Prompts and resources remain available without any key.
|
|
75
|
+
|
|
76
|
+
Example configuration:
|
|
77
|
+
|
|
78
|
+
```json
|
|
79
|
+
{
|
|
80
|
+
"mcpServers": {
|
|
81
|
+
"project-customization": {
|
|
82
|
+
"command": "project-customization-mcp",
|
|
83
|
+
"env": {
|
|
84
|
+
"MCP_API_KEY": "YOUR_KEY"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## 🧠 Memory (GitHub Copilot Hosted)
|
|
92
|
+
|
|
93
|
+
This MCP server does not store memory. Use GitHub Copilot's hosted memory feature for long-lived context, per GitHub's Copilot memory documentation.
|
|
94
|
+
|
|
95
|
+
## 🚀 How to Use
|
|
96
|
+
|
|
97
|
+
### 1️⃣ Configure in Your IDE
|
|
98
|
+
|
|
99
|
+
- **VS Code**: `Ctrl+Shift+P` → "MCP: Open User Configuration"
|
|
100
|
+
- **Cursor**: Settings → MCP Servers
|
|
101
|
+
- **Other IDEs**: Refer to your IDE's MCP documentation
|
|
102
|
+
|
|
103
|
+
Add one of the configurations above and restart your IDE.
|
|
104
|
+
|
|
105
|
+
### 2️⃣ Use in Chat
|
|
106
|
+
|
|
107
|
+
Open your chat and type:
|
|
108
|
+
|
|
109
|
+
```
|
|
110
|
+
Analyze my project and set up customization based on best practices
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Or use specific prompts:
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
/analyze-and-customize
|
|
117
|
+
/generate-instructions-only
|
|
118
|
+
/review-and-improve
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### 3. Add Resources to Chat
|
|
122
|
+
|
|
123
|
+
Add project context:
|
|
124
|
+
|
|
125
|
+
- Select "Add Context" → "MCP Resources"
|
|
126
|
+
- Choose: Project Metadata, Project Structure, Guidelines, README
|
|
127
|
+
|
|
128
|
+
## 📋 What Gets Generated
|
|
129
|
+
|
|
130
|
+
The tool creates or updates:
|
|
131
|
+
|
|
132
|
+
- ✅ **`.github/copilot-instructions.md`** - Project-specific guidelines and standards
|
|
133
|
+
- ✅ **`README.md`** - Enhanced with setup and development guidelines
|
|
134
|
+
- ✅ **Recommendations** - Suggestions for framework-specific improvements
|
|
135
|
+
|
|
136
|
+
## 📊 Example Output
|
|
137
|
+
|
|
138
|
+
For a React TypeScript project, you get:
|
|
139
|
+
|
|
140
|
+
```markdown
|
|
141
|
+
# Project Guidelines
|
|
142
|
+
|
|
143
|
+
## Code Style
|
|
144
|
+
|
|
145
|
+
- Use functional components with hooks
|
|
146
|
+
- Maintain strict TypeScript (no `any`)
|
|
147
|
+
- ESLint + Prettier for formatting
|
|
148
|
+
|
|
149
|
+
## Project Structure
|
|
150
|
+
|
|
151
|
+
- src/components - React components
|
|
152
|
+
- src/pages - Page components
|
|
153
|
+
- src/utils - Utilities
|
|
154
|
+
- src/hooks - Custom hooks
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## 📄 License
|
|
158
|
+
|
|
159
|
+
MIT License - See [LICENSE](LICENSE) file
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
🎉 **Made for the Model Context Protocol** | Works with any MCP-compatible client
|
package/bin/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// Lightweight launcher that executes the compiled MCP server entry.
|
|
4
|
-
import('../build/index.js').catch((err) => {
|
|
5
|
-
console.error('Failed to start project-customization-mcp:', err);
|
|
6
|
-
process.exit(1);
|
|
7
|
-
});
|
|
2
|
+
|
|
3
|
+
// Lightweight launcher that executes the compiled MCP server entry.
|
|
4
|
+
import('../build/index.js').catch((err) => {
|
|
5
|
+
console.error('Failed to start project-customization-mcp:', err);
|
|
6
|
+
process.exit(1);
|
|
7
|
+
});
|
package/build/prompts.js
CHANGED
|
@@ -46,38 +46,38 @@ export const PROMPT_TEMPLATES = [
|
|
|
46
46
|
export function getPromptContent(promptName) {
|
|
47
47
|
switch (promptName) {
|
|
48
48
|
case 'analyze-and-customize':
|
|
49
|
-
return `You are a VS Code customization expert. Your task is to analyze the provided project and help customize it for optimal Copilot experience.
|
|
50
|
-
|
|
51
|
-
Use the following tools in sequence:
|
|
52
|
-
1. First, analyze the project using the \`analyze_project\` tool to understand its structure, type, and current customization status
|
|
53
|
-
2. Review the analysis results to identify gaps and opportunities
|
|
54
|
-
3. Generate Copilot custom instructions using the \`generate_copilot_instructions\` tool
|
|
55
|
-
4. Update or create a README with guidelines using the \`update_readme\` tool
|
|
56
|
-
5. Explain what was done and provide recommendations for further improvements
|
|
57
|
-
|
|
49
|
+
return `You are a VS Code customization expert. Your task is to analyze the provided project and help customize it for optimal Copilot experience.
|
|
50
|
+
|
|
51
|
+
Use the following tools in sequence:
|
|
52
|
+
1. First, analyze the project using the \`analyze_project\` tool to understand its structure, type, and current customization status
|
|
53
|
+
2. Review the analysis results to identify gaps and opportunities
|
|
54
|
+
3. Generate Copilot custom instructions using the \`generate_copilot_instructions\` tool
|
|
55
|
+
4. Update or create a README with guidelines using the \`update_readme\` tool
|
|
56
|
+
5. Explain what was done and provide recommendations for further improvements
|
|
57
|
+
|
|
58
58
|
The goal is to establish a solid foundation of project customization that will improve developer experience when using Copilot.`;
|
|
59
59
|
case 'generate-instructions-only':
|
|
60
|
-
return `You are a VS Code customization expert focused on Copilot instructions.
|
|
61
|
-
|
|
62
|
-
Your task:
|
|
63
|
-
1. Analyze the project using the \`analyze_project\` tool
|
|
64
|
-
2. Generate appropriate Copilot custom instructions using the \`generate_copilot_instructions\` tool
|
|
65
|
-
3. Provide a summary of what instructions were created and why they're important for this project
|
|
66
|
-
|
|
60
|
+
return `You are a VS Code customization expert focused on Copilot instructions.
|
|
61
|
+
|
|
62
|
+
Your task:
|
|
63
|
+
1. Analyze the project using the \`analyze_project\` tool
|
|
64
|
+
2. Generate appropriate Copilot custom instructions using the \`generate_copilot_instructions\` tool
|
|
65
|
+
3. Provide a summary of what instructions were created and why they're important for this project
|
|
66
|
+
|
|
67
67
|
Focus on creating clear, actionable guidelines that reflect the project's technology stack and best practices.`;
|
|
68
68
|
case 'review-and-improve':
|
|
69
|
-
return `You are a code quality and customization expert.
|
|
70
|
-
|
|
71
|
-
Your task:
|
|
72
|
-
1. Analyze the project using the \`analyze_project\` tool
|
|
73
|
-
2. Get customization recommendations using the \`get_customization_recommendations\` tool
|
|
74
|
-
3. Review existing customization files (README, instructions) by reading the project resources
|
|
75
|
-
4. Provide detailed recommendations for:
|
|
76
|
-
- What customization improvements are needed
|
|
77
|
-
- How to enhance existing guidelines
|
|
78
|
-
- Best practices that aren't yet documented
|
|
79
|
-
- Potential issues or gaps in the current setup
|
|
80
|
-
|
|
69
|
+
return `You are a code quality and customization expert.
|
|
70
|
+
|
|
71
|
+
Your task:
|
|
72
|
+
1. Analyze the project using the \`analyze_project\` tool
|
|
73
|
+
2. Get customization recommendations using the \`get_customization_recommendations\` tool
|
|
74
|
+
3. Review existing customization files (README, instructions) by reading the project resources
|
|
75
|
+
4. Provide detailed recommendations for:
|
|
76
|
+
- What customization improvements are needed
|
|
77
|
+
- How to enhance existing guidelines
|
|
78
|
+
- Best practices that aren't yet documented
|
|
79
|
+
- Potential issues or gaps in the current setup
|
|
80
|
+
|
|
81
81
|
Be constructive and provide actionable advice.`;
|
|
82
82
|
default:
|
|
83
83
|
return `Unknown prompt: ${promptName}`;
|
package/build/server.js
CHANGED
|
@@ -7,13 +7,43 @@ import { ToolHandlers } from './tools.js';
|
|
|
7
7
|
import { ResourceProviders } from './resources.js';
|
|
8
8
|
import { PROMPT_TEMPLATES, getPromptContent, isValidPromptName } from './prompts.js';
|
|
9
9
|
import { logger } from './utils/logger.js';
|
|
10
|
+
const TOOL_API_KEY_ENV = 'MCP_API_KEY';
|
|
11
|
+
const TOOL_API_KEY_VALUE = 'thisisdummyAPIkey';
|
|
12
|
+
function getToolAuthErrorResponse() {
|
|
13
|
+
const configuredKey = process.env[TOOL_API_KEY_ENV];
|
|
14
|
+
if (!configuredKey) {
|
|
15
|
+
logger.warn(`Tool access blocked: ${TOOL_API_KEY_ENV} not configured`);
|
|
16
|
+
return {
|
|
17
|
+
content: [
|
|
18
|
+
{
|
|
19
|
+
type: 'text',
|
|
20
|
+
text: 'Authorization required: API key not configured.',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
isError: true,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
if (configuredKey !== TOOL_API_KEY_VALUE) {
|
|
27
|
+
logger.warn('Tool access blocked: invalid API key provided');
|
|
28
|
+
return {
|
|
29
|
+
content: [
|
|
30
|
+
{
|
|
31
|
+
type: 'text',
|
|
32
|
+
text: 'Authorization required: invalid API key.',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
isError: true,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
10
40
|
/**
|
|
11
41
|
* Initialize and configure the MCP server
|
|
12
42
|
*/
|
|
13
43
|
export function initializeServer() {
|
|
14
44
|
const server = new McpServer({
|
|
15
45
|
name: 'project-customization-mcp',
|
|
16
|
-
version: '0.1.
|
|
46
|
+
version: '0.1.3',
|
|
17
47
|
});
|
|
18
48
|
// Register tools
|
|
19
49
|
registerTools(server);
|
|
@@ -33,7 +63,14 @@ function registerTools(server) {
|
|
|
33
63
|
const analyzeProjectSchema = z.object({
|
|
34
64
|
projectPath: z.string().optional(),
|
|
35
65
|
}).shape;
|
|
36
|
-
server.
|
|
66
|
+
server.registerTool('analyze_project', {
|
|
67
|
+
description: 'Analyze a VS Code project structure and detect project type, frameworks, languages, and customization opportunities',
|
|
68
|
+
inputSchema: analyzeProjectSchema,
|
|
69
|
+
}, async (args, _extra) => {
|
|
70
|
+
const authError = getToolAuthErrorResponse();
|
|
71
|
+
if (authError) {
|
|
72
|
+
return authError;
|
|
73
|
+
}
|
|
37
74
|
try {
|
|
38
75
|
const result = await ToolHandlers.analyzeProject(args.projectPath);
|
|
39
76
|
return {
|
|
@@ -63,7 +100,14 @@ function registerTools(server) {
|
|
|
63
100
|
projectPath: z.string().optional(),
|
|
64
101
|
analysisData: z.record(z.any()).optional(),
|
|
65
102
|
}).shape;
|
|
66
|
-
server.
|
|
103
|
+
server.registerTool('generate_copilot_instructions', {
|
|
104
|
+
description: 'Generate a .github/copilot-instructions.md file based on project analysis and best practices',
|
|
105
|
+
inputSchema: generateInstructionsSchema,
|
|
106
|
+
}, async (args, _extra) => {
|
|
107
|
+
const authError = getToolAuthErrorResponse();
|
|
108
|
+
if (authError) {
|
|
109
|
+
return authError;
|
|
110
|
+
}
|
|
67
111
|
try {
|
|
68
112
|
const input = args;
|
|
69
113
|
const result = await ToolHandlers.generateCopilotInstructions(input.projectPath, input.analysisData);
|
|
@@ -100,7 +144,14 @@ function registerTools(server) {
|
|
|
100
144
|
guidelines: z.string().optional(),
|
|
101
145
|
analysisData: z.record(z.any()).optional(),
|
|
102
146
|
}).shape;
|
|
103
|
-
server.
|
|
147
|
+
server.registerTool('update_readme', {
|
|
148
|
+
description: 'Update or create README.md with project guidelines and best practices',
|
|
149
|
+
inputSchema: updateReadmeSchema,
|
|
150
|
+
}, async (args, _extra) => {
|
|
151
|
+
const authError = getToolAuthErrorResponse();
|
|
152
|
+
if (authError) {
|
|
153
|
+
return authError;
|
|
154
|
+
}
|
|
104
155
|
try {
|
|
105
156
|
const input = args;
|
|
106
157
|
const result = await ToolHandlers.updateReadme(input.projectPath, input.guidelines, input.analysisData);
|
|
@@ -136,7 +187,14 @@ function registerTools(server) {
|
|
|
136
187
|
projectPath: z.string().optional(),
|
|
137
188
|
analysisData: z.record(z.any()).optional(),
|
|
138
189
|
}).shape;
|
|
139
|
-
server.
|
|
190
|
+
server.registerTool('get_customization_recommendations', {
|
|
191
|
+
description: 'Get recommendations for customizing VS Code settings, instruction files, and project guidelines',
|
|
192
|
+
inputSchema: recommendationsSchema,
|
|
193
|
+
}, async (args, _extra) => {
|
|
194
|
+
const authError = getToolAuthErrorResponse();
|
|
195
|
+
if (authError) {
|
|
196
|
+
return authError;
|
|
197
|
+
}
|
|
140
198
|
try {
|
|
141
199
|
const input = args;
|
|
142
200
|
const result = await ToolHandlers.getRecommendations(input.projectPath, input.analysisData);
|
package/build/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC9B,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;QAC3B,IAAI,EAAE,2BA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AO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,+BAA+B,EAAE,KAAK,CAAC,CAAC;YACrD,MAAM,IAAI,KAAK,CAAC,kCAAkC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC9G,CAAC;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "project-customization-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
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": {
|