mcp-adr-analysis-server 2.5.4 → 2.6.0
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/.tsbuildinfo +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +74 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/resources/todo-list-resource.d.ts +6 -0
- package/dist/src/resources/todo-list-resource.d.ts.map +1 -1
- package/dist/src/resources/todo-list-resource.js +55 -0
- package/dist/src/resources/todo-list-resource.js.map +1 -1
- package/dist/src/tools/generate-adr-todo-tool.d.ts +34 -0
- package/dist/src/tools/generate-adr-todo-tool.d.ts.map +1 -0
- package/dist/src/tools/generate-adr-todo-tool.js +292 -0
- package/dist/src/tools/generate-adr-todo-tool.js.map +1 -0
- package/dist/src/tools/release-tracking-tool.d.ts.map +1 -1
- package/dist/src/tools/release-tracking-tool.js +119 -21
- package/dist/src/tools/release-tracking-tool.js.map +1 -1
- package/dist/src/tools/tool-catalog.d.ts.map +1 -1
- package/dist/src/tools/tool-catalog.js +29 -0
- package/dist/src/tools/tool-catalog.js.map +1 -1
- package/dist/src/utils/adr-todo-generator.d.ts +77 -0
- package/dist/src/utils/adr-todo-generator.d.ts.map +1 -0
- package/dist/src/utils/adr-todo-generator.js +320 -0
- package/dist/src/utils/adr-todo-generator.js.map +1 -0
- package/dist/src/utils/local-milestone-store.d.ts +40 -0
- package/dist/src/utils/local-milestone-store.d.ts.map +1 -0
- package/dist/src/utils/local-milestone-store.js +185 -0
- package/dist/src/utils/local-milestone-store.js.map +1 -0
- package/dist/src/utils/release-readiness-detector.d.ts +8 -0
- package/dist/src/utils/release-readiness-detector.d.ts.map +1 -1
- package/dist/src/utils/release-readiness-detector.js.map +1 -1
- package/package.json +2 -2
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;GAMG;AAgIH;;GAEG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,MAAM,CAAkC;IAChD,OAAO,CAAC,SAAS,CAAwB;IACzC,OAAO,CAAC,yBAAyB,CAA4B;IAC7D,OAAO,CAAC,yBAAyB,CAA4B;IAC7D,OAAO,CAAC,mBAAmB,CAAsB;IACjD,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,gBAAgB,CAAyB;;IAkCjD;;OAEG;YACW,qBAAqB;IAWnC;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAKlC;;;;;;;;;OASG;IACH,OAAO,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;GAMG;AAgIH;;GAEG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,MAAM,CAAkC;IAChD,OAAO,CAAC,SAAS,CAAwB;IACzC,OAAO,CAAC,yBAAyB,CAA4B;IAC7D,OAAO,CAAC,yBAAyB,CAA4B;IAC7D,OAAO,CAAC,mBAAmB,CAAsB;IACjD,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,gBAAgB,CAAyB;;IAkCjD;;OAEG;YACW,qBAAqB;IAWnC;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAKlC;;;;;;;;;OASG;IACH,OAAO,CAAC,aAAa;IAsyIrB;;OAEG;YACW,sBAAsB;YA8GtB,mBAAmB;YAqMnB,sBAAsB;YA+QtB,uBAAuB;YA+bvB,uBAAuB;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WhC;;;;;;;OAOG;YACW,oCAAoC;IAuFlD;;OAEG;YACW,YAAY;IAqa1B;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAuC5B;;OAEG;IAEH;;OAEG;YACW,SAAS;IAiBvB;;OAEG;YACW,aAAa;YA+Cb,QAAQ;YAuCR,SAAS;YAqCT,aAAa;YAsCb,0BAA0B;YAY1B,YAAY;YAYZ,mBAAmB;YAYnB,eAAe;YAYf,eAAe;YAYf,0BAA0B;YAa1B,UAAU;YAwBV,WAAW;YAYX,aAAa;YAab,qBAAqB;YAYrB,sBAAsB;IAYpC;;OAEG;YACW,qBAAqB;IAYnC;;;OAGG;YACW,YAAY;IAY1B;;;OAGG;YACW,wBAAwB;IAYtC;;;OAGG;YACW,uBAAuB;IAYrC;;;OAGG;YACW,cAAc;IAY5B;;;OAGG;YACW,eAAe;IAY7B;;;OAGG;YACW,gBAAgB;IAiB9B;;;OAGG;YACW,kBAAkB;IAyHhC;;;;;;;;;;;OAWG;YACW,cAAc;IA2D5B;;;;;;;;;;;OAWG;YACW,UAAU;CAwHzB"}
|
package/dist/src/index.js
CHANGED
|
@@ -2157,6 +2157,7 @@ export class McpAdrAnalysisServer {
|
|
|
2157
2157
|
'next_release_preview',
|
|
2158
2158
|
'create_milestone',
|
|
2159
2159
|
'sync_milestones',
|
|
2160
|
+
'push_local_milestones',
|
|
2160
2161
|
],
|
|
2161
2162
|
description: 'Operation to perform',
|
|
2162
2163
|
},
|
|
@@ -2239,10 +2240,71 @@ export class McpAdrAnalysisServer {
|
|
|
2239
2240
|
default: false,
|
|
2240
2241
|
description: 'Update TODO.md with milestone status',
|
|
2241
2242
|
},
|
|
2243
|
+
localOnly: {
|
|
2244
|
+
type: 'boolean',
|
|
2245
|
+
default: false,
|
|
2246
|
+
description: 'For create_milestone: persist locally instead of calling gh CLI. Useful when gh auth is unavailable.',
|
|
2247
|
+
},
|
|
2248
|
+
writeReleasePlan: {
|
|
2249
|
+
type: 'boolean',
|
|
2250
|
+
default: false,
|
|
2251
|
+
description: 'For create_milestone/push_local_milestones: also render local milestones into RELEASE_PLAN.md (bounded section).',
|
|
2252
|
+
},
|
|
2253
|
+
releasePlanPath: {
|
|
2254
|
+
type: 'string',
|
|
2255
|
+
default: 'RELEASE_PLAN.md',
|
|
2256
|
+
description: 'Path to RELEASE_PLAN.md (relative to projectPath).',
|
|
2257
|
+
},
|
|
2242
2258
|
},
|
|
2243
2259
|
required: ['operation'],
|
|
2244
2260
|
},
|
|
2245
2261
|
},
|
|
2262
|
+
{
|
|
2263
|
+
name: 'generate_adr_todo',
|
|
2264
|
+
description: 'Generate TODO.md from ADRs with comprehensive task breakdown. Decomposes each ADR into paired test+production tasks (TDD), links tasks to release milestones, and preserves manual edits via a bounded HTML-comment section. Re-runs are idempotent; tasks for deleted/superseded ADRs move to a Stale Tasks section.',
|
|
2265
|
+
inputSchema: {
|
|
2266
|
+
type: 'object',
|
|
2267
|
+
properties: {
|
|
2268
|
+
adrDirectory: {
|
|
2269
|
+
type: 'string',
|
|
2270
|
+
default: 'docs/adrs',
|
|
2271
|
+
description: 'Directory containing ADR files (relative to projectPath)',
|
|
2272
|
+
},
|
|
2273
|
+
scope: {
|
|
2274
|
+
type: 'string',
|
|
2275
|
+
enum: ['all', 'pending', 'accepted'],
|
|
2276
|
+
default: 'pending',
|
|
2277
|
+
description: 'Which ADRs to decompose: all, pending (proposed/draft), or accepted only',
|
|
2278
|
+
},
|
|
2279
|
+
projectPath: {
|
|
2280
|
+
type: 'string',
|
|
2281
|
+
description: 'Project root path (defaults to current working directory)',
|
|
2282
|
+
},
|
|
2283
|
+
todoPath: {
|
|
2284
|
+
type: 'string',
|
|
2285
|
+
default: 'TODO.md',
|
|
2286
|
+
description: 'Output TODO file (relative to projectPath)',
|
|
2287
|
+
},
|
|
2288
|
+
phase: {
|
|
2289
|
+
type: 'string',
|
|
2290
|
+
enum: ['both', 'test', 'production'],
|
|
2291
|
+
default: 'both',
|
|
2292
|
+
description: 'TDD pairing — "both" emits paired test+production tasks (default), "production" or "test" narrows output',
|
|
2293
|
+
},
|
|
2294
|
+
linkToMilestones: {
|
|
2295
|
+
type: 'boolean',
|
|
2296
|
+
default: true,
|
|
2297
|
+
description: 'Link generated tasks to release milestones (local + GitHub merged)',
|
|
2298
|
+
},
|
|
2299
|
+
dryRun: {
|
|
2300
|
+
type: 'boolean',
|
|
2301
|
+
default: false,
|
|
2302
|
+
description: 'Compute changes but do not write TODO.md (preview only)',
|
|
2303
|
+
},
|
|
2304
|
+
},
|
|
2305
|
+
required: [],
|
|
2306
|
+
},
|
|
2307
|
+
},
|
|
2246
2308
|
{
|
|
2247
2309
|
name: 'troubleshoot_guided_workflow',
|
|
2248
2310
|
description: 'Structured failure analysis and test plan generation with memory integration for troubleshooting session tracking and intelligent ADR/research suggestion capabilities - provide JSON failure info to get specific test commands',
|
|
@@ -3787,6 +3849,9 @@ export class McpAdrAnalysisServer {
|
|
|
3787
3849
|
case 'release_tracking':
|
|
3788
3850
|
response = await this.releaseTracking(safeArgs);
|
|
3789
3851
|
break;
|
|
3852
|
+
case 'generate_adr_todo':
|
|
3853
|
+
response = await this.generateAdrTodo(safeArgs);
|
|
3854
|
+
break;
|
|
3790
3855
|
case 'troubleshoot_guided_workflow':
|
|
3791
3856
|
response = await this.troubleshootGuidedWorkflow(safeArgs);
|
|
3792
3857
|
break;
|
|
@@ -7946,6 +8011,15 @@ Please provide:
|
|
|
7946
8011
|
throw new McpAdrError(`Release tracking failed: ${error instanceof Error ? error.message : String(error)}`, 'RELEASE_TRACKING_ERROR');
|
|
7947
8012
|
}
|
|
7948
8013
|
}
|
|
8014
|
+
async generateAdrTodo(args) {
|
|
8015
|
+
try {
|
|
8016
|
+
const { generateAdrTodo } = await import('./tools/generate-adr-todo-tool.js');
|
|
8017
|
+
return await generateAdrTodo(args);
|
|
8018
|
+
}
|
|
8019
|
+
catch (error) {
|
|
8020
|
+
throw new McpAdrError(`generate_adr_todo failed: ${error instanceof Error ? error.message : String(error)}`, 'GENERATE_ADR_TODO_ERROR');
|
|
8021
|
+
}
|
|
8022
|
+
}
|
|
7949
8023
|
async troubleshootGuidedWorkflow(args) {
|
|
7950
8024
|
try {
|
|
7951
8025
|
const { troubleshootGuidedWorkflow } = await import('./tools/troubleshoot-guided-workflow-tool.js');
|