@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 +1 -1
- package/src/cli/commands/debug.js +5 -4
- package/src/server.js +9 -11
package/package.json
CHANGED
|
@@ -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.
|
|
89
|
-
console.log(' 2.
|
|
90
|
-
console.log('
|
|
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('
|
|
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 (!
|
|
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
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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.
|
|
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
|
|