@proofofprotocol/inscribe-mcp 0.3.3 → 0.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proofofprotocol/inscribe-mcp",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Verifiable inscription for AI agents - inscribe anything to blockchain with Hedera HCS",
5
5
  "type": "module",
6
6
  "main": "src/server.js",
@@ -85,9 +85,10 @@ export const debugCommand = new Command('debug')
85
85
  console.log(`Auto-off: in ${durationMinutes} minutes`);
86
86
  console.log('');
87
87
  console.log(colors.bold('Next steps:'));
88
- console.log(' 1. ' + colors.cyan('Restart Claude Desktop') + ' to apply');
89
- console.log(' 2. Use inscribe tools to generate debug traces');
90
- console.log(' 3. ' + colors.cyan('inscribe-mcp show --debug') + ' to view traces');
88
+ console.log(' 1. Use inscribe tools to generate debug traces');
89
+ console.log(' 2. ' + colors.cyan('inscribe-mcp show --debug') + ' to view traces');
90
+ console.log('');
91
+ console.log(colors.dim('No restart required - takes effect immediately.'));
91
92
  console.log('');
92
93
  process.exit(EXIT_CODES.SUCCESS);
93
94
  }
@@ -97,7 +98,7 @@ export const debugCommand = new Command('debug')
97
98
  console.log('');
98
99
  console.log(colors.green('✓') + ' Debug mode ' + colors.dim('OFF'));
99
100
  console.log('');
100
- console.log('Restart Claude Desktop to apply.');
101
+ console.log(colors.dim('Takes effect immediately.'));
101
102
  console.log('');
102
103
  process.exit(EXIT_CODES.SUCCESS);
103
104
  }
package/src/server.js CHANGED
@@ -55,14 +55,12 @@ function isDebugEnabled() {
55
55
  }
56
56
  }
57
57
 
58
- // Debug mode check (evaluated at startup)
59
- const DEBUG = isDebugEnabled();
60
-
61
58
  /**
62
59
  * Debug log to stderr (safe for MCP stdio transport)
60
+ * Checks config on each call for hot-reload support
63
61
  */
64
62
  function debugLog(phase, data = {}) {
65
- if (!DEBUG) return;
63
+ if (!isDebugEnabled()) return;
66
64
 
67
65
  const timestamp = new Date().toISOString();
68
66
  const message = {
@@ -218,16 +216,16 @@ async function main() {
218
216
  const transport = new StdioServerTransport();
219
217
  await server.connect(transport);
220
218
 
221
- if (DEBUG) {
222
- console.error('inscribe-mcp server started (stdio) [DEBUG MODE]');
223
- console.error('Debug logs will be written to stderr');
219
+ // Log startup (debug mode is now hot-reloadable)
220
+ console.error('inscribe-mcp server started (stdio)');
221
+
222
+ // Initial debug log if enabled
223
+ if (isDebugEnabled()) {
224
+ console.error('Debug mode is currently ON (hot-reloadable)');
224
225
  debugLog('server_start', {
225
- version: '0.3.3',
226
- debug: true,
226
+ version: '0.3.4',
227
227
  tools: allTools.map(t => t.name)
228
228
  });
229
- } else {
230
- console.error('inscribe-mcp server started (stdio)');
231
229
  }
232
230
  }
233
231