mcp-adr-analysis-server 2.0.1 โ†’ 2.0.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/README.md CHANGED
@@ -23,6 +23,8 @@ The Model Context Protocol enables seamless integration between AI assistants an
23
23
  ๐Ÿ“‹ **ADR Management** - Generate, suggest, and maintain Architectural Decision Records
24
24
  ๐Ÿ›ก๏ธ **Security & Compliance** - Detect and mask sensitive content automatically
25
25
  ๐Ÿ“Š **Workflow Automation** - Todo generation, deployment tracking, and rule validation
26
+ ๐Ÿงช **TDD Integration** - Two-phase Test-Driven Development with ADR linking and validation
27
+ ๐Ÿ” **Mock Detection** - Sophisticated analysis to distinguish mock from production code
26
28
 
27
29
 
28
30
 
@@ -37,12 +39,6 @@ npm install -g mcp-adr-analysis-server
37
39
  npm install mcp-adr-analysis-server
38
40
  ```
39
41
 
40
- ### Using with uvx (Python-style)
41
- ```bash
42
- # Run directly with uvx
43
- uvx mcp-adr-analysis-server@latest
44
- ```
45
-
46
42
  ### From Source
47
43
  ```bash
48
44
  git clone https://github.com/tosin2013/mcp-adr-analysis-server.git
@@ -175,25 +171,6 @@ Add to `~/.codeium/windsurf/mcp_config.json`:
175
171
  }
176
172
  ```
177
173
 
178
- ### Amazon Q CLI
179
- Add to `~/.aws/amazonq/mcp.json`:
180
-
181
- ```json
182
- {
183
- "mcpServers": {
184
- "adr-analysis": {
185
- "command": "uvx",
186
- "args": ["mcp-adr-analysis-server@latest"],
187
- "env": {
188
- "PROJECT_PATH": "/path/to/your/project",
189
- "ADR_DIRECTORY": "docs/adrs",
190
- "LOG_LEVEL": "ERROR"
191
- }
192
- }
193
- }
194
- }
195
- ```
196
-
197
174
  ## ๐Ÿš€ Usage Examples
198
175
 
199
176
  ### Basic Project Analysis
@@ -220,10 +197,44 @@ const adrs = await generateAdrsFromPrd({
220
197
  template: "nygard"
221
198
  });
222
199
 
223
- // Generate actionable todos from ADRs
200
+ // Generate actionable todos from ADRs with enhanced TDD approach
224
201
  const todos = await generateAdrTodo({
225
202
  adrDirectory: "docs/adrs",
226
- outputPath: "todo.md"
203
+ outputPath: "todo.md",
204
+ phase: "both", // Two-phase TDD: test + production
205
+ linkAdrs: true, // Link all ADRs for system-wide coverage
206
+ includeRules: true // Include architectural rules validation
207
+ });
208
+ ```
209
+
210
+ ### Enhanced TDD Workflow
211
+ ```typescript
212
+ // Phase 1: Generate comprehensive test specifications
213
+ const testPhase = await generateAdrTodo({
214
+ adrDirectory: "docs/adrs",
215
+ outputPath: "todo-tests.md",
216
+ phase: "test", // Generate mock test specifications
217
+ linkAdrs: true, // Connect all ADRs for complete test coverage
218
+ includeRules: true // Validate against architectural rules
219
+ });
220
+
221
+ // Phase 2: Generate production implementation tasks
222
+ const prodPhase = await generateAdrTodo({
223
+ adrDirectory: "docs/adrs",
224
+ outputPath: "todo-implementation.md",
225
+ phase: "production", // Generate production-ready implementation tasks
226
+ linkAdrs: true, // Ensure system-wide consistency
227
+ includeRules: true // Enforce architectural compliance
228
+ });
229
+
230
+ // Validate progress and detect mock vs production code
231
+ const validation = await compareAdrProgress({
232
+ todoPath: "todo.md",
233
+ adrDirectory: "docs/adrs",
234
+ projectPath: "/path/to/project",
235
+ deepCodeAnalysis: true, // Distinguish mock from production code
236
+ functionalValidation: true, // Validate code actually works
237
+ strictMode: true // Reality-check against LLM overconfidence
227
238
  });
228
239
  ```
229
240
 
@@ -257,15 +268,46 @@ const updatedAdrs = await incorporateResearch({
257
268
  });
258
269
  ```
259
270
 
271
+ ### Advanced Validation & Quality Assurance
272
+ ```typescript
273
+ // Comprehensive validation with mock detection
274
+ const qualityCheck = await compareAdrProgress({
275
+ todoPath: "todo.md",
276
+ adrDirectory: "docs/adrs",
277
+ projectPath: "/path/to/project",
278
+
279
+ // Prevent LLM deception about code completeness
280
+ deepCodeAnalysis: true, // Detects mock patterns vs real implementation
281
+ functionalValidation: true, // Tests if code actually works
282
+ strictMode: true, // Reality-check mechanisms
283
+
284
+ // Advanced analysis options
285
+ includeTestCoverage: true, // Validate test coverage meets ADR goals
286
+ validateDependencies: true, // Check cross-ADR dependencies
287
+ environmentValidation: true // Test in realistic environments
288
+ });
289
+
290
+ // Generate architectural rules from ADRs and patterns
291
+ const rules = await generateRules({
292
+ source: "both", // Extract from ADRs and code patterns
293
+ adrDirectory: "docs/adrs",
294
+ projectPath: "/path/to/project",
295
+ outputFormat: "json" // Machine-readable format
296
+ });
297
+ ```
298
+
260
299
  ## ๐ŸŽฏ Use Cases
261
300
 
262
301
  ### ๐Ÿ‘จโ€๐Ÿ’ป **AI Coding Assistants**
263
302
  *Enhance AI coding assistants like Cline, Cursor, and Claude Code*
264
303
 
304
+ - **Test-Driven Development**: Two-phase TDD workflow with comprehensive ADR integration
265
305
  - **Intelligent Code Generation**: Generate code that follows architectural patterns and best practices
306
+ - **Mock vs Production Detection**: Prevent AI assistants from claiming mock code is production-ready
266
307
  - **Architecture-Aware Refactoring**: Refactor code while maintaining architectural integrity
267
308
  - **Decision Documentation**: Automatically document architectural decisions as you code
268
309
  - **Pattern Recognition**: Identify and suggest architectural patterns for new features
310
+ - **Quality Validation**: Reality-check mechanisms against overconfident AI assessments
269
311
 
270
312
  ### ๐Ÿ’ฌ **Conversational AI Assistants**
271
313
  *Enhance chatbots and business agents with architectural intelligence*
@@ -37,6 +37,7 @@ export declare class McpAdrAnalysisServer {
37
37
  private getArchitecturalContext;
38
38
  private generateAdrsFromPrd;
39
39
  private generateAdrTodo;
40
+ private compareAdrProgress;
40
41
  /**
41
42
  * Content masking tool implementations
42
43
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;GAMG;AA0BH;;GAEG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,aAAa,CAAM;IAC3B,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,MAAM,CAAkC;;I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