it-tools-mcp 5.2.6 → 5.2.8

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/build/index.js CHANGED
@@ -352,13 +352,12 @@ server.server.setRequestHandler(z.object({
352
352
  const oldLevelName = Object.keys(LOG_LEVELS).find(k => LOG_LEVELS[k] === currentLogLevel);
353
353
  currentLogLevel = LOG_LEVELS[level];
354
354
  mcpLog('info', `Log level changed from ${oldLevelName} to ${level}`);
355
- // Per-spec the server may return an empty result; returning a small
356
- // confirmation object is helpful for clients and tooling.
357
- return {
358
- previousLevel: oldLevelName,
359
- newLevel: level,
360
- message: `Logging level set to ${level}`
361
- };
355
+ // Per-spec the server may return an empty result. Returning an empty
356
+ // object here avoids surprising clients/tools that strictly validate
357
+ // response shapes (the Inspector/CLI validates responses and will
358
+ // reject unknown keys). If clients need details, they can call the
359
+ // `logging_status` tool or rely on logging notifications.
360
+ return {};
362
361
  });
363
362
  // Add logging status tool
364
363
  server.registerTool("logging_status", {
@@ -26,7 +26,8 @@ export function registerGenerateQr(server) {
26
26
  };
27
27
  }
28
28
  // Generate QR code as base64 data URL
29
- console.log(`[DEBUG] Generating QR code for: "${text}" with size: ${size}`);
29
+ // Use stderr for debug logs so we don't corrupt stdio-based MCP transport
30
+ console.error(`[DEBUG] Generating QR code for: "${text}" with size: ${size}`);
30
31
  const dataUrl = await QRCode.toDataURL(text, {
31
32
  type: 'image/png',
32
33
  errorCorrectionLevel: 'M',
@@ -37,7 +38,7 @@ export function registerGenerateQr(server) {
37
38
  light: '#FFFFFF' // White
38
39
  }
39
40
  });
40
- console.log(`[DEBUG] QR code generated successfully`);
41
+ console.error(`[DEBUG] QR code generated successfully`);
41
42
  // Extract just the base64 data (remove the data:image/png;base64, prefix)
42
43
  const base64Data = dataUrl.split(',')[1];
43
44
  const markdown = `![QR Code](data:image/png;base64,${base64Data})`;
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "it-tools-mcp",
3
- "version": "5.2.6",
4
- "description": "Full MCP 2025-06-18 compliant server with 121+ IT tools, logging, ping, progress tracking, cancellation, and sampling utilities",
3
+ "version": "5.2.8",
4
+ "description": "MCP-compliant server access to over 100 IT tools and utilities commonly used by developers, system administrators, and IT professionals.",
5
+ "mcpName": "io.github.wrenchpilot/it-tools-mcp",
5
6
  "type": "module",
6
7
  "main": "./build/index.js",
7
8
  "bin": {