mcp-adr-analysis-server 2.4.1 → 2.5.1

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.
@@ -217,6 +217,7 @@ export declare class McpAdrAnalysisServer {
217
217
  private generateDeploymentGuidance;
218
218
  private smartGitPush;
219
219
  private deploymentReadiness;
220
+ private releaseTracking;
220
221
  private troubleshootGuidedWorkflow;
221
222
  private smartScore;
222
223
  private mcpPlanning;
@@ -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;IA6mIrB;;OAEG;YACW,sBAAsB;YA8GtB,mBAAmB;YAqMnB,sBAAsB;YA+QtB,uBAAuB;YA+bvB,uBAAuB;YAuQvB,mBAAmB;YA2VnB,kBAAkB;IAmIhC;;OAEG;YACW,4BAA4B;IA+F1C;;OAEG;YACW,+BAA+B;IAuO7C;;OAEG;IACH,OAAO,CAAC,cAAc;IAmCtB;;OAEG;IACH,OAAO,CAAC,cAAc;IAqHtB;;OAEG;IACH,OAAO,CAAC,0BAA0B;IAiDlC;;OAEG;IACH,OAAO,CAAC,+BAA+B;IA+FvC;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B;;OAEG;YACW,aAAa;YA+Cb,QAAQ;YAuCR,SAAS;YAqCT,aAAa;YAsCb,0BAA0B;YAY1B,YAAY;YAYZ,mBAAmB;YAYnB,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
@@ -2140,6 +2140,109 @@ export class McpAdrAnalysisServer {
2140
2140
  required: ['operation'],
2141
2141
  },
2142
2142
  },
2143
+ {
2144
+ name: 'release_tracking',
2145
+ description: 'Track releases mapped to ADR decisions. Generates changelogs, manages milestones, compares releases, and assesses release readiness. Supports greenfield and brownfield projects. Writes CHANGELOG.md, creates GitHub Releases and Milestones.',
2146
+ inputSchema: {
2147
+ type: 'object',
2148
+ properties: {
2149
+ operation: {
2150
+ type: 'string',
2151
+ enum: [
2152
+ 'detect_releases',
2153
+ 'track_release',
2154
+ 'generate_changelog',
2155
+ 'compare_releases',
2156
+ 'release_summary',
2157
+ 'next_release_preview',
2158
+ 'create_milestone',
2159
+ 'sync_milestones',
2160
+ ],
2161
+ description: 'Operation to perform',
2162
+ },
2163
+ projectPath: {
2164
+ type: 'string',
2165
+ description: 'Project root path (defaults to current working directory)',
2166
+ },
2167
+ version: {
2168
+ type: 'string',
2169
+ description: 'Release version to track (e.g., v2.3.0)',
2170
+ },
2171
+ compareFrom: {
2172
+ type: 'string',
2173
+ description: 'Starting version for comparison',
2174
+ },
2175
+ compareTo: {
2176
+ type: 'string',
2177
+ description: 'Ending version for comparison',
2178
+ },
2179
+ format: {
2180
+ type: 'string',
2181
+ enum: ['markdown', 'keep-a-changelog', 'conventional'],
2182
+ default: 'keep-a-changelog',
2183
+ description: 'Changelog output format',
2184
+ },
2185
+ includeAdrLinks: {
2186
+ type: 'boolean',
2187
+ default: true,
2188
+ description: 'Include ADR references in changelog',
2189
+ },
2190
+ includeCommitHashes: {
2191
+ type: 'boolean',
2192
+ default: false,
2193
+ description: 'Include commit hashes in output',
2194
+ },
2195
+ groupByAdr: {
2196
+ type: 'boolean',
2197
+ default: false,
2198
+ description: 'Group changelog entries by ADR',
2199
+ },
2200
+ writeToFile: {
2201
+ type: 'boolean',
2202
+ default: false,
2203
+ description: 'Write CHANGELOG.md to repo',
2204
+ },
2205
+ includeReadiness: {
2206
+ type: 'boolean',
2207
+ default: true,
2208
+ description: 'Include release readiness score',
2209
+ },
2210
+ includeTimeline: {
2211
+ type: 'boolean',
2212
+ default: true,
2213
+ description: 'Include mermaid timeline diagram',
2214
+ },
2215
+ milestoneTitle: {
2216
+ type: 'string',
2217
+ description: 'GitHub milestone title (for create_milestone)',
2218
+ },
2219
+ milestoneDescription: {
2220
+ type: 'string',
2221
+ description: 'GitHub milestone description',
2222
+ },
2223
+ milestoneDueDate: {
2224
+ type: 'string',
2225
+ description: 'Milestone due date (YYYY-MM-DD)',
2226
+ },
2227
+ createGithubRelease: {
2228
+ type: 'boolean',
2229
+ default: false,
2230
+ description: 'Create a GitHub Release (requires gh CLI)',
2231
+ },
2232
+ syncGithubMilestones: {
2233
+ type: 'boolean',
2234
+ default: false,
2235
+ description: 'Sync milestones to GitHub (requires gh CLI)',
2236
+ },
2237
+ updateTodo: {
2238
+ type: 'boolean',
2239
+ default: false,
2240
+ description: 'Update TODO.md with milestone status',
2241
+ },
2242
+ },
2243
+ required: ['operation'],
2244
+ },
2245
+ },
2143
2246
  {
2144
2247
  name: 'troubleshoot_guided_workflow',
2145
2248
  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',
@@ -3681,6 +3784,9 @@ export class McpAdrAnalysisServer {
3681
3784
  case 'deployment_readiness':
3682
3785
  response = await this.deploymentReadiness(safeArgs);
3683
3786
  break;
3787
+ case 'release_tracking':
3788
+ response = await this.releaseTracking(safeArgs);
3789
+ break;
3684
3790
  case 'troubleshoot_guided_workflow':
3685
3791
  response = await this.troubleshootGuidedWorkflow(safeArgs);
3686
3792
  break;
@@ -3962,6 +4068,12 @@ export class McpAdrAnalysisServer {
3962
4068
  description: 'Historical deployment data with trends, failure analysis, and patterns. Supports query parameters: ?period=7d|30d|90d|1y|all, ?environment=production|staging|development|all, ?includeFailures=true|false, ?includeMetrics=true|false, ?format=summary|detailed',
3963
4069
  mimeType: 'application/json',
3964
4070
  },
4071
+ {
4072
+ uri: 'adr://release_history',
4073
+ name: 'Release History',
4074
+ description: 'Release tracking state with releases mapped to ADRs, milestones, and project metadata. Shows release timeline, ADR-to-release mappings with confidence scores, and unmapped ADRs.',
4075
+ mimeType: 'application/json',
4076
+ },
3965
4077
  {
3966
4078
  uri: 'adr://code_quality',
3967
4079
  name: 'Code Quality',
@@ -7562,6 +7674,25 @@ Please provide:
7562
7674
  },
7563
7675
  };
7564
7676
  }
