@berthojoris/mcp-mysql-server 1.33.6 → 1.35.0
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/CHANGELOG.md +23 -0
- package/DOCUMENTATIONS.md +3 -21
- package/README.md +3 -10
- package/dist/config/featureConfig.d.ts +1 -2
- package/dist/config/featureConfig.js +0 -39
- package/dist/index.d.ts +0 -391
- package/dist/index.js +0 -128
- package/dist/mcp-server.js +0 -547
- package/manifest.json +732 -877
- package/package.json +80 -95
package/dist/index.js
CHANGED
|
@@ -26,16 +26,6 @@ const performanceTools_1 = require("./tools/performanceTools");
|
|
|
26
26
|
const analysisTools_1 = require("./tools/analysisTools");
|
|
27
27
|
const aiTools_1 = require("./tools/aiTools");
|
|
28
28
|
const macroTools_1 = require("./tools/macroTools");
|
|
29
|
-
const intelligentQueryTools_1 = require("./tools/intelligentQueryTools");
|
|
30
|
-
const smartDiscoveryTools_1 = require("./tools/smartDiscoveryTools");
|
|
31
|
-
const documentationGeneratorTools_1 = require("./tools/documentationGeneratorTools");
|
|
32
|
-
const schemaDesignTools_1 = require("./tools/schemaDesignTools");
|
|
33
|
-
const securityAuditTools_1 = require("./tools/securityAuditTools");
|
|
34
|
-
const indexRecommendationTools_1 = require("./tools/indexRecommendationTools");
|
|
35
|
-
const testDataTools_1 = require("./tools/testDataTools");
|
|
36
|
-
const schemaPatternTools_1 = require("./tools/schemaPatternTools");
|
|
37
|
-
const queryVisualizationTools_1 = require("./tools/queryVisualizationTools");
|
|
38
|
-
const forecastingTools_1 = require("./tools/forecastingTools");
|
|
39
29
|
const smartQueryBuilderTools_1 = require("./tools/smartQueryBuilderTools");
|
|
40
30
|
const fulltextSearchTools_1 = require("./tools/fulltextSearchTools");
|
|
41
31
|
const securityLayer_1 = __importDefault(require("./security/securityLayer"));
|
|
@@ -72,16 +62,6 @@ class MySQLMCP {
|
|
|
72
62
|
this.analysisTools = new analysisTools_1.AnalysisTools(this.security);
|
|
73
63
|
this.aiTools = new aiTools_1.AiTools(this.security);
|
|
74
64
|
this.macroTools = new macroTools_1.MacroTools(this.security);
|
|
75
|
-
this.intelligentQueryTools = new intelligentQueryTools_1.IntelligentQueryTools(this.security);
|
|
76
|
-
this.smartDiscoveryTools = new smartDiscoveryTools_1.SmartDiscoveryTools(this.security);
|
|
77
|
-
this.documentationGeneratorTools = new documentationGeneratorTools_1.DocumentationGeneratorTools(this.security);
|
|
78
|
-
this.schemaDesignTools = new schemaDesignTools_1.SchemaDesignTools(this.security);
|
|
79
|
-
this.securityAuditTools = new securityAuditTools_1.SecurityAuditTools();
|
|
80
|
-
this.indexRecommendationTools = new indexRecommendationTools_1.IndexRecommendationTools(this.security);
|
|
81
|
-
this.testDataTools = new testDataTools_1.TestDataTools(this.security);
|
|
82
|
-
this.schemaPatternTools = new schemaPatternTools_1.SchemaPatternTools(this.security);
|
|
83
|
-
this.queryVisualizationTools = new queryVisualizationTools_1.QueryVisualizationTools(this.security);
|
|
84
|
-
this.forecastingTools = new forecastingTools_1.ForecastingTools(this.security);
|
|
85
65
|
this.smartQueryBuilderTools = new smartQueryBuilderTools_1.SmartQueryBuilderTools(this.security);
|
|
86
66
|
this.fulltextSearchTools = new fulltextSearchTools_1.FulltextSearchTools(this.security);
|
|
87
67
|
}
|
|
@@ -1105,114 +1085,6 @@ class MySQLMCP {
|
|
|
1105
1085
|
return { status: "error", error: check.error };
|
|
1106
1086
|
return await this.performanceTools.resetPerformanceStats();
|
|
1107
1087
|
}
|
|
1108
|
-
// ==========================================
|
|
1109
|
-
// PHASE 1: AI Enhancement Tools
|
|
1110
|
-
// ==========================================
|
|
1111
|
-
// Intelligent Query Assistant
|
|
1112
|
-
async buildQueryFromIntent(params) {
|
|
1113
|
-
const check = this.checkToolEnabled("buildQueryFromIntent");
|
|
1114
|
-
if (!check.enabled)
|
|
1115
|
-
return { status: "error", error: check.error };
|
|
1116
|
-
return await this.intelligentQueryTools.buildQueryFromIntent(params);
|
|
1117
|
-
}
|
|
1118
|
-
async suggestQueryImprovements(params) {
|
|
1119
|
-
const check = this.checkToolEnabled("suggestQueryImprovements");
|
|
1120
|
-
if (!check.enabled)
|
|
1121
|
-
return { status: "error", error: check.error };
|
|
1122
|
-
return await this.intelligentQueryTools.suggestQueryImprovements(params);
|
|
1123
|
-
}
|
|
1124
|
-
// Smart Data Discovery
|
|
1125
|
-
async smartSearch(params) {
|
|
1126
|
-
const check = this.checkToolEnabled("smartSearch");
|
|
1127
|
-
if (!check.enabled)
|
|
1128
|
-
return { status: "error", error: check.error };
|
|
1129
|
-
return await this.smartDiscoveryTools.smartSearch(params);
|
|
1130
|
-
}
|
|
1131
|
-
async findSimilarColumns(params) {
|
|
1132
|
-
const check = this.checkToolEnabled("findSimilarColumns");
|
|
1133
|
-
if (!check.enabled)
|
|
1134
|
-
return { status: "error", error: check.error };
|
|
1135
|
-
return await this.smartDiscoveryTools.findSimilarColumns(params);
|
|
1136
|
-
}
|
|
1137
|
-
async discoverDataPatterns(params) {
|
|
1138
|
-
const check = this.checkToolEnabled("discoverDataPatterns");
|
|
1139
|
-
if (!check.enabled)
|
|
1140
|
-
return { status: "error", error: check.error };
|
|
1141
|
-
return await this.smartDiscoveryTools.discoverDataPatterns(params);
|
|
1142
|
-
}
|
|
1143
|
-
// Documentation Generator
|
|
1144
|
-
async generateDocumentation(params) {
|
|
1145
|
-
const check = this.checkToolEnabled("generateDocumentation");
|
|
1146
|
-
if (!check.enabled)
|
|
1147
|
-
return { status: "error", error: check.error };
|
|
1148
|
-
return await this.documentationGeneratorTools.generateDocumentation(params);
|
|
1149
|
-
}
|
|
1150
|
-
async generateDataDictionary(params) {
|
|
1151
|
-
const check = this.checkToolEnabled("generateDataDictionary");
|
|
1152
|
-
if (!check.enabled)
|
|
1153
|
-
return { status: "error", error: check.error };
|
|
1154
|
-
return await this.documentationGeneratorTools.generateDataDictionary(params);
|
|
1155
|
-
}
|
|
1156
|
-
async generateBusinessGlossary(params) {
|
|
1157
|
-
const check = this.checkToolEnabled("generateBusinessGlossary");
|
|
1158
|
-
if (!check.enabled)
|
|
1159
|
-
return { status: "error", error: check.error };
|
|
1160
|
-
return await this.documentationGeneratorTools.generateBusinessGlossaryReport(params);
|
|
1161
|
-
}
|
|
1162
|
-
// ==========================================
|
|
1163
|
-
// PHASE 2: AI Enhancement Tools (Schema + Security + Indexing)
|
|
1164
|
-
// ==========================================
|
|
1165
|
-
async designSchemaFromRequirements(params) {
|
|
1166
|
-
const check = this.checkToolEnabled("designSchemaFromRequirements");
|
|
1167
|
-
if (!check.enabled)
|
|
1168
|
-
return { status: "error", error: check.error };
|
|
1169
|
-
return await this.schemaDesignTools.designSchemaFromRequirements(params);
|
|
1170
|
-
}
|
|
1171
|
-
async auditDatabaseSecurity(params) {
|
|
1172
|
-
const check = this.checkToolEnabled("auditDatabaseSecurity");
|
|
1173
|
-
if (!check.enabled)
|
|
1174
|
-
return { status: "error", error: check.error };
|
|
1175
|
-
return await this.securityAuditTools.auditDatabaseSecurity(params);
|
|
1176
|
-
}
|
|
1177
|
-
async recommendIndexes(params) {
|
|
1178
|
-
const check = this.checkToolEnabled("recommendIndexes");
|
|
1179
|
-
if (!check.enabled)
|
|
1180
|
-
return { status: "error", error: check.error };
|
|
1181
|
-
return await this.indexRecommendationTools.recommendIndexes(params);
|
|
1182
|
-
}
|
|
1183
|
-
// ==========================================
|
|
1184
|
-
// PHASE 3: AI Enhancement Tools (Data Gen + Patterns + Visualization + Forecasting)
|
|
1185
|
-
// ==========================================
|
|
1186
|
-
async generateTestData(params) {
|
|
1187
|
-
const check = this.checkToolEnabled("generateTestData");
|
|
1188
|
-
if (!check.enabled)
|
|
1189
|
-
return { status: "error", error: check.error };
|
|
1190
|
-
return await this.testDataTools.generateTestData(params);
|
|
1191
|
-
}
|
|
1192
|
-
async analyzeSchemaPatterns(params) {
|
|
1193
|
-
const check = this.checkToolEnabled("analyzeSchemaPatterns");
|
|
1194
|
-
if (!check.enabled)
|
|
1195
|
-
return { status: "error", error: check.error };
|
|
1196
|
-
return await this.schemaPatternTools.analyzeSchemaPatterns(params);
|
|
1197
|
-
}
|
|
1198
|
-
async visualizeQuery(params) {
|
|
1199
|
-
const check = this.checkToolEnabled("visualizeQuery");
|
|
1200
|
-
if (!check.enabled)
|
|
1201
|
-
return { status: "error", error: check.error };
|
|
1202
|
-
return await this.queryVisualizationTools.visualizeQuery(params);
|
|
1203
|
-
}
|
|
1204
|
-
async predictQueryPerformance(params) {
|
|
1205
|
-
const check = this.checkToolEnabled("predictQueryPerformance");
|
|
1206
|
-
if (!check.enabled)
|
|
1207
|
-
return { status: "error", error: check.error };
|
|
1208
|
-
return await this.forecastingTools.predictQueryPerformance(params);
|
|
1209
|
-
}
|
|
1210
|
-
async forecastDatabaseGrowth(params) {
|
|
1211
|
-
const check = this.checkToolEnabled("forecastDatabaseGrowth");
|
|
1212
|
-
if (!check.enabled)
|
|
1213
|
-
return { status: "error", error: check.error };
|
|
1214
|
-
return await this.forecastingTools.forecastDatabaseGrowth(params);
|
|
1215
|
-
}
|
|
1216
1088
|
// Smart Query Builder Tools
|
|
1217
1089
|
async startQueryBuilder(params) {
|
|
1218
1090
|
const check = this.checkToolEnabled("startQueryBuilder");
|