mcp-adr-analysis-server 2.1.22 → 2.1.28
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 +63 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +370 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/tools/adr-aggregator-tools.d.ts +185 -0
- package/dist/src/tools/adr-aggregator-tools.d.ts.map +1 -0
- package/dist/src/tools/adr-aggregator-tools.js +872 -0
- package/dist/src/tools/adr-aggregator-tools.js.map +1 -0
- package/dist/src/tools/analyze-gaps-tool.d.ts +57 -0
- package/dist/src/tools/analyze-gaps-tool.d.ts.map +1 -0
- package/dist/src/tools/analyze-gaps-tool.js +727 -0
- package/dist/src/tools/analyze-gaps-tool.js.map +1 -0
- package/dist/src/tools/tool-catalog.d.ts +1 -1
- package/dist/src/tools/tool-catalog.d.ts.map +1 -1
- package/dist/src/tools/tool-catalog.js +382 -0
- package/dist/src/tools/tool-catalog.js.map +1 -1
- package/dist/src/tools/tool-dispatcher.d.ts.map +1 -1
- package/dist/src/tools/tool-dispatcher.js +4 -0
- package/dist/src/tools/tool-dispatcher.js.map +1 -1
- package/dist/src/types/adr-aggregator.d.ts +692 -0
- package/dist/src/types/adr-aggregator.d.ts.map +1 -0
- package/dist/src/types/adr-aggregator.js +8 -0
- package/dist/src/types/adr-aggregator.js.map +1 -0
- package/dist/src/types/index.d.ts +3 -2
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/memory-entities.d.ts +48 -48
- package/dist/src/utils/adr-aggregator-client.d.ts +177 -0
- package/dist/src/utils/adr-aggregator-client.d.ts.map +1 -0
- package/dist/src/utils/adr-aggregator-client.js +396 -0
- package/dist/src/utils/adr-aggregator-client.js.map +1 -0
- package/dist/src/utils/config.d.ts +3 -0
- package/dist/src/utils/config.d.ts.map +1 -1
- package/dist/src/utils/config.js +13 -0
- package/dist/src/utils/config.js.map +1 -1
- package/dist/src/utils/git-remote-detector.d.ts +67 -0
- package/dist/src/utils/git-remote-detector.d.ts.map +1 -0
- package/dist/src/utils/git-remote-detector.js +194 -0
- package/dist/src/utils/git-remote-detector.js.map +1 -0
- package/package.json +3 -3
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":"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"}
|
package/dist/src/index.js
CHANGED
|
@@ -3148,6 +3148,318 @@ export class McpAdrAnalysisServer {
|
|
|
3148
3148
|
required: ['promptName'],
|
|
3149
3149
|
},
|
|
3150
3150
|
},
|
|
3151
|
+
// ADR Aggregator Integration Tools (https://adraggregator.com)
|
|
3152
|
+
{
|
|
3153
|
+
name: 'sync_to_aggregator',
|
|
3154
|
+
description: 'Sync ADRs to ADR Aggregator platform (https://adraggregator.com) for centralized tracking, visualization, and team collaboration. Supports incremental and full sync modes with optional metadata.',
|
|
3155
|
+
inputSchema: {
|
|
3156
|
+
type: 'object',
|
|
3157
|
+
properties: {
|
|
3158
|
+
full_sync: {
|
|
3159
|
+
type: 'boolean',
|
|
3160
|
+
description: 'Replace all ADRs instead of incremental sync',
|
|
3161
|
+
default: false,
|
|
3162
|
+
},
|
|
3163
|
+
include_metadata: {
|
|
3164
|
+
type: 'boolean',
|
|
3165
|
+
description: 'Include analysis metadata in sync',
|
|
3166
|
+
default: true,
|
|
3167
|
+
},
|
|
3168
|
+
include_diagrams: {
|
|
3169
|
+
type: 'boolean',
|
|
3170
|
+
description: 'Include Mermaid diagrams (Pro+ tier)',
|
|
3171
|
+
default: false,
|
|
3172
|
+
},
|
|
3173
|
+
include_timeline: {
|
|
3174
|
+
type: 'boolean',
|
|
3175
|
+
description: 'Include timeline/staleness data',
|
|
3176
|
+
default: false,
|
|
3177
|
+
},
|
|
3178
|
+
include_security_scan: {
|
|
3179
|
+
type: 'boolean',
|
|
3180
|
+
description: 'Include security scan results',
|
|
3181
|
+
default: false,
|
|
3182
|
+
},
|
|
3183
|
+
include_code_links: {
|
|
3184
|
+
type: 'boolean',
|
|
3185
|
+
description: 'Include AST-based code links (Pro+ tier)',
|
|
3186
|
+
default: false,
|
|
3187
|
+
},
|
|
3188
|
+
adr_paths: {
|
|
3189
|
+
type: 'array',
|
|
3190
|
+
items: { type: 'string' },
|
|
3191
|
+
description: 'Specific ADR paths to sync (syncs all if not provided)',
|
|
3192
|
+
},
|
|
3193
|
+
projectPath: {
|
|
3194
|
+
type: 'string',
|
|
3195
|
+
description: 'Project path (defaults to PROJECT_PATH)',
|
|
3196
|
+
},
|
|
3197
|
+
},
|
|
3198
|
+
},
|
|
3199
|
+
},
|
|
3200
|
+
{
|
|
3201
|
+
name: 'get_adr_context',
|
|
3202
|
+
description: 'Fetch ADR context from ADR Aggregator including summaries, diagrams, timeline data, and code links. Useful for getting a consolidated view of architectural decisions.',
|
|
3203
|
+
inputSchema: {
|
|
3204
|
+
type: 'object',
|
|
3205
|
+
properties: {
|
|
3206
|
+
include_diagrams: {
|
|
3207
|
+
type: 'boolean',
|
|
3208
|
+
description: 'Include Mermaid diagrams (Pro+ tier)',
|
|
3209
|
+
default: false,
|
|
3210
|
+
},
|
|
3211
|
+
include_timeline: {
|
|
3212
|
+
type: 'boolean',
|
|
3213
|
+
description: 'Include timeline data',
|
|
3214
|
+
default: true,
|
|
3215
|
+
},
|
|
3216
|
+
include_code_links: {
|
|
3217
|
+
type: 'boolean',
|
|
3218
|
+
description: 'Include code links (Pro+ tier)',
|
|
3219
|
+
default: false,
|
|
3220
|
+
},
|
|
3221
|
+
include_research: {
|
|
3222
|
+
type: 'boolean',
|
|
3223
|
+
description: 'Include research context (Pro+ tier)',
|
|
3224
|
+
default: false,
|
|
3225
|
+
},
|
|
3226
|
+
staleness_filter: {
|
|
3227
|
+
type: 'string',
|
|
3228
|
+
enum: ['all', 'fresh', 'stale', 'very_stale'],
|
|
3229
|
+
description: 'Filter by staleness level',
|
|
3230
|
+
default: 'all',
|
|
3231
|
+
},
|
|
3232
|
+
graph_depth: {
|
|
3233
|
+
type: 'number',
|
|
3234
|
+
description: 'Knowledge graph depth (Team tier)',
|
|
3235
|
+
minimum: 1,
|
|
3236
|
+
maximum: 5,
|
|
3237
|
+
},
|
|
3238
|
+
projectPath: {
|
|
3239
|
+
type: 'string',
|
|
3240
|
+
description: 'Project path (defaults to PROJECT_PATH)',
|
|
3241
|
+
},
|
|
3242
|
+
},
|
|
3243
|
+
},
|
|
3244
|
+
},
|
|
3245
|
+
{
|
|
3246
|
+
name: 'get_staleness_report',
|
|
3247
|
+
description: 'Get ADR staleness report from ADR Aggregator with review compliance metrics. Identifies stale ADRs that need attention and provides governance insights.',
|
|
3248
|
+
inputSchema: {
|
|
3249
|
+
type: 'object',
|
|
3250
|
+
properties: {
|
|
3251
|
+
threshold: {
|
|
3252
|
+
type: 'number',
|
|
3253
|
+
description: 'Days threshold for staleness',
|
|
3254
|
+
default: 90,
|
|
3255
|
+
},
|
|
3256
|
+
projectPath: {
|
|
3257
|
+
type: 'string',
|
|
3258
|
+
description: 'Project path (defaults to PROJECT_PATH)',
|
|
3259
|
+
},
|
|
3260
|
+
},
|
|
3261
|
+
},
|
|
3262
|
+
},
|
|
3263
|
+
{
|
|
3264
|
+
name: 'get_adr_templates',
|
|
3265
|
+
description: 'Get domain-specific ADR templates and anti-patterns from ADR Aggregator. Includes best practices for web applications, microservices, APIs, and more. No authentication required.',
|
|
3266
|
+
inputSchema: {
|
|
3267
|
+
type: 'object',
|
|
3268
|
+
properties: {
|
|
3269
|
+
domain: {
|
|
3270
|
+
type: 'string',
|
|
3271
|
+
description: 'Domain filter (web_application, microservices, api, data_platform, etc.)',
|
|
3272
|
+
},
|
|
3273
|
+
},
|
|
3274
|
+
},
|
|
3275
|
+
},
|
|
3276
|
+
{
|
|
3277
|
+
name: 'get_adr_diagrams',
|
|
3278
|
+
description: 'Get Mermaid diagrams for ADRs from ADR Aggregator. Includes workflow, relationship, and impact diagrams. Requires Pro+ tier.',
|
|
3279
|
+
inputSchema: {
|
|
3280
|
+
type: 'object',
|
|
3281
|
+
properties: {
|
|
3282
|
+
adr_path: {
|
|
3283
|
+
type: 'string',
|
|
3284
|
+
description: 'Specific ADR path (returns all if not specified)',
|
|
3285
|
+
},
|
|
3286
|
+
projectPath: {
|
|
3287
|
+
type: 'string',
|
|
3288
|
+
description: 'Project path (defaults to PROJECT_PATH)',
|
|
3289
|
+
},
|
|
3290
|
+
},
|
|
3291
|
+
},
|
|
3292
|
+
},
|
|
3293
|
+
{
|
|
3294
|
+
name: 'validate_adr_compliance',
|
|
3295
|
+
description: 'Validate ADR compliance against implementation via ADR Aggregator. Checks that code actually implements documented decisions. Requires Pro+ tier.',
|
|
3296
|
+
inputSchema: {
|
|
3297
|
+
type: 'object',
|
|
3298
|
+
properties: {
|
|
3299
|
+
adr_paths: {
|
|
3300
|
+
type: 'array',
|
|
3301
|
+
items: { type: 'string' },
|
|
3302
|
+
description: 'Specific ADR paths to validate',
|
|
3303
|
+
},
|
|
3304
|
+
validation_type: {
|
|
3305
|
+
type: 'string',
|
|
3306
|
+
enum: ['implementation', 'architecture', 'security', 'all'],
|
|
3307
|
+
description: 'Type of validation to perform',
|
|
3308
|
+
default: 'all',
|
|
3309
|
+
},
|
|
3310
|
+
projectPath: {
|
|
3311
|
+
type: 'string',
|
|
3312
|
+
description: 'Project path (defaults to PROJECT_PATH)',
|
|
3313
|
+
},
|
|
3314
|
+
},
|
|
3315
|
+
},
|
|
3316
|
+
},
|
|
3317
|
+
{
|
|
3318
|
+
name: 'get_knowledge_graph',
|
|
3319
|
+
description: 'Get cross-repository knowledge graph from ADR Aggregator with analytics and insights. Visualize ADR relationships across repositories. Requires Team tier.',
|
|
3320
|
+
inputSchema: {
|
|
3321
|
+
type: 'object',
|
|
3322
|
+
properties: {
|
|
3323
|
+
scope: {
|
|
3324
|
+
type: 'string',
|
|
3325
|
+
enum: ['repository', 'organization'],
|
|
3326
|
+
description: 'Scope of the graph',
|
|
3327
|
+
default: 'repository',
|
|
3328
|
+
},
|
|
3329
|
+
include_analytics: {
|
|
3330
|
+
type: 'boolean',
|
|
3331
|
+
description: 'Include graph analytics and insights',
|
|
3332
|
+
default: true,
|
|
3333
|
+
},
|
|
3334
|
+
projectPath: {
|
|
3335
|
+
type: 'string',
|
|
3336
|
+
description: 'Project path (defaults to PROJECT_PATH)',
|
|
3337
|
+
},
|
|
3338
|
+
},
|
|
3339
|
+
},
|
|
3340
|
+
},
|
|
3341
|
+
{
|
|
3342
|
+
name: 'update_implementation_status',
|
|
3343
|
+
description: 'Update the implementation status of synced ADRs directly from the IDE. Supports statuses: not_started, in_progress, implemented, deprecated, blocked. Requires Pro+ tier.',
|
|
3344
|
+
inputSchema: {
|
|
3345
|
+
type: 'object',
|
|
3346
|
+
properties: {
|
|
3347
|
+
updates: {
|
|
3348
|
+
type: 'array',
|
|
3349
|
+
items: {
|
|
3350
|
+
type: 'object',
|
|
3351
|
+
properties: {
|
|
3352
|
+
adr_path: {
|
|
3353
|
+
type: 'string',
|
|
3354
|
+
description: 'Path to the ADR file relative to project root',
|
|
3355
|
+
},
|
|
3356
|
+
implementation_status: {
|
|
3357
|
+
type: 'string',
|
|
3358
|
+
enum: [
|
|
3359
|
+
'not_started',
|
|
3360
|
+
'in_progress',
|
|
3361
|
+
'implemented',
|
|
3362
|
+
'deprecated',
|
|
3363
|
+
'blocked',
|
|
3364
|
+
],
|
|
3365
|
+
description: 'New implementation status',
|
|
3366
|
+
},
|
|
3367
|
+
notes: {
|
|
3368
|
+
type: 'string',
|
|
3369
|
+
description: 'Optional notes about the status change',
|
|
3370
|
+
},
|
|
3371
|
+
},
|
|
3372
|
+
required: ['adr_path', 'implementation_status'],
|
|
3373
|
+
},
|
|
3374
|
+
description: 'Array of ADR status updates to apply',
|
|
3375
|
+
},
|
|
3376
|
+
projectPath: {
|
|
3377
|
+
type: 'string',
|
|
3378
|
+
description: 'Project path (defaults to PROJECT_PATH)',
|
|
3379
|
+
},
|
|
3380
|
+
},
|
|
3381
|
+
required: ['updates'],
|
|
3382
|
+
},
|
|
3383
|
+
},
|
|
3384
|
+
{
|
|
3385
|
+
name: 'get_adr_priorities',
|
|
3386
|
+
description: 'Get ADR priorities for roadmap and backlog planning from ADR Aggregator. Returns prioritized ADRs with scores, dependencies, blockers, implementation status, and gap counts.',
|
|
3387
|
+
inputSchema: {
|
|
3388
|
+
type: 'object',
|
|
3389
|
+
properties: {
|
|
3390
|
+
include_ai: {
|
|
3391
|
+
type: 'boolean',
|
|
3392
|
+
description: 'Include AI-based priority recommendations',
|
|
3393
|
+
default: false,
|
|
3394
|
+
},
|
|
3395
|
+
projectPath: {
|
|
3396
|
+
type: 'string',
|
|
3397
|
+
description: 'Project path (defaults to PROJECT_PATH)',
|
|
3398
|
+
},
|
|
3399
|
+
},
|
|
3400
|
+
},
|
|
3401
|
+
},
|
|
3402
|
+
{
|
|
3403
|
+
name: 'analyze_gaps',
|
|
3404
|
+
description: 'Scan local codebase and compare with ADRs to detect bi-directional gaps. Finds: (1) ADR-to-code gaps: file references in ADRs that do not exist, (2) Code-to-ADR gaps: technologies in package.json and architectural patterns without ADR coverage. Reports gaps to ADR Aggregator for tracking.',
|
|
3405
|
+
inputSchema: {
|
|
3406
|
+
type: 'object',
|
|
3407
|
+
properties: {
|
|
3408
|
+
projectPath: {
|
|
3409
|
+
type: 'string',
|
|
3410
|
+
description: 'Project path (defaults to PROJECT_PATH)',
|
|
3411
|
+
},
|
|
3412
|
+
reportToAggregator: {
|
|
3413
|
+
type: 'boolean',
|
|
3414
|
+
description: 'Whether to report gaps to ADR Aggregator',
|
|
3415
|
+
default: true,
|
|
3416
|
+
},
|
|
3417
|
+
includeDismissed: {
|
|
3418
|
+
type: 'boolean',
|
|
3419
|
+
description: 'Include previously dismissed gaps in analysis',
|
|
3420
|
+
default: false,
|
|
3421
|
+
},
|
|
3422
|
+
scanDirectories: {
|
|
3423
|
+
type: 'array',
|
|
3424
|
+
items: { type: 'string' },
|
|
3425
|
+
description: 'Specific directories to scan (defaults to src, lib, app, packages)',
|
|
3426
|
+
},
|
|
3427
|
+
includePatterns: {
|
|
3428
|
+
type: 'array',
|
|
3429
|
+
items: { type: 'string' },
|
|
3430
|
+
description: 'File patterns to include in scan (regex)',
|
|
3431
|
+
},
|
|
3432
|
+
excludePatterns: {
|
|
3433
|
+
type: 'array',
|
|
3434
|
+
items: { type: 'string' },
|
|
3435
|
+
description: 'File patterns to exclude from scan (regex)',
|
|
3436
|
+
},
|
|
3437
|
+
},
|
|
3438
|
+
},
|
|
3439
|
+
},
|
|
3440
|
+
{
|
|
3441
|
+
name: 'get_gaps',
|
|
3442
|
+
description: 'Get current code gaps from ADR Aggregator. Returns gaps with their status (open, dismissed, resolved) for tracking and management.',
|
|
3443
|
+
inputSchema: {
|
|
3444
|
+
type: 'object',
|
|
3445
|
+
properties: {
|
|
3446
|
+
projectPath: {
|
|
3447
|
+
type: 'string',
|
|
3448
|
+
description: 'Project path (defaults to PROJECT_PATH)',
|
|
3449
|
+
},
|
|
3450
|
+
includeDismissed: {
|
|
3451
|
+
type: 'boolean',
|
|
3452
|
+
description: 'Include dismissed gaps',
|
|
3453
|
+
default: false,
|
|
3454
|
+
},
|
|
3455
|
+
includeResolved: {
|
|
3456
|
+
type: 'boolean',
|
|
3457
|
+
description: 'Include resolved gaps',
|
|
3458
|
+
default: false,
|
|
3459
|
+
},
|
|
3460
|
+
},
|
|
3461
|
+
},
|
|
3462
|
+
},
|
|
3151
3463
|
],
|
|
3152
3464
|
};
|
|
3153
3465
|
});
|
|
@@ -3427,6 +3739,64 @@ export class McpAdrAnalysisServer {
|
|
|
3427
3739
|
case 'load_prompt':
|
|
3428
3740
|
response = await this.loadPrompt(safeArgs);
|
|
3429
3741
|
break;
|
|
3742
|
+
// ADR Aggregator Integration Tools
|
|
3743
|
+
case 'sync_to_aggregator': {
|
|
3744
|
+
const { syncToAggregator } = await import('./tools/adr-aggregator-tools.js');
|
|
3745
|
+
response = { ...(await syncToAggregator(safeArgs, context)) };
|
|
3746
|
+
break;
|
|
3747
|
+
}
|
|
3748
|
+
case 'get_adr_context': {
|
|
3749
|
+
const { getAdrContext } = await import('./tools/adr-aggregator-tools.js');
|
|
3750
|
+
response = { ...(await getAdrContext(safeArgs, context)) };
|
|
3751
|
+
break;
|
|
3752
|
+
}
|
|
3753
|
+
case 'get_staleness_report': {
|
|
3754
|
+
const { getStalenessReport } = await import('./tools/adr-aggregator-tools.js');
|
|
3755
|
+
response = { ...(await getStalenessReport(safeArgs, context)) };
|
|
3756
|
+
break;
|
|
3757
|
+
}
|
|
3758
|
+
case 'get_adr_templates': {
|
|
3759
|
+
const { getAdrTemplates } = await import('./tools/adr-aggregator-tools.js');
|
|
3760
|
+
response = { ...(await getAdrTemplates(safeArgs, context)) };
|
|
3761
|
+
break;
|
|
3762
|
+
}
|
|
3763
|
+
case 'get_adr_diagrams': {
|
|
3764
|
+
const { getAdrDiagrams } = await import('./tools/adr-aggregator-tools.js');
|
|
3765
|
+
response = { ...(await getAdrDiagrams(safeArgs, context)) };
|
|
3766
|
+
break;
|
|
3767
|
+
}
|
|
3768
|
+
case 'validate_adr_compliance': {
|
|
3769
|
+
const { validateAdrCompliance } = await import('./tools/adr-aggregator-tools.js');
|
|
3770
|
+
response = { ...(await validateAdrCompliance(safeArgs, context)) };
|
|
3771
|
+
break;
|
|
3772
|
+
}
|
|
3773
|
+
case 'get_knowledge_graph': {
|
|
3774
|
+
const { getKnowledgeGraph } = await import('./tools/adr-aggregator-tools.js');
|
|
3775
|
+
response = { ...(await getKnowledgeGraph(safeArgs, context)) };
|
|
3776
|
+
break;
|
|
3777
|
+
}
|
|
3778
|
+
case 'update_implementation_status': {
|
|
3779
|
+
const { updateAdrImplementationStatus } = await import('./tools/adr-aggregator-tools.js');
|
|
3780
|
+
response = {
|
|
3781
|
+
...(await updateAdrImplementationStatus(safeArgs, context)),
|
|
3782
|
+
};
|
|
3783
|
+
break;
|
|
3784
|
+
}
|
|
3785
|
+
case 'get_adr_priorities': {
|
|
3786
|
+
const { getAdrPriorities } = await import('./tools/adr-aggregator-tools.js');
|
|
3787
|
+
response = { ...(await getAdrPriorities(safeArgs, context)) };
|
|
3788
|
+
break;
|
|
3789
|
+
}
|
|
3790
|
+
case 'analyze_gaps': {
|
|
3791
|
+
const { analyzeGaps } = await import('./tools/analyze-gaps-tool.js');
|
|
3792
|
+
response = { ...(await analyzeGaps(safeArgs, context)) };
|
|
3793
|
+
break;
|
|
3794
|
+
}
|
|
3795
|
+
case 'get_gaps': {
|
|
3796
|
+
const { getGaps } = await import('./tools/analyze-gaps-tool.js');
|
|
3797
|
+
response = { ...(await getGaps(safeArgs, context)) };
|
|
3798
|
+
break;
|
|
3799
|
+
}
|
|
3430
3800
|
default:
|
|
3431
3801
|
throw new McpAdrError(`Unknown tool: ${name}`, 'UNKNOWN_TOOL');
|
|
3432
3802
|
}
|