@andezdev/tokenlite-mysql-mcp 3.0.0 → 3.1.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/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { registerTableResources } from "./resources/tables.js";
|
|
|
11
11
|
import { buildSchemaGraph } from "./db/schema.js";
|
|
12
12
|
import { initMetadata } from "./db/metadata.js";
|
|
13
13
|
import { closePool } from "./db/index.js";
|
|
14
|
-
import { initLogger } from "./utils/logger.js";
|
|
14
|
+
import { initLogger, log } from "./utils/logger.js";
|
|
15
15
|
import dotenv from "dotenv";
|
|
16
16
|
dotenv.config({ quiet: true });
|
|
17
17
|
async function main() {
|
|
@@ -25,7 +25,12 @@ async function main() {
|
|
|
25
25
|
});
|
|
26
26
|
initLogger(server);
|
|
27
27
|
// Build Semantic Graph on startup
|
|
28
|
-
|
|
28
|
+
try {
|
|
29
|
+
await buildSchemaGraph();
|
|
30
|
+
}
|
|
31
|
+
catch (e) {
|
|
32
|
+
log("warning", `Failed to build schema graph on startup: ${e instanceof Error ? e.message : String(e)}. The server will start in degraded mode.`);
|
|
33
|
+
}
|
|
29
34
|
// Load Metadata and Templates
|
|
30
35
|
initMetadata();
|
|
31
36
|
// Generate or use provided tool prefix (dev_, prod_ ...)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@andezdev/tokenlite-mysql-mcp",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"mcpName": "io.github.andezdev/tokenlite-mysql-mcp",
|
|
5
5
|
"description": "A secure, efficient, and intelligent MySQL server for the Model Context Protocol",
|
|
6
6
|
"main": "dist/index.js",
|