mcp-db-analyzer 0.2.12 → 0.2.13

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.
@@ -34,7 +34,7 @@ async function analyzePostgresConnections() {
34
34
  let totalConnections = 0;
35
35
  for (const row of summary.rows) {
36
36
  lines.push(`| ${row.state} | ${row.count} |`);
37
- totalConnections += parseInt(row.count, 10);
37
+ totalConnections += parseInt(row.count, 10) || 0;
38
38
  }
39
39
  lines.push(`| **Total** | **${totalConnections}** |`);
40
40
  lines.push("");
@@ -158,7 +158,7 @@ async function analyzeMysqlConnections() {
158
158
  let total = 0;
159
159
  for (const row of summary.rows) {
160
160
  lines.push(`| ${row.state} | ${row.count} |`);
161
- total += parseInt(row.count, 10);
161
+ total += parseInt(row.count, 10) || 0;
162
162
  }
163
163
  lines.push(`| **Total** | **${total}** |`);
164
164
  lines.push("");
package/build/index.js CHANGED
@@ -248,7 +248,7 @@ server.tool("analyze_slow_queries", "Find the slowest queries using pg_stat_stat
248
248
  }
249
249
  });
250
250
  // Tool 7: analyze_connections
251
- server.tool("analyze_connections", "Analyze active database connections. Detects idle-in-transaction sessions (which hold locks and block other queries), long-running queries (flagged at >30 seconds), lock contention between sessions, and connection pool utilization. PostgreSQL and MySQL only.", {
251
+ server.tool("analyze_connections", "Analyze active database connections. Detects idle-in-transaction sessions and lock contention between sessions (PostgreSQL), long-running queries flagged at >30 seconds, and connection pool utilization. Idle-in-transaction and lock contention detection are not available on MySQL — use this tool's output to investigate PostgreSQL-specific blocking scenarios. Not available for SQLite.", {
252
252
  timeout_ms: timeoutParam,
253
253
  }, async ({ timeout_ms }) => {
254
254
  applyTimeout(timeout_ms);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-db-analyzer",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "MCP server for PostgreSQL, MySQL, and SQLite schema analysis, index optimization, and query plan inspection",
5
5
  "mcpName": "io.github.dmitriusan/mcp-db-analyzer",
6
6
  "author": "Dmytro Lisnichenko",