7677
+ case 'release_history': {
7678
+ const { generateReleaseHistoryResource } = await import('./resources/release-history-resource.js');
7679
+ const releaseProjectPath = process.env['PROJECT_PATH'] || process.cwd();
7680
+ const result = await generateReleaseHistoryResource(releaseProjectPath, url.searchParams);
7681
+ return {
7682
+ contents: [
7683
+ {
7684
+ uri,
7685
+ mimeType: result.contentType,
7686
+ text: JSON.stringify(result.data, null, 2),
7687
+ },
7688
+ ],
7689
+ _meta: {
7690
+ lastModified: result.lastModified,
7691
+ etag: result.etag,
7692
+ cacheKey: result.cacheKey,
7693
+ },
7694
+ };
7695
+ }
7565
7696
  case 'code_quality': {
7566
7697
  const { generateCodeQualityResource } = await import('./resources/code-quality-resource.js');
7567
7698
  const result = await generateCodeQualityResource(undefined, url.searchParams);
@@ -7806,6 +7937,15 @@ Please provide:
7806
7937
  throw new McpAdrError(`Deployment readiness check failed: ${error instanceof Error ? error.message : String(error)}`, 'DEPLOYMENT_READINESS_ERROR');
7807
7938
  }
7808
7939
  }
7940
+ async releaseTracking(args) {
7941
+ try {
7942
+ const { releaseTracking } = await import('./tools/release-tracking-tool.js');
7943
+ return await releaseTracking(args);
7944
+ }
7945
+ catch (error) {
7946
+ throw new McpAdrError(`Release tracking failed: ${error instanceof Error ? error.message : String(error)}`, 'RELEASE_TRACKING_ERROR');
7947
+ }
7948
+ }
7809
7949
  async troubleshootGuidedWorkflow(args) {
7810
7950
  try {
7811
7951
  const { troubleshootGuidedWorkflow } = await import('./tools/troubleshoot-guided-workflow-tool.js');