@praise25/mcp-server-mysql 1.0.1 → 1.0.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.
- package/dist/index.js +2 -1
- package/dist/src/config/index.js +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import express from "express";
|
|
|
12
12
|
import { fileURLToPath } from 'url';
|
|
13
13
|
import crypto from 'crypto';
|
|
14
14
|
import helmet from 'helmet';
|
|
15
|
+
import fs from 'fs';
|
|
15
16
|
log("info", `Starting MySQL MCP server v${version}...`);
|
|
16
17
|
const toolVersion = `MySQL MCP Server [v${process.env.npm_package_version}]`;
|
|
17
18
|
let toolDescription = `[${toolVersion}] Run SQL queries against MySQL database`;
|
|
@@ -291,7 +292,7 @@ const isMainModule = () => {
|
|
|
291
292
|
}
|
|
292
293
|
if (typeof import.meta !== 'undefined' && import.meta.url && process.argv[1]) {
|
|
293
294
|
const currentModulePath = fileURLToPath(import.meta.url);
|
|
294
|
-
const mainScriptPath = path.resolve(process.argv[1]);
|
|
295
|
+
const mainScriptPath = fs.realpathSync(path.resolve(process.argv[1]));
|
|
295
296
|
return currentModulePath === mainScriptPath;
|
|
296
297
|
}
|
|
297
298
|
return false;
|
package/dist/src/config/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as dotenv from "dotenv";
|
|
2
2
|
import { parseSchemaPermissions } from "../utils/index.js";
|
|
3
|
-
export const MCP_VERSION = "
|
|
3
|
+
export const MCP_VERSION = "1.0.3";
|
|
4
4
|
dotenv.config();
|
|
5
5
|
if (process.env.NODE_ENV === "test" && !process.env.MYSQL_DB) {
|
|
6
6
|
process.env.MYSQL_DB = "mcp_test_db";
|
|
@@ -20,7 +20,7 @@ export const MYSQL_MAX_QUERY_COMPLEXITY = Number(process.env.MYSQL_MAX_QUERY_COM
|
|
|
20
20
|
export const isMultiDbMode = !process.env.MYSQL_DB || process.env.MYSQL_DB.trim() === "";
|
|
21
21
|
export const mcpConfig = {
|
|
22
22
|
server: {
|
|
23
|
-
name: "@
|
|
23
|
+
name: "@praise25/mcp-server-mysql",
|
|
24
24
|
version: MCP_VERSION,
|
|
25
25
|
connectionTypes: ["stdio", "streamableHttp"],
|
|
26
26
|
},
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praise25/mcp-server-mysql",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "MCP server for interacting with MySQL databases based on Node",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SteveFunso",
|
|
7
7
|
"repository": {
|
|
8
|
-
"url": "https://github.com/SteveFunso/mcp-server-mysql.git"
|
|
8
|
+
"url": "git+https://github.com/SteveFunso/mcp-server-mysql.git"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
11
|
"main": "dist/index.js",
|
|
@@ -82,4 +82,4 @@
|
|
|
82
82
|
"mcp-options",
|
|
83
83
|
"mcp-head"
|
|
84
84
|
]
|
|
85
|
-
}
|
|
85
|
+
}
|