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.
@@ -128,5 +128,7 @@ export declare class McpAdrAnalysisServer {
128
128
  private readFile;
129
129
  private writeFile;
130
130
  private listDirectory;
131
+ private manageTodo;
132
+ private generateDeploymentGuidance;
131
133
  }
132
134
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;GAMG;AA0EH;;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;;IAwBhD;;OAEG;YACW,qBAAqB;IAUnC;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAKlC;;OAEG;IACH,OAAO,CAAC,aAAa;IA8zCrB;;OAEG;YACW,sBAAsB;YAgGtB,mBAAmB;YAqMnB,sBAAsB;YAmQtB,uBAAuB;YAsUvB,uBAAuB;YA0PvB,mBAAmB;YA6RnB,eAAe;YAiVf,kBAAkB;IAyFhC;;OAEG;YACW,+BAA+B;IA0K7C;;OAEG;IACH,OAAO,CAAC,cAAc;IAgCtB;;OAEG;IACH,OAAO,CAAC,cAAc;IAkDtB;;OAEG;IACH,OAAO,CAAC,0BAA0B;IAyClC;;OAEG;IACH,OAAO,CAAC,+BAA+B;IAmFvC;;OAEG;YACW,sBAAsB;YAKtB,sBAAsB;YAKtB,uBAAuB;YAKvB,wBAAwB;YAKxB,sBAAsB;YAKtB,WAAW;YAkJX,sBAAsB;IAuHpC;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAazB;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAyDnC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAyF3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;IAuHpC;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAazB;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAyDnC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAyF3B;;OAEG;YACW,WAAW;YAKX,uBAAuB;YAKvB,oBAAoB;IAKlC;;OAEG;YACW,mBAAmB;YAKnB,sBAAsB;YAKtB,yBAAyB;IAKvC;;OAEG;YACW,aAAa;YAKb,aAAa;YAKb,aAAa;IAK3B;;OAEG;YACW,kBAAkB;IAKhC;;OAEG;YACW,yBAAyB;IAKvC;;OAEG;YACW,yBAAyB;IAKvC;;OAEG;YACW,kBAAkB;IAWhC;;OAEG;YACW,YAAY;IAmF1B;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAc5B;;OAEG;YACW,QAAQ;YAiCR,SAAS;YAqCT,aAAa;YAsCb,UAAU;YAYV,0BAA0B;CAWzC"}
package/dist/src/index.js CHANGED
@@ -1232,6 +1232,161 @@ export class McpAdrAnalysisServer {
1232
1232
  },
1233
1233
  required: ['path']
1234
1234
  }
