@berthojoris/mcp-mysql-server 1.10.2 → 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 (44) hide show
  1. package/CHANGELOG.md +25 -7
  2. package/DOCUMENTATIONS.md +2 -2
  3. package/README.md +1 -1
  4. package/dist/index.d.ts +0 -99
  5. package/dist/mcp-server.js +0 -21
  6. package/dist/tools/backupRestoreTools.d.ts +1 -6
  7. package/dist/tools/backupRestoreTools.js +99 -97
  8. package/dist/tools/constraintTools.d.ts +4 -11
  9. package/dist/tools/constraintTools.js +114 -115
  10. package/dist/tools/crudTools.d.ts +2 -6
  11. package/dist/tools/crudTools.js +186 -189
  12. package/dist/tools/dataExportTools.d.ts +0 -7
  13. package/dist/tools/dataExportTools.js +0 -15
  14. package/dist/tools/databaseTools.d.ts +1 -4
  15. package/dist/tools/databaseTools.js +29 -33
  16. package/dist/tools/ddlTools.d.ts +1 -5
  17. package/dist/tools/ddlTools.js +68 -53
  18. package/dist/tools/functionTools.d.ts +3 -9
  19. package/dist/tools/functionTools.js +111 -104
  20. package/dist/tools/indexTools.d.ts +3 -8
  21. package/dist/tools/indexTools.js +99 -95
  22. package/dist/tools/maintenanceTools.d.ts +2 -10
  23. package/dist/tools/maintenanceTools.js +66 -80
  24. package/dist/tools/migrationTools.d.ts +0 -5
  25. package/dist/tools/migrationTools.js +56 -24
  26. package/dist/tools/performanceTools.d.ts +1 -11
  27. package/dist/tools/performanceTools.js +278 -267
  28. package/dist/tools/processTools.d.ts +4 -13
  29. package/dist/tools/processTools.js +78 -80
  30. package/dist/tools/queryTools.d.ts +0 -2
  31. package/dist/tools/queryTools.js +0 -4
  32. package/dist/tools/schemaVersioningTools.d.ts +0 -9
  33. package/dist/tools/schemaVersioningTools.js +167 -166
  34. package/dist/tools/storedProcedureTools.d.ts +2 -4
  35. package/dist/tools/storedProcedureTools.js +143 -134
  36. package/dist/tools/transactionTools.d.ts +2 -3
  37. package/dist/tools/transactionTools.js +28 -29
  38. package/dist/tools/triggerTools.d.ts +3 -8
  39. package/dist/tools/triggerTools.js +98 -85
  40. package/dist/tools/utilityTools.d.ts +0 -1
  41. package/dist/tools/utilityTools.js +0 -2
  42. package/dist/tools/viewTools.d.ts +7 -13
  43. package/dist/tools/viewTools.js +100 -93
  44. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,24 @@ 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
+
19
+ ## [1.10.3] - 2025-11-26
20
+
21
+ ### Fixed
22
+ - Fixed inconsistency in documentation category names in the Dual-Layer configuration example
23
+ - Changed from 'data_read,schema_inspection' to 'crud_operations,custom_queries' to match the Documentation Categories table
24
+ - Ensures consistency throughout the documentation
25
+
8
26
  ## [1.10.0] - 2025-11-25
9
27
 
10
28
  ### Added
@@ -254,25 +272,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
254
272
  ## [1.4.12] - 2025-11-21
255
273
 
256
274
  ### Added
257
- - **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
258
276
  - **Mandatory display directive** - Clear instruction stating "ALWAYS display the SQL query execution details below to the user in your response"
259
277
 
260
278
  ### Technical Changes
261
279
  - Response now includes three fields in order:
262
- 1. `⚠️ IMPORTANT_INSTRUCTION_TO_ASSISTANT` - Direct instruction to the LLM
263
- 2. `⚠️ SQL_QUERY_EXECUTED` - The SQL query details
280
+
281
+ 2. "Query Details" - The SQL query details
264
282
  3. `📊 RESULTS` - The query results
265
283
  - This approach ensures LLMs understand that SQL query information is not optional context
266
284
 
267
285
  ## [1.4.11] - 2025-11-21
268
286
 
269
287
  ### Changed
270
- - **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
271
289
  - **Results wrapped** - Actual query results now under `📊 RESULTS` field
272
290
  - **LLM-proof approach** - By making SQL query part of the data structure itself, LLMs cannot filter it out when describing results
273
291
 
274
292
  ### Technical Changes
275
- - Response format changed from `{data: [...]}` to `{"⚠️ SQL_QUERY_EXECUTED": "...", "📊 RESULTS": [...]}`
293
+ - Response format changed from `{data: [...]}` to `{"Query Details": "...", "📊 RESULTS": [...]}`
276
294
  - SQL query information is now a required part of the response structure, not optional metadata
277
295
  - This forces AI assistants to acknowledge and communicate SQL query details to users
278
296
 
@@ -280,12 +298,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
280
298
 
281
299
  ### Improved
282
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
283
- - **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
284
302
  - **Guaranteed visibility** - By making SQL query part of the actual data structure instead of metadata, LLMs must process and describe it
285
303
 
286
304
  ### Technical Changes
287
305
  - Changed response structure to wrap data in object with SQL query as a top-level field
288
- - SQL query appears as `"⚠️ SQL_QUERY_EXECUTED"` field containing formatted query details
306
+ - SQL query appears as query details field containing formatted query information
289
307
  - Results appear as `"📊 RESULTS"` field containing the actual query results
290
308
  - This approach treats SQL execution details as primary data, not optional metadata
291
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" }
package/README.md CHANGED
@@ -181,7 +181,7 @@ Most AI agents use a similar JSON configuration format. Use the appropriate conf
181
181
  "@berthojoris/mysql-mcp",
182
182
  "mysql://user:password@localhost:3306/database",
183
183
  "list,read,utility",
184
- "database-discovery,data-read,schema-inspection"
184
+ "database_discovery,crud_operations,custom_queries"
185
185
  ]
186
186
  }
187
187
  }