mcp-adr-analysis-server 2.0.5 → 2.0.7
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/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +249 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/tools/deployment-guidance-tool.d.ts +21 -0
- package/dist/src/tools/deployment-guidance-tool.d.ts.map +1 -0
- package/dist/src/tools/deployment-guidance-tool.js +289 -0
- package/dist/src/tools/deployment-guidance-tool.js.map +1 -0
- package/dist/src/tools/smart-git-push-tool.d.ts +24 -0
- package/dist/src/tools/smart-git-push-tool.d.ts.map +1 -0
- package/dist/src/tools/smart-git-push-tool.js +526 -0
- package/dist/src/tools/smart-git-push-tool.js.map +1 -0
- package/dist/src/tools/todo-management-tool.d.ts +166 -0
- package/dist/src/tools/todo-management-tool.d.ts.map +1 -0
- package/dist/src/tools/todo-management-tool.js +472 -0
- package/dist/src/tools/todo-management-tool.js.map +1 -0
- package/dist/src/utils/enhanced-sensitive-detector.d.ts +61 -0
- package/dist/src/utils/enhanced-sensitive-detector.d.ts.map +1 -0
- package/dist/src/utils/enhanced-sensitive-detector.js +437 -0
- package/dist/src/utils/enhanced-sensitive-detector.js.map +1 -0
- package/dist/src/utils/interactive-approval.d.ts +63 -0
- package/dist/src/utils/interactive-approval.d.ts.map +1 -0
- package/dist/src/utils/interactive-approval.js +441 -0
- package/dist/src/utils/interactive-approval.js.map +1 -0
- package/dist/src/utils/llm-artifact-detector.d.ts +76 -0
- package/dist/src/utils/llm-artifact-detector.d.ts.map +1 -0
- package/dist/src/utils/llm-artifact-detector.js +422 -0
- package/dist/src/utils/llm-artifact-detector.js.map +1 -0
- package/dist/src/utils/location-filter.d.ts +79 -0
- package/dist/src/utils/location-filter.d.ts.map +1 -0
- package/dist/src/utils/location-filter.js +327 -0
- package/dist/src/utils/location-filter.js.map +1 -0
- package/dist/src/utils/release-readiness-detector.d.ts +47 -0
- package/dist/src/utils/release-readiness-detector.d.ts.map +1 -0
- package/dist/src/utils/release-readiness-detector.js +413 -0
- package/dist/src/utils/release-readiness-detector.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Tool for generating deployment guidance from ADRs
|
|
3
|
+
* Implements prompt-driven deployment guidance generation following project patterns
|
|
4
|
+
*/
|
|
5
|
+
import { McpAdrError } from '../types/index.js';
|
|
6
|
+
/**
|
|
7
|
+
* Generate deployment guidance from ADRs using AI-driven analysis
|
|
8
|
+
*/
|
|
9
|
+
export async function generateDeploymentGuidance(args) {
|
|
10
|
+
const { adrDirectory = 'docs/adrs', environment = 'production', format = 'markdown', projectPath = process.cwd(), includeScripts = true, includeConfigs = true, includeValidation = true, technologyFilter, customRequirements, includeRollback = true, generateFiles = false } = args;
|
|
11
|
+
try {
|
|
12
|
+
// Use existing ADR discovery
|
|
13
|
+
const { discoverAdrsInDirectory } = await import('../utils/adr-discovery.js');
|
|
14
|
+
const discoveryResult = await discoverAdrsInDirectory(adrDirectory, true, projectPath);
|
|
15
|
+
if (discoveryResult.adrs.length === 0) {
|
|
16
|
+
return {
|
|
17
|
+
content: [{
|
|
18
|
+
type: 'text',
|
|
19
|
+
text: `# No ADRs Found for Deployment Guidance
|
|
20
|
+
|
|
21
|
+
## Searched Location
|
|
22
|
+
- **ADR Directory**: ${adrDirectory}
|
|
23
|
+
- **Project Path**: ${projectPath}
|
|
24
|
+
|
|
25
|
+
## Recommendations
|
|
26
|
+
1. Create ADRs with deployment-relevant decisions
|
|
27
|
+
2. Include technology choices (Docker, databases, web servers)
|
|
28
|
+
3. Specify infrastructure requirements
|
|
29
|
+
4. Document configuration parameters
|
|
30
|
+
|
|
31
|
+
## Example ADR for Deployment
|
|
32
|
+
\`\`\`markdown
|
|
33
|
+
# ADR-001: Use Docker for Containerization
|
|
34
|
+
|
|
35
|
+
## Status
|
|
36
|
+
Accepted
|
|
37
|
+
|
|
38
|
+
## Context
|
|
39
|
+
We need consistent deployment across environments.
|
|
40
|
+
|
|
41
|
+
## Decision
|
|
42
|
+
Use Docker containers with docker-compose for orchestration.
|
|
43
|
+
|
|
44
|
+
## Consequences
|
|
45
|
+
- Consistent environment across dev/staging/production
|
|
46
|
+
- Requires container registry and orchestration setup
|
|
47
|
+
- Port 3000 for application, 5432 for PostgreSQL
|
|
48
|
+
\`\`\`
|
|
49
|
+
`
|
|
50
|
+
}]
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
// Create comprehensive deployment guidance prompt
|
|
54
|
+
const deploymentPrompt = `
|
|
55
|
+
# Deployment Guidance Generation
|
|
56
|
+
|
|
57
|
+
You are an expert DevOps engineer tasked with creating comprehensive deployment guidance from Architectural Decision Records (ADRs).
|
|
58
|
+
|
|
59
|
+
## Project Context
|
|
60
|
+
- **Project**: ${projectPath.split('/').pop() || 'Unknown'}
|
|
61
|
+
- **Target Environment**: ${environment}
|
|
62
|
+
- **ADR Directory**: ${adrDirectory}
|
|
63
|
+
- **Total ADRs**: ${discoveryResult.adrs.length}
|
|
64
|
+
|
|
65
|
+
## ADR Content
|
|
66
|
+
${discoveryResult.adrs.map(adr => `
|
|
67
|
+
### ${adr.title} (${adr.filename})
|
|
68
|
+
**Status**: ${adr.status}
|
|
69
|
+
**Content**:
|
|
70
|
+
\`\`\`markdown
|
|
71
|
+
${adr.content?.slice(0, 1000) || 'No content available'}${adr.content && adr.content.length > 1000 ? '...' : ''}
|
|
72
|
+
\`\`\`
|
|
73
|
+
`).join('\n')}
|
|
74
|
+
|
|
75
|
+
## Deployment Analysis Instructions
|
|
76
|
+
|
|
77
|
+
Analyze the ADRs above and extract deployment-relevant information to create comprehensive deployment guidance:
|
|
78
|
+
|
|
79
|
+
### 1. **Technology Extraction**
|
|
80
|
+
Identify technologies mentioned in ADRs that require deployment:
|
|
81
|
+
- **Databases**: PostgreSQL, MySQL, MongoDB, Redis, etc.
|
|
82
|
+
- **Web Servers**: Nginx, Apache, Node.js, Python, etc.
|
|
83
|
+
- **Containers**: Docker, Kubernetes, container orchestration
|
|
84
|
+
- **Infrastructure**: Cloud providers, servers, networking
|
|
85
|
+
- **Security**: TLS, authentication, secrets management
|
|
86
|
+
- **Monitoring**: Logging, metrics, health checks
|
|
87
|
+
|
|
88
|
+
### 2. **Configuration Requirements**
|
|
89
|
+
Extract specific configuration details:
|
|
90
|
+
- **Ports**: Application ports, database ports, service ports
|
|
91
|
+
- **Environment Variables**: Required env vars for ${environment}
|
|
92
|
+
- **Resource Limits**: Memory, CPU, storage requirements
|
|
93
|
+
- **Dependencies**: Service dependencies and startup order
|
|
94
|
+
|
|
95
|
+
### 3. **Environment-Specific Considerations**
|
|
96
|
+
For **${environment}** environment:
|
|
97
|
+
${environment === 'production' ? `
|
|
98
|
+
- **Security**: TLS certificates, secure connections, secrets management
|
|
99
|
+
- **Performance**: Load balancing, caching, optimization
|
|
100
|
+
- **Reliability**: Backup procedures, monitoring, alerting
|
|
101
|
+
- **Scalability**: Auto-scaling, resource allocation
|
|
102
|
+
` : environment === 'staging' ? `
|
|
103
|
+
- **Testing**: Staging-specific configurations
|
|
104
|
+
- **Data**: Test data setup, database seeding
|
|
105
|
+
- **Integration**: External service connections
|
|
106
|
+
` : `
|
|
107
|
+
- **Development**: Hot-reload, debugging, local services
|
|
108
|
+
- **Convenience**: Simplified setup, development tools
|
|
109
|
+
`}
|
|
110
|
+
|
|
111
|
+
### 4. **Deployment Steps Generation**
|
|
112
|
+
Create step-by-step deployment instructions:
|
|
113
|
+
1. **Prerequisites**: Required tools, access, dependencies
|
|
114
|
+
2. **Infrastructure Setup**: Server/cloud setup, networking
|
|
115
|
+
3. **Database Setup**: Database creation, schema, migrations
|
|
116
|
+
4. **Application Deployment**: Build, deploy, configure
|
|
117
|
+
5. **Service Configuration**: Web server, load balancer, SSL
|
|
118
|
+
6. **Verification**: Health checks, smoke tests, monitoring
|
|
119
|
+
|
|
120
|
+
${includeScripts ? `
|
|
121
|
+
### 5. **Script Generation**
|
|
122
|
+
Generate deployment scripts:
|
|
123
|
+
- **Shell scripts** for automated deployment
|
|
124
|
+
- **Docker commands** for containerized deployment
|
|
125
|
+
- **Configuration files** (nginx.conf, docker-compose.yml, .env)
|
|
126
|
+
` : ''}
|
|
127
|
+
|
|
128
|
+
${includeValidation ? `
|
|
129
|
+
### 6. **Validation & Health Checks**
|
|
130
|
+
Create verification procedures:
|
|
131
|
+
- **Health check endpoints** and commands
|
|
132
|
+
- **Service connectivity tests**
|
|
133
|
+
- **Performance validation**
|
|
134
|
+
- **Security verification**
|
|
135
|
+
` : ''}
|
|
136
|
+
|
|
137
|
+
${includeRollback ? `
|
|
138
|
+
### 7. **Rollback Procedures**
|
|
139
|
+
Document rollback steps:
|
|
140
|
+
- **Rollback commands** in reverse order
|
|
141
|
+
- **Data migration rollback** if applicable
|
|
142
|
+
- **Service restoration** procedures
|
|
143
|
+
` : ''}
|
|
144
|
+
|
|
145
|
+
## Output Format
|
|
146
|
+
|
|
147
|
+
Generate deployment guidance in the following structure:
|
|
148
|
+
|
|
149
|
+
\`\`\`markdown
|
|
150
|
+
# Deployment Guide: [Project Name]
|
|
151
|
+
|
|
152
|
+
**Environment**: ${environment}
|
|
153
|
+
**Generated**: [Current Date]
|
|
154
|
+
|
|
155
|
+
## 📋 Prerequisites
|
|
156
|
+
- List all required tools, access, and dependencies
|
|
157
|
+
|
|
158
|
+
## 🏗️ Infrastructure Setup
|
|
159
|
+
- Cloud/server setup steps
|
|
160
|
+
- Network configuration
|
|
161
|
+
- Security setup
|
|
162
|
+
|
|
163
|
+
## 🗄️ Database Setup
|
|
164
|
+
- Database installation/configuration
|
|
165
|
+
- Schema creation/migration
|
|
166
|
+
- Connection setup
|
|
167
|
+
|
|
168
|
+
## 🚀 Application Deployment
|
|
169
|
+
1. **Build Steps**
|
|
170
|
+
\`\`\`bash
|
|
171
|
+
# Build commands
|
|
172
|
+
\`\`\`
|
|
173
|
+
|
|
174
|
+
2. **Deploy Steps**
|
|
175
|
+
\`\`\`bash
|
|
176
|
+
# Deployment commands
|
|
177
|
+
\`\`\`
|
|
178
|
+
|
|
179
|
+
3. **Configuration**
|
|
180
|
+
\`\`\`bash
|
|
181
|
+
# Configuration commands
|
|
182
|
+
\`\`\`
|
|
183
|
+
|
|
184
|
+
## ⚙️ Configuration Files
|
|
185
|
+
|
|
186
|
+
### .env (Environment Variables)
|
|
187
|
+
\`\`\`
|
|
188
|
+
KEY=value
|
|
189
|
+
\`\`\`
|
|
190
|
+
|
|
191
|
+
### docker-compose.yml (if applicable)
|
|
192
|
+
\`\`\`yaml
|
|
193
|
+
# Docker configuration
|
|
194
|
+
\`\`\`
|
|
195
|
+
|
|
196
|
+
## 🔍 Health Checks & Verification
|
|
197
|
+
\`\`\`bash
|
|
198
|
+
# Health check commands
|
|
199
|
+
\`\`\`
|
|
200
|
+
|
|
201
|
+
## 🔄 Rollback Procedure
|
|
202
|
+
\`\`\`bash
|
|
203
|
+
# Rollback commands (in reverse order)
|
|
204
|
+
\`\`\`
|
|
205
|
+
|
|
206
|
+
## 🛠️ Troubleshooting
|
|
207
|
+
- Common issues and solutions
|
|
208
|
+
|
|
209
|
+
## 📖 Reference ADRs
|
|
210
|
+
- Links to relevant ADRs
|
|
211
|
+
\`\`\`
|
|
212
|
+
|
|
213
|
+
## Analysis Requirements
|
|
214
|
+
|
|
215
|
+
- **Be specific**: Include actual commands, ports, and configurations
|
|
216
|
+
- **Environment-aware**: Tailor guidance for ${environment}
|
|
217
|
+
- **Security-focused**: Include security best practices
|
|
218
|
+
- **Actionable**: Every step should be executable
|
|
219
|
+
- **Complete**: Cover entire deployment lifecycle
|
|
220
|
+
- **Evidence-based**: Base all recommendations on ADR content
|
|
221
|
+
|
|
222
|
+
${technologyFilter && technologyFilter.length > 0 ? `
|
|
223
|
+
## Technology Filter
|
|
224
|
+
Focus only on these technologies: ${technologyFilter.join(', ')}
|
|
225
|
+
` : ''}
|
|
226
|
+
|
|
227
|
+
${customRequirements && customRequirements.length > 0 ? `
|
|
228
|
+
## Custom Requirements
|
|
229
|
+
Additionally address these requirements:
|
|
230
|
+
${customRequirements.map(req => `- ${req}`).join('\n')}
|
|
231
|
+
` : ''}
|
|
232
|
+
|
|
233
|
+
Begin deployment guidance generation now.
|
|
234
|
+
`;
|
|
235
|
+
// Return the prompt for AI execution
|
|
236
|
+
return {
|
|
237
|
+
content: [{
|
|
238
|
+
type: 'text',
|
|
239
|
+
text: `# Deployment Guidance Generation
|
|
240
|
+
|
|
241
|
+
## Analysis Complete
|
|
242
|
+
- **Found ${discoveryResult.adrs.length} ADRs** for deployment analysis
|
|
243
|
+
- **Target Environment**: ${environment}
|
|
244
|
+
- **Format**: ${format}
|
|
245
|
+
- **Include Scripts**: ${includeScripts}
|
|
246
|
+
- **Include Configs**: ${includeConfigs}
|
|
247
|
+
- **Include Validation**: ${includeValidation}
|
|
248
|
+
- **Include Rollback**: ${includeRollback}
|
|
249
|
+
|
|
250
|
+
## AI Analysis Prompt
|
|
251
|
+
|
|
252
|
+
${deploymentPrompt}
|
|
253
|
+
|
|
254
|
+
## Instructions
|
|
255
|
+
|
|
256
|
+
1. **Submit the prompt above** to an AI agent for comprehensive deployment guidance
|
|
257
|
+
2. **Review the generated guidance** for completeness and accuracy
|
|
258
|
+
3. **Customize configurations** for your specific environment
|
|
259
|
+
4. **Test deployment steps** in staging before production
|
|
260
|
+
5. **Save guidance** as DEPLOYMENT.md or similar documentation
|
|
261
|
+
|
|
262
|
+
## Expected Output
|
|
263
|
+
|
|
264
|
+
The AI will generate:
|
|
265
|
+
- **Step-by-step deployment instructions**
|
|
266
|
+
- **Environment-specific configurations**
|
|
267
|
+
- **Shell scripts and configuration files**
|
|
268
|
+
- **Health checks and validation procedures**
|
|
269
|
+
- **Rollback procedures**
|
|
270
|
+
- **Troubleshooting guidance**
|
|
271
|
+
|
|
272
|
+
All based on the architectural decisions documented in your ADRs.
|
|
273
|
+
|
|
274
|
+
${generateFiles ? `
|
|
275
|
+
## File Generation Mode
|
|
276
|
+
**Note**: File generation is enabled. The AI guidance will include instructions for creating actual deployment files in your project.
|
|
277
|
+
` : ''}
|
|
278
|
+
|
|
279
|
+
## ADR Sources
|
|
280
|
+
${discoveryResult.adrs.map(adr => `- **${adr.title}** (${adr.filename})`).join('\n')}
|
|
281
|
+
`
|
|
282
|
+
}]
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
catch (error) {
|
|
286
|
+
throw new McpAdrError(`Deployment guidance generation failed: ${error instanceof Error ? error.message : String(error)}`, 'DEPLOYMENT_GUIDANCE_ERROR');
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
//# sourceMappingURL=deployment-guidance-tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment-guidance-tool.js","sourceRoot":"","sources":["../../../src/tools/deployment-guidance-tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,IAYhD;IACC,MAAM,EACJ,YAAY,GAAG,WAAW,EAC1B,WAAW,GAAG,YAAY,EAC1B,MAAM,GAAG,UAAU,EACnB,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,EAC3B,cAAc,GAAG,IAAI,EACrB,cAAc,GAAG,IAAI,EACrB,iBAAiB,GAAG,IAAI,EACxB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,GAAG,IAAI,EACtB,aAAa,GAAG,KAAK,EACtB,GAAG,IAAI,CAAC;IAET,IAAI,CAAC;QACH,6BAA6B;QAC7B,MAAM,EAAE,uBAAuB,EAAE,GAAG,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC;QAC9E,MAAM,eAAe,GAAG,MAAM,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;QAEvF,IAAI,eAAe,CAAC,IAAI,CAAC,MAAM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0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart Git Push MCP Tool
|
|
3
|
+
*
|
|
4
|
+
* Intelligent git push with sensitive content and LLM artifact filtering
|
|
5
|
+
* Leverages existing content security tools and git CLI integration
|
|
6
|
+
*/
|
|
7
|
+
interface SmartGitPushArgs {
|
|
8
|
+
branch?: string;
|
|
9
|
+
message?: string;
|
|
10
|
+
skipValidation?: boolean;
|
|
11
|
+
allowedArtifacts?: string[];
|
|
12
|
+
sensitivityLevel?: 'strict' | 'moderate' | 'permissive';
|
|
13
|
+
interactiveMode?: boolean;
|
|
14
|
+
dryRun?: boolean;
|
|
15
|
+
projectPath?: string;
|
|
16
|
+
checkReleaseReadiness?: boolean;
|
|
17
|
+
releaseType?: 'major' | 'minor' | 'patch';
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Main smart git push function
|
|
21
|
+
*/
|
|
22
|
+
export declare function smartGitPush(args: SmartGitPushArgs): Promise<any>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=smart-git-push-tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-git-push-tool.d.ts","sourceRoot":"","sources":["../../../src/tools/smart-git-push-tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,UAAU,gBAAgB;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,gBAAgB,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,YAAY,CAAC;IACxD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;CAC3C;AAwBD;;GAEG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,CAqPvE"}
|