1235
+ },
1236
+ {
1237
+ name: 'manage_todo',
1238
+ description: 'Manage TODO.md files with incremental updates, task status tracking, and smart merging',
1239
+ inputSchema: {
1240
+ type: 'object',
1241
+ properties: {
1242
+ operation: {
1243
+ type: 'string',
1244
+ enum: ['update_status', 'add_tasks', 'merge_adr_updates', 'sync_progress', 'analyze_progress'],
1245
+ description: 'Operation to perform on TODO.md'
1246
+ },
1247
+ todoPath: {
1248
+ type: 'string',
1249
+ default: 'todo.md',
1250
+ description: 'Path to TODO.md file'
1251
+ },
1252
+ updates: {
1253
+ type: 'array',
1254
+ items: {
1255
+ type: 'object',
1256
+ properties: {
1257
+ taskId: { type: 'string' },
1258
+ status: { type: 'string', enum: ['pending', 'in_progress', 'completed', 'blocked', 'cancelled'] },
1259
+ notes: { type: 'string' },
1260
+ assignee: { type: 'string' }
1261
+ },
1262
+ required: ['taskId', 'status']
1263
+ },
1264
+ description: 'Status updates to apply (for update_status operation)'
1265
+ },
1266
+ tasks: {
1267
+ type: 'array',
1268
+ items: {
1269
+ type: 'object',
1270
+ properties: {
1271
+ title: { type: 'string' },
1272
+ status: { type: 'string', enum: ['pending', 'in_progress', 'completed', 'blocked', 'cancelled'] },
1273
+ priority: { type: 'string', enum: ['low', 'medium', 'high', 'critical'] },
1274
+ category: { type: 'string' },
1275
+ assignee: { type: 'string' },
1276
+ notes: { type: 'string' },
1277
+ estimatedHours: { type: 'number' }
1278
+ },
1279
+ required: ['title', 'status']
1280
+ },
1281
+ description: 'New tasks to add (for add_tasks operation)'
1282
+ },
1283
+ section: {
1284
+ type: 'string',
1285
+ description: 'Section to add tasks to (for add_tasks operation)'
1286
+ },
1287
+ adrDirectory: {
1288
+ type: 'string',
1289
+ default: 'docs/adrs',
1290
+ description: 'ADR directory path (for merge_adr_updates and sync_progress operations)'
1291
+ },
1292
+ preserveCompleted: {
1293
+ type: 'boolean',
1294
+ default: true,
1295
+ description: 'Keep completed tasks during merge (for merge_adr_updates operation)'
1296
+ },
1297
+ preserveCustom: {
1298
+ type: 'boolean',
1299
+ default: true,
1300
+ description: 'Keep manually added tasks during merge (for merge_adr_updates operation)'
1301
+ },
1302
+ updateAdrs: {
1303
+ type: 'boolean',
1304
+ default: false,
1305
+ description: 'Update ADR status based on TODO progress (for sync_progress operation)'
1306
+ },
1307
+ timeframe: {
1308
+ type: 'string',
1309
+ enum: ['day', 'week', 'month', 'all'],
1310
+ default: 'week',
1311
+ description: 'Analysis timeframe (for analyze_progress operation)'
1312
+ },
1313
+ includeVelocity: {
1314
+ type: 'boolean',
1315
+ default: true,
1316
+ description: 'Include velocity metrics in analysis (for analyze_progress operation)'
1317
+ }
1318
+ },
1319
+ required: ['operation']
1320
+ }
1321
+ },
1322
+ {
1323
+ name: 'generate_deployment_guidance',
1324
+ description: 'Generate deployment guidance and instructions from ADRs with environment-specific configurations',
1325
+ inputSchema: {
1326
+ type: 'object',
1327
+ properties: {
1328
+ adrDirectory: {
1329
+ type: 'string',
1330
+ default: 'docs/adrs',
1331
+ description: 'Directory containing ADR files'
1332
+ },
1333
+ environment: {
1334
+ type: 'string',
1335
+ enum: ['development', 'staging', 'production', 'all'],
1336
+ default: 'production',
1337
+ description: 'Target deployment environment'
1338
+ },
1339
+ format: {
1340
+ type: 'string',
1341
+ enum: ['markdown', 'scripts', 'structured', 'all'],
1342
+ default: 'markdown',
1343
+ description: 'Output format for guidance'
1344
+ },
1345
+ projectPath: {
1346
+ type: 'string',
1347
+ description: 'Project root path (optional, uses configured PROJECT_PATH if not provided)'
1348
+ },
1349
+ includeScripts: {
1350
+ type: 'boolean',
1351
+ default: true,
1352
+ description: 'Generate deployment scripts'
1353
+ },
1354
+ includeConfigs: {
1355
+ type: 'boolean',
1356
+ default: true,
1357
+ description: 'Generate configuration files'
1358
+ },
1359
+ includeValidation: {
1360
+ type: 'boolean',
1361
+ default: true,
1362
+ description: 'Include validation and health checks'
1363
+ },
1364
+ technologyFilter: {
1365
+ type: 'array',
1366
+ items: {
1367
+ type: 'string',
1368
+ enum: ['containerization', 'database', 'web-server', 'cache', 'message-queue', 'monitoring', 'security', 'ci-cd', 'infrastructure']
1369
+ },
1370
+ description: 'Filter by specific technology categories'
1371
+ },
1372
+ customRequirements: {
1373
+ type: 'array',
1374
+ items: { type: 'string' },
1375
+ description: 'Additional custom requirements'
1376
+ },
1377
+ includeRollback: {
1378
+ type: 'boolean',
1379
+ default: true,
1380
+ description: 'Include rollback procedures'
1381
+ },
1382
+ generateFiles: {
1383
+ type: 'boolean',
1384
+ default: false,
1385
+ description: 'Actually generate files (vs just guidance)'
1386
+ }
1387
+ },
1388
+ required: []
1389
+ }
1235
1390
  }
1236
1391
  ]
1237
1392
  };
@@ -1332,6 +1487,12 @@ export class McpAdrAnalysisServer {
1332
1487
  case 'list_directory':
1333
1488
  response = await this.listDirectory(args);
1334
1489
  break;
1490
+ case 'manage_todo':
1491
+ response = await this.manageTodo(args);
1492
+ break;
1493
+ case 'generate_deployment_guidance':
1494
+ response = await this.generateDeploymentGuidance(args);
1495
+ break;
1335
1496
  default:
1336
1497
  throw new McpAdrError(`Unknown tool: ${name}`, 'UNKNOWN_TOOL');
1337
1498
  }
@@ -4107,6 +4268,24 @@ Please provide:
4107
4268
  throw new McpAdrError(`Failed to list directory: ${error instanceof Error ? error.message : String(error)}`, 'DIRECTORY_LIST_ERROR');
4108
4269
  }
4109
4270
  }
4271
+ async manageTodo(args) {
4272
+ try {
4273
+ const { manageTodo } = await import('./tools/todo-management-tool.js');
4274
+ return await manageTodo(args);
4275
+ }
4276
+ catch (error) {
4277
+ throw new McpAdrError(`TODO management failed: ${error instanceof Error ? error.message : String(error)}`, 'TODO_MANAGEMENT_ERROR');
4278
+ }
4279
+ }
4280
+ async generateDeploymentGuidance(args) {
4281
+ try {
4282
+ const { generateDeploymentGuidance } = await import('./tools/deployment-guidance-tool.js');
4283
+ return await generateDeploymentGuidance(args);
4284
+ }
4285
+ catch (error) {
4286
+ throw new McpAdrError(`Deployment guidance generation failed: ${error instanceof Error ? error.message : String(error)}`, 'DEPLOYMENT_GUIDANCE_ERROR');
4287
+ }
4288
+ }
4110
4289
  }
4111
4290
  /**
4112
4291
  * Main execution