@lanonasis/cli 3.6.0 → 3.6.1
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/dist/utils/mcp-client.js +2 -0
- package/package.json +1 -1
package/dist/utils/mcp-client.js
CHANGED
|
@@ -74,11 +74,13 @@ export class MCPClient {
|
|
|
74
74
|
// 3) configured preference
|
|
75
75
|
// 4) default to 'websocket' (production-ready pm2 mcp-core)
|
|
76
76
|
const configuredMode = this.config.get('mcpConnectionMode');
|
|
77
|
+
const mcpPreference = this.config.get('mcpPreference');
|
|
77
78
|
const preferRemote = this.config.get('mcpUseRemote');
|
|
78
79
|
const connectionMode = options.connectionMode
|
|
79
80
|
?? (options.useWebSocket ? 'websocket' : undefined)
|
|
80
81
|
?? (options.useRemote ? 'remote' : undefined)
|
|
81
82
|
?? configuredMode
|
|
83
|
+
?? mcpPreference
|
|
82
84
|
?? (preferRemote ? 'remote' : 'websocket');
|
|
83
85
|
let wsUrl;
|
|
84
86
|
let serverUrl;
|
package/package.json
CHANGED