mcp-adr-analysis-server 2.0.5 → 2.0.7
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/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +249 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/tools/deployment-guidance-tool.d.ts +21 -0
- package/dist/src/tools/deployment-guidance-tool.d.ts.map +1 -0
- package/dist/src/tools/deployment-guidance-tool.js +289 -0
- package/dist/src/tools/deployment-guidance-tool.js.map +1 -0
- package/dist/src/tools/smart-git-push-tool.d.ts +24 -0
- package/dist/src/tools/smart-git-push-tool.d.ts.map +1 -0
- package/dist/src/tools/smart-git-push-tool.js +526 -0
- package/dist/src/tools/smart-git-push-tool.js.map +1 -0
- package/dist/src/tools/todo-management-tool.d.ts +166 -0
- package/dist/src/tools/todo-management-tool.d.ts.map +1 -0
- package/dist/src/tools/todo-management-tool.js +472 -0
- package/dist/src/tools/todo-management-tool.js.map +1 -0
- package/dist/src/utils/enhanced-sensitive-detector.d.ts +61 -0
- package/dist/src/utils/enhanced-sensitive-detector.d.ts.map +1 -0
- package/dist/src/utils/enhanced-sensitive-detector.js +437 -0
- package/dist/src/utils/enhanced-sensitive-detector.js.map +1 -0
- package/dist/src/utils/interactive-approval.d.ts +63 -0
- package/dist/src/utils/interactive-approval.d.ts.map +1 -0
- package/dist/src/utils/interactive-approval.js +441 -0
- package/dist/src/utils/interactive-approval.js.map +1 -0
- package/dist/src/utils/llm-artifact-detector.d.ts +76 -0
- package/dist/src/utils/llm-artifact-detector.d.ts.map +1 -0
- package/dist/src/utils/llm-artifact-detector.js +422 -0
- package/dist/src/utils/llm-artifact-detector.js.map +1 -0
- package/dist/src/utils/location-filter.d.ts +79 -0
- package/dist/src/utils/location-filter.d.ts.map +1 -0
- package/dist/src/utils/location-filter.js +327 -0
- package/dist/src/utils/location-filter.js.map +1 -0
- package/dist/src/utils/release-readiness-detector.d.ts +47 -0
- package/dist/src/utils/release-readiness-detector.d.ts.map +1 -0
- package/dist/src/utils/release-readiness-detector.js +413 -0
- package/dist/src/utils/release-readiness-detector.js.map +1 -0
- 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;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;
|
|
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;IA4hDrB;;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;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;YAY1B,YAAY;CAW3B"}
|
package/dist/src/index.js
CHANGED
|
@@ -1232,6 +1232,219 @@ 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
|
+
}
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
name: 'smart_git_push',
|
|
1393
|
+
description: 'Intelligent git push with sensitive content filtering, LLM artifact detection, and release readiness analysis',
|
|
1394
|
+
inputSchema: {
|
|
1395
|
+
type: 'object',
|
|
1396
|
+
properties: {
|
|
1397
|
+
branch: {
|
|
1398
|
+
type: 'string',
|
|
1399
|
+
description: 'Target branch for push (optional, uses current branch if not specified)'
|
|
1400
|
+
},
|
|
1401
|
+
message: {
|
|
1402
|
+
type: 'string',
|
|
1403
|
+
description: 'Commit message (optional, commits staged files if provided)'
|
|
1404
|
+
},
|
|
1405
|
+
skipValidation: {
|
|
1406
|
+
type: 'boolean',
|
|
1407
|
+
default: false,
|
|
1408
|
+
description: 'Skip content validation'
|
|
1409
|
+
},
|
|
1410
|
+
allowedArtifacts: {
|
|
1411
|
+
type: 'array',
|
|
1412
|
+
items: { type: 'string' },
|
|
1413
|
+
description: 'Files to allow despite being flagged as artifacts'
|
|
1414
|
+
},
|
|
1415
|
+
sensitivityLevel: {
|
|
1416
|
+
type: 'string',
|
|
1417
|
+
enum: ['strict', 'moderate', 'permissive'],
|
|
1418
|
+
default: 'moderate',
|
|
1419
|
+
description: 'Sensitivity level for content detection'
|
|
1420
|
+
},
|
|
1421
|
+
interactiveMode: {
|
|
1422
|
+
type: 'boolean',
|
|
1423
|
+
default: true,
|
|
1424
|
+
description: 'Enable interactive approval workflow'
|
|
1425
|
+
},
|
|
1426
|
+
dryRun: {
|
|
1427
|
+
type: 'boolean',
|
|
1428
|
+
default: false,
|
|
1429
|
+
description: 'Show what would be pushed without actually pushing'
|
|
1430
|
+
},
|
|
1431
|
+
projectPath: {
|
|
1432
|
+
type: 'string',
|
|
1433
|
+
description: 'Path to project directory (defaults to current working directory)'
|
|
1434
|
+
},
|
|
1435
|
+
checkReleaseReadiness: {
|
|
1436
|
+
type: 'boolean',
|
|
1437
|
+
default: false,
|
|
1438
|
+
description: 'Analyze TODO.md and project state to determine if ready for release'
|
|
1439
|
+
},
|
|
1440
|
+
releaseType: {
|
|
1441
|
+
type: 'string',
|
|
1442
|
+
enum: ['major', 'minor', 'patch'],
|
|
1443
|
+
default: 'minor',
|
|
1444
|
+
description: 'Type of release to check readiness for'
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1235
1448
|
}
|
|
1236
1449
|
]
|
|
1237
1450
|
};
|
|
@@ -1332,6 +1545,15 @@ export class McpAdrAnalysisServer {
|
|
|
1332
1545
|
case 'list_directory':
|
|
1333
1546
|
response = await this.listDirectory(args);
|
|
1334
1547
|
break;
|
|
1548
|
+
case 'manage_todo':
|
|
1549
|
+
response = await this.manageTodo(args);
|
|
1550
|
+
break;
|
|
1551
|
+
case 'generate_deployment_guidance':
|
|
1552
|
+
response = await this.generateDeploymentGuidance(args);
|
|
1553
|
+
break;
|
|
1554
|
+
case 'smart_git_push':
|
|
1555
|
+
response = await this.smartGitPush(args);
|
|
1556
|
+
break;
|
|
1335
1557
|
default:
|
|
1336
1558
|
throw new McpAdrError(`Unknown tool: ${name}`, 'UNKNOWN_TOOL');
|
|
1337
1559
|
}
|
|
@@ -4107,6 +4329,33 @@ Please provide:
|
|
|
4107
4329
|
throw new McpAdrError(`Failed to list directory: ${error instanceof Error ? error.message : String(error)}`, 'DIRECTORY_LIST_ERROR');
|
|
4108
4330
|
}
|
|
4109
4331
|
}
|
|
4332
|
+
async manageTodo(args) {
|
|
4333
|
+
try {
|
|
4334
|
+
const { manageTodo } = await import('./tools/todo-management-tool.js');
|
|
4335
|
+
return await manageTodo(args);
|
|
4336
|
+
}
|
|
4337
|
+
catch (error) {
|
|
4338
|
+
throw new McpAdrError(`TODO management failed: ${error instanceof Error ? error.message : String(error)}`, 'TODO_MANAGEMENT_ERROR');
|
|
4339
|
+
}
|
|
4340
|
+
}
|
|
4341
|
+
async generateDeploymentGuidance(args) {
|
|
4342
|
+
try {
|
|
4343
|
+
const { generateDeploymentGuidance } = await import('./tools/deployment-guidance-tool.js');
|
|
4344
|
+
return await generateDeploymentGuidance(args);
|
|
4345
|
+
}
|
|
4346
|
+
catch (error) {
|
|
4347
|
+
throw new McpAdrError(`Deployment guidance generation failed: ${error instanceof Error ? error.message : String(error)}`, 'DEPLOYMENT_GUIDANCE_ERROR');
|
|
4348
|
+
}
|
|
4349
|
+
}
|
|
4350
|
+
async smartGitPush(args) {
|
|
4351
|
+
try {
|
|
4352
|
+
const { smartGitPush } = await import('./tools/smart-git-push-tool.js');
|
|
4353
|
+
return await smartGitPush(args);
|
|
4354
|
+
}
|
|
4355
|
+
catch (error) {
|
|
4356
|
+
throw new McpAdrError(`Smart git push failed: ${error instanceof Error ? error.message : String(error)}`, 'SMART_GIT_PUSH_ERROR');
|
|
4357
|
+
}
|
|
4358
|
+
}
|
|
4110
4359
|
}
|
|
4111
4360
|
/**
|
|
4112
4361
|
* Main execution
|