mcp-adr-analysis-server 2.0.12 → 2.0.14
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 +132 -2
- package/dist/.tsbuildinfo +1 -0
- package/dist/src/index.d.ts +18 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +464 -23
- package/dist/src/index.js.map +1 -1
- package/dist/src/tools/deployment-readiness-tool.d.ts +23 -0
- package/dist/src/tools/deployment-readiness-tool.d.ts.map +1 -0
- package/dist/src/tools/deployment-readiness-tool.js +696 -0
- package/dist/src/tools/deployment-readiness-tool.js.map +1 -0
- package/dist/src/tools/smart-git-push-tool-v2.d.ts +14 -0
- package/dist/src/tools/smart-git-push-tool-v2.d.ts.map +1 -1
- package/dist/src/tools/smart-git-push-tool-v2.js +415 -20
- package/dist/src/tools/smart-git-push-tool-v2.js.map +1 -1
- package/dist/src/tools/todo-management-tool-v2.d.ts +39 -0
- package/dist/src/tools/todo-management-tool-v2.d.ts.map +1 -1
- package/dist/src/tools/todo-management-tool-v2.js +229 -5
- package/dist/src/tools/todo-management-tool-v2.js.map +1 -1
- package/dist/src/tools/troubleshoot-guided-workflow-tool.d.ts +4 -4
- package/dist/src/utils/directory-compat.d.ts +8 -0
- package/dist/src/utils/directory-compat.d.ts.map +1 -0
- package/dist/src/utils/directory-compat.js +27 -0
- package/dist/src/utils/directory-compat.js.map +1 -0
- package/package.json +13 -12
|
@@ -53,7 +53,6 @@ declare const TroubleshootSchema: z.ZodObject<{
|
|
|
53
53
|
frequency?: string | undefined;
|
|
54
54
|
}>>;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
|
-
failureType: "other" | "test_failure" | "deployment_failure" | "build_failure" | "runtime_error" | "performance_issue" | "security_issue";
|
|
57
56
|
failureDetails: {
|
|
58
57
|
errorMessage: string;
|
|
59
58
|
timestamp?: string | undefined;
|
|
@@ -64,6 +63,7 @@ declare const TroubleshootSchema: z.ZodObject<{
|
|
|
64
63
|
logOutput?: string | undefined;
|
|
65
64
|
affectedFiles?: string[] | undefined;
|
|
66
65
|
};
|
|
66
|
+
failureType: "other" | "test_failure" | "deployment_failure" | "build_failure" | "runtime_error" | "performance_issue" | "security_issue";
|
|
67
67
|
context?: {
|
|
68
68
|
impact?: "medium" | "low" | "high" | "critical" | undefined;
|
|
69
69
|
recentChanges?: string | undefined;
|
|
@@ -71,7 +71,6 @@ declare const TroubleshootSchema: z.ZodObject<{
|
|
|
71
71
|
frequency?: string | undefined;
|
|
72
72
|
} | undefined;
|
|
73
73
|
}, {
|
|
74
|
-
failureType: "other" | "test_failure" | "deployment_failure" | "build_failure" | "runtime_error" | "performance_issue" | "security_issue";
|
|
75
74
|
failureDetails: {
|
|
76
75
|
errorMessage: string;
|
|
77
76
|
timestamp?: string | undefined;
|
|
@@ -82,6 +81,7 @@ declare const TroubleshootSchema: z.ZodObject<{
|
|
|
82
81
|
logOutput?: string | undefined;
|
|
83
82
|
affectedFiles?: string[] | undefined;
|
|
84
83
|
};
|
|
84
|
+
failureType: "other" | "test_failure" | "deployment_failure" | "build_failure" | "runtime_error" | "performance_issue" | "security_issue";
|
|
85
85
|
context?: {
|
|
86
86
|
impact?: "medium" | "low" | "high" | "critical" | undefined;
|
|
87
87
|
recentChanges?: string | undefined;
|
|
@@ -98,7 +98,6 @@ declare const TroubleshootSchema: z.ZodObject<{
|
|
|
98
98
|
todoPath: string;
|
|
99
99
|
projectPath?: string | undefined;
|
|
100
100
|
failure?: {
|
|
101
|
-
failureType: "other" | "test_failure" | "deployment_failure" | "build_failure" | "runtime_error" | "performance_issue" | "security_issue";
|
|
102
101
|
failureDetails: {
|
|
103
102
|
errorMessage: string;
|
|
104
103
|
timestamp?: string | undefined;
|
|
@@ -109,6 +108,7 @@ declare const TroubleshootSchema: z.ZodObject<{
|
|
|
109
108
|
logOutput?: string | undefined;
|
|
110
109
|
affectedFiles?: string[] | undefined;
|
|
111
110
|
};
|
|
111
|
+
failureType: "other" | "test_failure" | "deployment_failure" | "build_failure" | "runtime_error" | "performance_issue" | "security_issue";
|
|
112
112
|
context?: {
|
|
113
113
|
impact?: "medium" | "low" | "high" | "critical" | undefined;
|
|
114
114
|
recentChanges?: string | undefined;
|
|
@@ -122,7 +122,6 @@ declare const TroubleshootSchema: z.ZodObject<{
|
|
|
122
122
|
adrDirectory?: string | undefined;
|
|
123
123
|
todoPath?: string | undefined;
|
|
124
124
|
failure?: {
|
|
125
|
-
failureType: "other" | "test_failure" | "deployment_failure" | "build_failure" | "runtime_error" | "performance_issue" | "security_issue";
|
|
126
125
|
failureDetails: {
|
|
127
126
|
errorMessage: string;
|
|
128
127
|
timestamp?: string | undefined;
|
|
@@ -133,6 +132,7 @@ declare const TroubleshootSchema: z.ZodObject<{
|
|
|
133
132
|
logOutput?: string | undefined;
|
|
134
133
|
affectedFiles?: string[] | undefined;
|
|
135
134
|
};
|
|
135
|
+
failureType: "other" | "test_failure" | "deployment_failure" | "build_failure" | "runtime_error" | "performance_issue" | "security_issue";
|
|
136
136
|
context?: {
|
|
137
137
|
impact?: "medium" | "low" | "high" | "critical" | undefined;
|
|
138
138
|
recentChanges?: string | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility for getting current directory in Jest-compatible way
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Get current directory in a way that works in both Jest and normal execution
|
|
6
|
+
*/
|
|
7
|
+
export declare function getCurrentDirCompat(): string;
|
|
8
|
+
//# sourceMappingURL=directory-compat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directory-compat.d.ts","sourceRoot":"","sources":["../../../src/utils/directory-compat.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAkB5C"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility for getting current directory in Jest-compatible way
|
|
3
|
+
*/
|
|
4
|
+
import { fileURLToPath } from 'url';
|
|
5
|
+
import { dirname } from 'path';
|
|
6
|
+
/**
|
|
7
|
+
* Get current directory in a way that works in both Jest and normal execution
|
|
8
|
+
*/
|
|
9
|
+
export function getCurrentDirCompat() {
|
|
10
|
+
try {
|
|
11
|
+
// Check if we're in a Jest environment
|
|
12
|
+
if (typeof process !== 'undefined' && process.env['NODE_ENV'] === 'test') {
|
|
13
|
+
return process.cwd();
|
|
14
|
+
}
|
|
15
|
+
// Try import.meta.url for normal ESM execution
|
|
16
|
+
if (typeof import.meta !== 'undefined' && import.meta.url) {
|
|
17
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
18
|
+
return dirname(__filename);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
catch (error) {
|
|
22
|
+
// Fallback for any environment issues
|
|
23
|
+
}
|
|
24
|
+
// Final fallback
|
|
25
|
+
return process.cwd();
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=directory-compat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directory-compat.js","sourceRoot":"","sources":["../../../src/utils/directory-compat.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B;;GAEG;AACH,MAAM,UAAU,mBAAmB;IACjC,IAAI,CAAC;QACH,uCAAuC;QACvC,IAAI,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,MAAM,EAAE,CAAC;YACzE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC;QACvB,CAAC;QAED,+CAA+C;QAC/C,IAAI,OAAO,MAAM,CAAC,IAAI,KAAK,WAAW,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;YAC1D,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClD,OAAO,OAAO,CAAC,UAAU,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,sCAAsC;IACxC,CAAC;IAED,iBAAiB;IACjB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC;AACvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-adr-analysis-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14",
|
|
4
4
|
"description": "MCP server for analyzing Architectural Decision Records and project architecture",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "tsc && chmod +x dist/src/index.js",
|
|
13
13
|
"dev": "tsx src/index.ts",
|
|
14
|
-
"test": "
|
|
15
|
-
"test:watch": "
|
|
16
|
-
"test:coverage": "
|
|
14
|
+
"test": "NODE_ENV=test NODE_OPTIONS='--experimental-vm-modules' jest",
|
|
15
|
+
"test:watch": "NODE_ENV=test NODE_OPTIONS='--experimental-vm-modules' jest --watch",
|
|
16
|
+
"test:coverage": "NODE_ENV=test NODE_OPTIONS='--experimental-vm-modules' jest --coverage",
|
|
17
17
|
"test:advanced": "./scripts/test-advanced-prompting.sh",
|
|
18
18
|
"test:unit": "./scripts/test-advanced-prompting.sh unit",
|
|
19
19
|
"test:integration": "./scripts/test-advanced-prompting.sh integration",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"lint:fix": "npm run typecheck",
|
|
24
24
|
"clean": "rm -rf dist coverage .mcp-adr-cache",
|
|
25
25
|
"prepare": "test -d src && npm run build || echo 'Skipping build - no src directory (likely packaging)'",
|
|
26
|
-
"prepublishOnly": "npm run build && npm
|
|
26
|
+
"prepublishOnly": "npm run build && npm run lint",
|
|
27
27
|
"start": "node dist/src/index.js",
|
|
28
28
|
"health": "node dist/src/index.js --test",
|
|
29
29
|
"format": "prettier --write src/**/*.ts tests/**/*.ts",
|
|
@@ -33,18 +33,19 @@
|
|
|
33
33
|
"test:package": "./scripts/test-npm-package.sh"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@modelcontextprotocol/sdk": "
|
|
36
|
+
"@modelcontextprotocol/sdk": "1.17.5",
|
|
37
37
|
"fast-glob": "^3.3.2",
|
|
38
38
|
"openai": "^5.8.2",
|
|
39
39
|
"tslib": "^2.8.1",
|
|
40
40
|
"zod": "^3.22.4"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@
|
|
44
|
-
"@types/
|
|
45
|
-
"
|
|
43
|
+
"@jest/globals": "^30.1.2",
|
|
44
|
+
"@types/jest": "^29.5.14",
|
|
45
|
+
"@types/node": "^20.19.13",
|
|
46
|
+
"jest": "^30.1.3",
|
|
46
47
|
"prettier": "^3.1.0",
|
|
47
|
-
"ts-jest": "^29.
|
|
48
|
+
"ts-jest": "^29.4.1",
|
|
48
49
|
"tsx": "^4.6.0",
|
|
49
50
|
"typescript": "^5.3.2"
|
|
50
51
|
},
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
"typescript",
|
|
58
59
|
"model-context-protocol"
|
|
59
60
|
],
|
|
60
|
-
"author": "Tosin Akinosho <tosin@
|
|
61
|
+
"author": "Tosin Akinosho <tosin.akinosho@gmail.com>",
|
|
61
62
|
"license": "MIT",
|
|
62
63
|
"repository": {
|
|
63
64
|
"type": "git",
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
"mcp-adr-analysis-server": "./dist/src/index.js"
|
|
68
69
|
},
|
|
69
70
|
"files": [
|
|
70
|
-
"dist/
|
|
71
|
+
"dist/",
|
|
71
72
|
"README.md",
|
|
72
73
|
"LICENSE"
|
|
73
74
|
],
|