mcp-adr-analysis-server 2.0.5 → 2.0.6

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.
@@ -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,C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AGJ,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,GAAG,CAAC,KAAK,OAAO,GAAG,CAAC,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;CACnF;iBACM,CAAC;SACH,CAAC;IAEJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,WAAW,CACnB,0CAA0C,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAClG,2BAA2B,CAC5B,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,166 @@
1
+ /**
2
+ * MCP Tool for TODO.md management with incremental updates and task lifecycle
3
+ * Provides smart merging, status tracking, and preservation of custom tasks
4
+ */
5
+ import { z } from 'zod';
6
+ declare const ManageTodoSchema: z.ZodUnion<[z.ZodObject<{
7
+ operation: z.ZodLiteral<"update_status">;
8
+ todoPath: z.ZodDefault<z.ZodString>;
9
+ updates: z.ZodArray<z.ZodObject<{
10
+ taskId: z.ZodString;
11
+ status: z.ZodEnum<["pending", "in_progress", "completed", "blocked", "cancelled"]>;
12
+ notes: z.ZodOptional<z.ZodString>;
13
+ assignee: z.ZodOptional<z.ZodString>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
16
+ taskId: string;
17
+ assignee?: string | undefined;
18
+ notes?: string | undefined;
19
+ }, {
20
+ status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
21
+ taskId: string;
22
+ assignee?: string | undefined;
23
+ notes?: string | undefined;
24
+ }>, "many">;
25
+ }, "strip", z.ZodTypeAny, {
26
+ todoPath: string;
27
+ operation: "update_status";
28
+ updates: {
29
+ status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
30
+ taskId: string;
31
+ assignee?: string | undefined;
32
+ notes?: string | undefined;
33
+ }[];
34
+ }, {
35
+ operation: "update_status";
36
+ updates: {
37
+ status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
38
+ taskId: string;
39
+ assignee?: string | undefined;
40
+ notes?: string | undefined;
41
+ }[];
42
+ todoPath?: string | undefined;
43
+ }>, z.ZodObject<{
44
+ operation: z.ZodLiteral<"add_tasks">;
45
+ todoPath: z.ZodDefault<z.ZodString>;
46
+ tasks: z.ZodArray<z.ZodObject<Omit<{
47
+ id: z.ZodString;
48
+ title: z.ZodString;
49
+ status: z.ZodEnum<["pending", "in_progress", "completed", "blocked", "cancelled"]>;
50
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
51
+ adrSource: z.ZodOptional<z.ZodString>;
52
+ category: z.ZodOptional<z.ZodString>;
53
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
54
+ notes: z.ZodOptional<z.ZodString>;
55
+ createdAt: z.ZodOptional<z.ZodString>;
56
+ updatedAt: z.ZodOptional<z.ZodString>;
57
+ estimatedHours: z.ZodOptional<z.ZodNumber>;
58
+ assignee: z.ZodOptional<z.ZodString>;
59
+ }, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
60
+ status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
61
+ title: string;
62
+ category?: string | undefined;
63
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
64
+ assignee?: string | undefined;
65
+ dependencies?: string[] | undefined;
66
+ adrSource?: string | undefined;
67
+ notes?: string | undefined;
68
+ estimatedHours?: number | undefined;
69
+ }, {
70
+ status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
71
+ title: string;
72
+ category?: string | undefined;
73
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
74
+ assignee?: string | undefined;
75
+ dependencies?: string[] | undefined;
76
+ adrSource?: string | undefined;
77
+ notes?: string | undefined;
78
+ estimatedHours?: number | undefined;
79
+ }>, "many">;
80
+ section: z.ZodOptional<z.ZodString>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ tasks: {
83
+ status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
84
+ title: string;
85
+ category?: string | undefined;
86
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
87
+ assignee?: string | undefined;
88
+ dependencies?: string[] | undefined;
89
+ adrSource?: string | undefined;
90
+ notes?: string | undefined;
91
+ estimatedHours?: number | undefined;
92
+ }[];
93
+ todoPath: string;
94
+ operation: "add_tasks";
95
+ section?: string | undefined;
96
+ }, {
97
+ tasks: {
98
+ status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
99
+ title: string;
100
+ category?: string | undefined;
101
+ priority?: "medium" | "low" | "high" | "critical" | undefined;
102
+ assignee?: string | undefined;
103
+ dependencies?: string[] | undefined;
104
+ adrSource?: string | undefined;
105
+ notes?: string | undefined;
106
+ estimatedHours?: number | undefined;
107
+ }[];
108
+ operation: "add_tasks";
109
+ todoPath?: string | undefined;
110
+ section?: string | undefined;
111
+ }>, z.ZodObject<{
112
+ operation: z.ZodLiteral<"merge_adr_updates">;
113
+ todoPath: z.ZodDefault<z.ZodString>;
114
+ adrDirectory: z.ZodDefault<z.ZodString>;
115
+ preserveCompleted: z.ZodDefault<z.ZodBoolean>;
116
+ preserveCustom: z.ZodDefault<z.ZodBoolean>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ adrDirectory: string;
119
+ todoPath: string;
120
+ operation: "merge_adr_updates";
121
+ preserveCompleted: boolean;
122
+ preserveCustom: boolean;
123
+ }, {
124
+ operation: "merge_adr_updates";
125
+ adrDirectory?: string | undefined;
126
+ todoPath?: string | undefined;
127
+ preserveCompleted?: boolean | undefined;
128
+ preserveCustom?: boolean | undefined;
129
+ }>, z.ZodObject<{
130
+ operation: z.ZodLiteral<"sync_progress">;
131
+ todoPath: z.ZodDefault<z.ZodString>;
132
+ adrDirectory: z.ZodDefault<z.ZodString>;
133
+ updateAdrs: z.ZodDefault<z.ZodBoolean>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ adrDirectory: string;
136
+ todoPath: string;
137
+ operation: "sync_progress";
138
+ updateAdrs: boolean;
139
+ }, {
140
+ operation: "sync_progress";
141
+ adrDirectory?: string | undefined;
142
+ todoPath?: string | undefined;
143
+ updateAdrs?: boolean | undefined;
144
+ }>, z.ZodObject<{
145
+ operation: z.ZodLiteral<"analyze_progress">;
146
+ todoPath: z.ZodDefault<z.ZodString>;
147
+ timeframe: z.ZodDefault<z.ZodEnum<["day", "week", "month", "all"]>>;
148
+ includeVelocity: z.ZodDefault<z.ZodBoolean>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ todoPath: string;
151
+ operation: "analyze_progress";
152
+ timeframe: "day" | "week" | "month" | "all";
153
+ includeVelocity: boolean;
154
+ }, {
155
+ operation: "analyze_progress";
156
+ todoPath?: string | undefined;
157
+ timeframe?: "day" | "week" | "month" | "all" | undefined;
158
+ includeVelocity?: boolean | undefined;
159
+ }>]>;
160
+ type ManageTodoArgs = z.infer<typeof ManageTodoSchema>;
161
+ /**
162
+ * Main TODO management function
163
+ */
164
+ export declare function manageTodo(args: ManageTodoArgs): Promise<any>;
165
+ export {};
166
+ //# sourceMappingURL=todo-management-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"todo-management-tool.d.ts","sourceRoot":"","sources":["../../../src/tools/todo-management-tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqFxB,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMpB,CAAC;AAEH,KAAK,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAwQvD;;GAEG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,CAoLnE"}