@berthojoris/mcp-mysql-server 1.10.3 → 1.10.4

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +18 -7
  2. package/DOCUMENTATIONS.md +2 -2
  3. package/dist/index.d.ts +0 -99
  4. package/dist/mcp-server.js +0 -21
  5. package/dist/tools/backupRestoreTools.d.ts +1 -6
  6. package/dist/tools/backupRestoreTools.js +99 -97
  7. package/dist/tools/constraintTools.d.ts +4 -11
  8. package/dist/tools/constraintTools.js +114 -115
  9. package/dist/tools/crudTools.d.ts +2 -6
  10. package/dist/tools/crudTools.js +186 -189
  11. package/dist/tools/dataExportTools.d.ts +0 -7
  12. package/dist/tools/dataExportTools.js +0 -15
  13. package/dist/tools/databaseTools.d.ts +1 -4
  14. package/dist/tools/databaseTools.js +29 -33
  15. package/dist/tools/ddlTools.d.ts +1 -5
  16. package/dist/tools/ddlTools.js +68 -53
  17. package/dist/tools/functionTools.d.ts +3 -9
  18. package/dist/tools/functionTools.js +111 -104
  19. package/dist/tools/indexTools.d.ts +3 -8
  20. package/dist/tools/indexTools.js +99 -95
  21. package/dist/tools/maintenanceTools.d.ts +2 -10
  22. package/dist/tools/maintenanceTools.js +66 -80
  23. package/dist/tools/migrationTools.d.ts +0 -5
  24. package/dist/tools/migrationTools.js +56 -24
  25. package/dist/tools/performanceTools.d.ts +1 -11
  26. package/dist/tools/performanceTools.js +278 -267
  27. package/dist/tools/processTools.d.ts +4 -13
  28. package/dist/tools/processTools.js +78 -80
  29. package/dist/tools/queryTools.d.ts +0 -2
  30. package/dist/tools/queryTools.js +0 -4
  31. package/dist/tools/schemaVersioningTools.d.ts +0 -9
  32. package/dist/tools/schemaVersioningTools.js +167 -166
  33. package/dist/tools/storedProcedureTools.d.ts +2 -4
  34. package/dist/tools/storedProcedureTools.js +143 -134
  35. package/dist/tools/transactionTools.d.ts +2 -3
  36. package/dist/tools/transactionTools.js +28 -29
  37. package/dist/tools/triggerTools.d.ts +3 -8
  38. package/dist/tools/triggerTools.js +98 -85
  39. package/dist/tools/utilityTools.d.ts +0 -1
  40. package/dist/tools/utilityTools.js +0 -2
  41. package/dist/tools/viewTools.d.ts +7 -13
  42. package/dist/tools/viewTools.js +100 -93
  43. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,17 @@ All notable changes to the MySQL MCP Server will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.10.4] - 2025-12-02
9
+
10
+ ### Fixed
11
+ - Removed "IMPORTANT_INSTRUCTION_TO_ASSISTANT" instruction from documentation - no longer needed
12
+ - Removed "SQL_QUERY_EXECUTED" message references from documentation - simplified response structure
13
+ - Updated changelog entries to reflect cleaner field naming without instruction prefixes
14
+
15
+ ### Changed
16
+ - Simplified documentation language around SQL query display
17
+ - Streamlined response format documentation
18
+
8
19
  ## [1.10.3] - 2025-11-26
9
20
 
10
21
  ### Fixed
@@ -261,25 +272,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
261
272
  ## [1.4.12] - 2025-11-21
262
273
 
263
274
  ### Added
264
- - **Explicit LLM instruction field** - Added `⚠️ IMPORTANT_INSTRUCTION_TO_ASSISTANT` field that explicitly instructs the LLM to always display SQL query information to users
275
+ - **Query field name** - SQL query details are now directly embedded in response data
265
276
  - **Mandatory display directive** - Clear instruction stating "ALWAYS display the SQL query execution details below to the user in your response"
266
277
 
267
278
  ### Technical Changes
268
279
  - Response now includes three fields in order:
269
- 1. `⚠️ IMPORTANT_INSTRUCTION_TO_ASSISTANT` - Direct instruction to the LLM
270
- 2. `⚠️ SQL_QUERY_EXECUTED` - The SQL query details
280
+
281
+ 2. "Query Details" - The SQL query details
271
282
  3. `📊 RESULTS` - The query results
272
283
  - This approach ensures LLMs understand that SQL query information is not optional context
273
284
 
274
285
  ## [1.4.11] - 2025-11-21
275
286
 
276
287
  ### Changed
277
- - **SQL query as data field (BREAKING)** - Restructured response to embed SQL query directly in the data JSON as `⚠️ SQL_QUERY_EXECUTED` field
288
+ - **SQL query as data field (BREAKING)** - Restructured response to embed SQL query directly in the data JSON as query details field
278
289
  - **Results wrapped** - Actual query results now under `📊 RESULTS` field
279
290
  - **LLM-proof approach** - By making SQL query part of the data structure itself, LLMs cannot filter it out when describing results
280
291
 
281
292
  ### Technical Changes
282
- - Response format changed from `{data: [...]}` to `{"⚠️ SQL_QUERY_EXECUTED": "...", "📊 RESULTS": [...]}`
293
+ - Response format changed from `{data: [...]}` to `{"Query Details": "...", "📊 RESULTS": [...]}`
283
294
  - SQL query information is now a required part of the response structure, not optional metadata
284
295
  - This forces AI assistants to acknowledge and communicate SQL query details to users
285
296
 
@@ -287,12 +298,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
287
298
 
288
299
  ### Improved
289
300
  - **SQL query embedded in data structure** - SQL query is now embedded as a field in the response JSON, forcing LLMs to include it when describing results
290
- - **Visual field names** - Using emoji-prefixed field names (`⚠️ SQL_QUERY_EXECUTED` and `📊 RESULTS`) to make SQL query information stand out
301
+ - **Visual field names** - Using descriptive field names for query information to make it stand out
291
302
  - **Guaranteed visibility** - By making SQL query part of the actual data structure instead of metadata, LLMs must process and describe it
292
303
 
293
304
  ### Technical Changes
294
305
  - Changed response structure to wrap data in object with SQL query as a top-level field
295
- - SQL query appears as `"⚠️ SQL_QUERY_EXECUTED"` field containing formatted query details
306
+ - SQL query appears as query details field containing formatted query information
296
307
  - Results appear as `"📊 RESULTS"` field containing the actual query results
297
308
  - This approach treats SQL execution details as primary data, not optional metadata
298
309
  - Forces LLMs to acknowledge and describe the SQL query when processing tool responses
package/DOCUMENTATIONS.md CHANGED
@@ -3106,8 +3106,8 @@ The MCP server returns responses in this structured format:
3106
3106
 
3107
3107
  ```json
3108
3108
  {
3109
- "⚠️ IMPORTANT_INSTRUCTION_TO_ASSISTANT": "ALWAYS display the SQL query execution details below to the user in your response. This is critical information that users need to see.",
3110
- "⚠️ SQL_QUERY_EXECUTED": "✅ SQL Query #1 - SUCCESS\n⏱️ 107ms\n📝 SHOW TABLES",
3109
+
3110
+ "✅ SQL Query #1 - SUCCESS": "\n⏱️ 107ms\n📝 SHOW TABLES",
3111
3111
  "📊 RESULTS": [
3112
3112
  { "table_name": "users" },
3113
3113
  { "table_name": "products" }