@berthojoris/mcp-mysql-server 1.16.4 → 1.18.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/manifest.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mysql-mcp",
3
3
  "description": "A Model Context Protocol for MySQL database interaction",
4
- "version": "1.16.4",
4
+ "version": "1.17.0",
5
5
  "tools": [
6
6
  {
7
7
  "name": "list_databases",
@@ -616,6 +616,114 @@
616
616
  "error": { "type": ["string", "null"] }
617
617
  }
618
618
  }
619
+ },
620
+ {
621
+ "name": "generate_test_data",
622
+ "description": "Generates synthetic test data as SQL INSERT statements for a given table (does not execute). Attempts FK-aware value selection for referential integrity.",
623
+ "input_schema": {
624
+ "type": "object",
625
+ "properties": {
626
+ "table_name": { "type": "string" },
627
+ "row_count": { "type": "number" },
628
+ "batch_size": { "type": "number" },
629
+ "include_nulls": { "type": "boolean" },
630
+ "database": { "type": "string" }
631
+ },
632
+ "required": ["table_name", "row_count"]
633
+ },
634
+ "output_schema": {
635
+ "type": "object",
636
+ "properties": {
637
+ "status": { "type": "string" },
638
+ "data": { "type": "object" },
639
+ "error": { "type": ["string", "null"] }
640
+ }
641
+ }
642
+ },
643
+ {
644
+ "name": "analyze_schema_patterns",
645
+ "description": "Analyzes the schema for common patterns and anti-patterns (missing PKs, wide tables, unindexed FKs, EAV-like tables, etc.) and returns recommendations.",
646
+ "input_schema": {
647
+ "type": "object",
648
+ "properties": {
649
+ "scope": { "type": "string", "enum": ["database", "table"] },
650
+ "table_name": { "type": "string" },
651
+ "database": { "type": "string" }
652
+ }
653
+ },
654
+ "output_schema": {
655
+ "type": "object",
656
+ "properties": {
657
+ "status": { "type": "string" },
658
+ "data": { "type": "object" },
659
+ "error": { "type": ["string", "null"] }
660
+ }
661
+ }
662
+ },
663
+ {
664
+ "name": "visualize_query",
665
+ "description": "Creates a visual representation of a read-only SQL query as a Mermaid flowchart, based on EXPLAIN FORMAT=JSON and lightweight SQL parsing.",
666
+ "input_schema": {
667
+ "type": "object",
668
+ "properties": {
669
+ "query": { "type": "string" },
670
+ "include_explain_json": { "type": "boolean" },
671
+ "format": { "type": "string", "enum": ["mermaid", "json", "both"] }
672
+ },
673
+ "required": ["query"]
674
+ },
675
+ "output_schema": {
676
+ "type": "object",
677
+ "properties": {
678
+ "status": { "type": "string" },
679
+ "data": { "type": "object" },
680
+ "error": { "type": ["string", "null"] }
681
+ }
682
+ }
683
+ },
684
+ {
685
+ "name": "predict_query_performance",
686
+ "description": "Predicts how EXPLAIN-estimated scan volume/cost could change under table growth assumptions (heuristic).",
687
+ "input_schema": {
688
+ "type": "object",
689
+ "properties": {
690
+ "query": { "type": "string" },
691
+ "row_growth_multiplier": { "type": "number" },
692
+ "per_table_row_growth": { "type": "object" },
693
+ "include_explain_json": { "type": "boolean" }
694
+ },
695
+ "required": ["query"]
696
+ },
697
+ "output_schema": {
698
+ "type": "object",
699
+ "properties": {
700
+ "status": { "type": "string" },
701
+ "data": { "type": "object" },
702
+ "error": { "type": ["string", "null"] }
703
+ }
704
+ }
705
+ },
706
+ {
707
+ "name": "forecast_database_growth",
708
+ "description": "Forecasts database/table growth based on current INFORMATION_SCHEMA sizes and user-supplied growth rate assumptions.",
709
+ "input_schema": {
710
+ "type": "object",
711
+ "properties": {
712
+ "horizon_days": { "type": "number" },
713
+ "growth_rate_percent_per_day": { "type": "number" },
714
+ "growth_rate_percent_per_month": { "type": "number" },
715
+ "per_table_growth_rate_percent_per_day": { "type": "object" },
716
+ "database": { "type": "string" }
717
+ }
718
+ },
719
+ "output_schema": {
720
+ "type": "object",
721
+ "properties": {
722
+ "status": { "type": "string" },
723
+ "data": { "type": "object" },
724
+ "error": { "type": ["string", "null"] }
725
+ }
726
+ }
619
727
  }
620
728
  ]
621
729
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@berthojoris/mcp-mysql-server",
3
- "version": "1.16.4",
3
+ "version": "1.18.0",
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",