@fnet/cli 0.119.2 → 0.119.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
CHANGED
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
app.use(express.json());
|
|
78
78
|
|
|
79
79
|
const port = args['cli-port'] || args.cli_port || 3000;
|
|
80
|
-
const host = args['cli-host'] || args.cli_host || '
|
|
80
|
+
const host = args['cli-host'] || args.cli_host || '0.0.0.0';
|
|
81
81
|
const mcpEndpoint = '/mcp';
|
|
82
82
|
|
|
83
83
|
// Map to store transports by session ID
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
// Reuse existing transport
|
|
94
94
|
transport = transports[sessionId];
|
|
95
95
|
} else if (!sessionId && req.body && (req.body.method === 'initialize' ||
|
|
96
|
-
|
|
96
|
+
(Array.isArray(req.body) && req.body.some(item => item.method === 'initialize')))) {
|
|
97
97
|
// New initialization request
|
|
98
98
|
transport = new StreamableHTTPServerTransport({
|
|
99
99
|
sessionIdGenerator: () => {
|