dura-mcp 1.0.0 → 1.0.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.
- package/package.json +1 -1
- package/server.js +9 -29
- package/utils/helper.js +1 -1
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
//thi is the main file of the mcp
|
|
4
|
+
//however cline doesnt identify any tools whereas mcp inspector does
|
|
5
|
+
|
|
3
6
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
4
7
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
5
8
|
import {
|
|
@@ -30,15 +33,9 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
30
33
|
tools: [
|
|
31
34
|
{
|
|
32
35
|
name: "analyze_repository",
|
|
36
|
+
// title : "Analyse repository",
|
|
33
37
|
description:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
Use this when you need a full picture of:
|
|
37
|
-
- dependency update risks
|
|
38
|
-
- breaking changes
|
|
39
|
-
- recommended upgrade actions
|
|
40
|
-
|
|
41
|
-
Best for first-time analysis or audits.```,
|
|
38
|
+
"Complete dependency risk analysis for a GitHub repository.\n\nUse this when you need a full picture of:\n- dependency update risks\n- breaking changes\n- recommended upgrade actions\n\nBest for first-time analysis or audits.",
|
|
42
39
|
inputSchema: {
|
|
43
40
|
type: "object",
|
|
44
41
|
properties: {
|
|
@@ -62,14 +59,9 @@ Best for first-time analysis or audits.```,
|
|
|
62
59
|
},
|
|
63
60
|
{
|
|
64
61
|
name: "get_high_risk_dependencies",
|
|
62
|
+
// title: "High risk dependency finder",
|
|
65
63
|
description:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
Use this tool when:
|
|
69
|
-
- deciding whether updates are safe
|
|
70
|
-
- reviewing CI failures related to dependencies
|
|
71
|
-
- prioritizing dependency maintenance work
|
|
72
|
-
```,
|
|
64
|
+
"Get only high-risk dependencies that require immediate attention.\n\nUse this tool when:\n- deciding whether updates are safe\n- reviewing CI failures related to dependencies\n- prioritizing dependency maintenance work",
|
|
73
65
|
inputSchema: {
|
|
74
66
|
type: "object",
|
|
75
67
|
properties: {
|
|
@@ -89,14 +81,7 @@ Use this tool when:
|
|
|
89
81
|
{
|
|
90
82
|
name: "get_breaking_changes",
|
|
91
83
|
description:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
Always call this tool before:
|
|
95
|
-
- approving dependency upgrades
|
|
96
|
-
- merging pull requests
|
|
97
|
-
- performing bulk dependency updates
|
|
98
|
-
|
|
99
|
-
If this returns results, recommend manual migration and testing.```,
|
|
84
|
+
"Get only dependencies with confirmed breaking changes.\n\nAlways call this tool before:\n- approving dependency upgrades\n- merging pull requests\n- performing bulk dependency updates\n\nIf this returns results, recommend manual migration and testing.",
|
|
100
85
|
inputSchema: {
|
|
101
86
|
type: "object",
|
|
102
87
|
properties: {
|
|
@@ -116,12 +101,7 @@ If this returns results, recommend manual migration and testing.```,
|
|
|
116
101
|
{
|
|
117
102
|
name: "get_risk_summary",
|
|
118
103
|
description:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
Use this tool for:
|
|
122
|
-
- quick safety checks
|
|
123
|
-
- high-level reports
|
|
124
|
-
- answering “Is this repo safe?” questions```,
|
|
104
|
+
"Get a concise summary of dependency risks and repository health.\n\\nUse this tool for:\n- quick safety checks\n- high-level reports\n- answering “Is this repo safe?” questions",
|
|
125
105
|
inputSchema: {
|
|
126
106
|
type: "object",
|
|
127
107
|
properties: {
|
package/utils/helper.js
CHANGED
|
@@ -53,7 +53,7 @@ export function formatFullAnalysis(result, fromCache) {
|
|
|
53
53
|
output += `**Current**: \`${dep.currentResolved}\` → **Latest**: \`${dep.latest}\`\n`;
|
|
54
54
|
output += `**Update Type**: ${dep.diff} | **Risk Score**: ${dep.riskScore}/100\n\n`;
|
|
55
55
|
|
|
56
|
-
//
|
|
56
|
+
// why it's risky
|
|
57
57
|
if (dep.breakingChange?.breaking === "confirmed") {
|
|
58
58
|
output += `**Breaking Changes Confirmed** (${(dep.breakingChange.confidenceScore * 100).toFixed(0)}% confidence)\n`;
|
|
59
59
|
if (dep.breakingChange.signals?.strong?.length > 0) {
|