@berthojoris/mcp-mysql-server 1.33.4 → 1.33.5
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 +7 -0
- package/DOCUMENTATIONS.md +2 -2
- package/README.md +1 -1
- package/bin/mcp-mysql.js +5 -37
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ 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.33.5] - 2026-01-25
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **MCP Connection Issue**: Fixed stdio communication problem that prevented MCP clients (Droid CLI, Claude, etc.) from connecting when using `npx`
|
|
12
|
+
- Changed from spawning a child process to directly requiring the MCP server module, ensuring proper stdin/stdout communication for the MCP protocol
|
|
13
|
+
- Removed unused `path` and `child_process` imports from bin/mcp-mysql.js
|
|
14
|
+
|
|
8
15
|
## [1.33.4] - 2026-01-25
|
|
9
16
|
|
|
10
17
|
### Documentation
|
package/DOCUMENTATIONS.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# MySQL MCP Server - Documentation
|
|
2
2
|
|
|
3
|
-
**Last Updated:** 2026-01-
|
|
4
|
-
**Version:** 1.33.
|
|
3
|
+
**Last Updated:** 2026-01-25 11:30:00
|
|
4
|
+
**Version:** 1.33.5
|
|
5
5
|
**Total Tools:** 150
|
|
6
6
|
|
|
7
7
|
Comprehensive documentation for the MySQL MCP Server. For quick start, see [README.md](README.md).
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**A production-ready Model Context Protocol (MCP) server for MySQL database integration with AI agents**
|
|
6
6
|
|
|
7
|
-
**Last Updated:** 2026-01-
|
|
7
|
+
**Last Updated:** 2026-01-25 11:30:00
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@berthojoris/mcp-mysql-server)
|
|
10
10
|
[](https://www.npmjs.com/package/@berthojoris/mcp-mysql-server)
|
package/bin/mcp-mysql.js
CHANGED
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
* It implements the Model Context Protocol using stdio transport
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
const path = require("path");
|
|
10
|
-
const { spawn } = require("child_process");
|
|
11
9
|
const dotenv = require("dotenv");
|
|
12
10
|
|
|
13
11
|
dotenv.config();
|
|
@@ -157,42 +155,12 @@ if (!permissions && !categories) {
|
|
|
157
155
|
// Log to stderr (not stdout, which is used for MCP protocol)
|
|
158
156
|
console.error(`Starting MySQL MCP server with connection to ${dbMessage}`);
|
|
159
157
|
|
|
160
|
-
// Run the MCP server
|
|
158
|
+
// Run the MCP server directly (no child process spawn)
|
|
159
|
+
// This ensures proper stdio communication for MCP protocol
|
|
161
160
|
try {
|
|
162
|
-
//
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
// Spawn the MCP server process with stdio transport
|
|
166
|
-
// stdin/stdout are used for MCP protocol communication
|
|
167
|
-
// stderr is used for logging
|
|
168
|
-
const server = spawn("node", [serverPath], {
|
|
169
|
-
stdio: ["inherit", "inherit", "inherit"],
|
|
170
|
-
env: process.env,
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
// Handle server process events
|
|
174
|
-
server.on("error", (err) => {
|
|
175
|
-
console.error("Failed to start MCP server:", err);
|
|
176
|
-
process.exit(1);
|
|
177
|
-
});
|
|
178
|
-
|
|
179
|
-
server.on("exit", (code) => {
|
|
180
|
-
if (code !== 0 && code !== null) {
|
|
181
|
-
console.error(`MCP server exited with code ${code}`);
|
|
182
|
-
process.exit(code);
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
// Handle termination signals
|
|
187
|
-
process.on("SIGINT", () => {
|
|
188
|
-
console.error("Shutting down MySQL MCP server...");
|
|
189
|
-
server.kill("SIGINT");
|
|
190
|
-
});
|
|
191
|
-
|
|
192
|
-
process.on("SIGTERM", () => {
|
|
193
|
-
console.error("Shutting down MySQL MCP server...");
|
|
194
|
-
server.kill("SIGTERM");
|
|
195
|
-
});
|
|
161
|
+
// Directly require and execute the MCP server module
|
|
162
|
+
// This avoids stdio forwarding issues with child processes
|
|
163
|
+
require("../dist/mcp-server.js");
|
|
196
164
|
} catch (error) {
|
|
197
165
|
console.error("Error starting MCP server:", error.message);
|
|
198
166
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@berthojoris/mcp-mysql-server",
|
|
3
|
-
"version": "1.33.
|
|
3
|
+
"version": "1.33.5",
|
|
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",
|