@berthojoris/mcp-mysql-server 1.9.2 → 1.9.3

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 (2) hide show
  1. package/dist/index.js +12 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -506,21 +506,30 @@ class MySQLMCP {
506
506
  * Bulk insert multiple records into the specified table
507
507
  */
508
508
  async bulkInsert(params) {
509
- this.checkToolEnabled("bulk_insert");
509
+ const check = this.checkToolEnabled("bulkInsert");
510
+ if (!check.enabled) {
511
+ return { status: "error", error: check.error };
512
+ }
510
513
  return this.crudTools.bulkInsert(params);
511
514
  }
512
515
  /**
513
516
  * Bulk update multiple records with different conditions and data
514
517
  */
515
518
  async bulkUpdate(params) {
516
- this.checkToolEnabled("bulk_update");
519
+ const check = this.checkToolEnabled("bulkUpdate");
520
+ if (!check.enabled) {
521
+ return { status: "error", error: check.error };
522
+ }
517
523
  return this.crudTools.bulkUpdate(params);
518
524
  }
519
525
  /**
520
526
  * Bulk delete records based on multiple condition sets
521
527
  */
522
528
  async bulkDelete(params) {
523
- this.checkToolEnabled("bulk_delete");
529
+ const check = this.checkToolEnabled("bulkDelete");
530
+ if (!check.enabled) {
531
+ return { status: "error", error: check.error };
532
+ }
524
533
  return this.crudTools.bulkDelete(params);
525
534
  }
526
535
  // Close database connection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@berthojoris/mcp-mysql-server",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "Model Context Protocol server for MySQL database integration with dynamic per-project permissions, backup/restore, data import/export, and data migration capabilities",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",