@softtechai/quickmcp 1.1.2 → 1.1.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.
- package/package.json +1 -1
- package/quickmcp-direct-stdio.js +6 -1
package/package.json
CHANGED
package/quickmcp-direct-stdio.js
CHANGED
|
@@ -262,7 +262,12 @@ function safeStartWebServer(port) {
|
|
|
262
262
|
process.prependOnceListener('uncaughtException', handler);
|
|
263
263
|
try {
|
|
264
264
|
logger.error(`[QuickMCP] Starting Web UI at http://localhost:${port || process.env.PORT || 3000}`);
|
|
265
|
-
require('./dist/server/server.js');
|
|
265
|
+
const webModule = require('./dist/server/server.js');
|
|
266
|
+
if (webModule && typeof webModule.startServer === 'function') {
|
|
267
|
+
webModule.startServer();
|
|
268
|
+
} else {
|
|
269
|
+
throw new Error('dist/server/server.js does not export startServer()');
|
|
270
|
+
}
|
|
266
271
|
} catch (e) {
|
|
267
272
|
// Synchronous load error
|
|
268
273
|
process.removeListener('uncaughtException', handler);
|