postgres-scout-mcp 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.
@@ -6,12 +6,14 @@ export class Logger {
6
6
  logLevel;
7
7
  toolLogPath;
8
8
  errorLogPath;
9
+ fileLoggingEnabled;
9
10
  constructor(logDir, logLevel = 'info') {
10
11
  this.logDir = logDir;
11
12
  this.logLevel = logLevel;
12
13
  this.toolLogPath = join(logDir, 'tool-usage.log');
13
14
  this.errorLogPath = join(logDir, 'error.log');
14
- if (!existsSync(logDir)) {
15
+ this.fileLoggingEnabled = process.env.ENABLE_LOGGING === 'true';
16
+ if (this.fileLoggingEnabled && !existsSync(logDir)) {
15
17
  mkdirSync(logDir, { recursive: true });
16
18
  }
17
19
  }
@@ -49,9 +51,11 @@ export class Logger {
49
51
  };
50
52
  const formatted = this.formatLogEntry(entry);
51
53
  console.error(formatted.trim());
52
- this.writeLog(this.toolLogPath, formatted);
53
- if (level === 'error') {
54
- this.writeLog(this.errorLogPath, formatted);
54
+ if (this.fileLoggingEnabled) {
55
+ this.writeLog(this.toolLogPath, formatted);
56
+ if (level === 'error') {
57
+ this.writeLog(this.errorLogPath, formatted);
58
+ }
55
59
  }
56
60
  }
57
61
  debug(tool, message, data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postgres-scout-mcp",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Scout your PostgreSQL databases with AI - A production-ready MCP server with safety features, monitoring, and data quality tools",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "node": "^20.19.0 || >=22.12.0"
46
46
  },
47
47
  "dependencies": {
48
- "@modelcontextprotocol/sdk": "^1.21.1",
48
+ "@modelcontextprotocol/sdk": "^1.27.1",
49
49
  "pg": "^8.11.3",
50
50
  "zod": "^3.25.76"
51
51
  },
@@ -55,5 +55,11 @@
55
55
  "typescript": "^5.9.3",
56
56
  "vitest": "^4.0.18"
57
57
  },
58
- "mcpName": "io.github.bluwork/postgres-scout-mcp"
58
+ "mcpName": "io.github.bluwork/postgres-scout-mcp",
59
+ "pnpm": {
60
+ "overrides": {
61
+ "ajv": ">=8.18.0",
62
+ "qs": ">=6.14.2"
63
+ }
64
+ }
59
65
  }