@mcp-use/cli 2.6.0-canary.10 → 2.6.0-canary.11
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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/format.d.ts +1 -1
- package/dist/utils/format.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2267,7 +2267,7 @@ async function deployCommand(options) {
|
|
|
2267
2267
|
// src/commands/client.ts
|
|
2268
2268
|
var import_commander = require("commander");
|
|
2269
2269
|
var import_node_readline = require("readline");
|
|
2270
|
-
var
|
|
2270
|
+
var import_client = require("mcp-use/client");
|
|
2271
2271
|
|
|
2272
2272
|
// src/utils/session-storage.ts
|
|
2273
2273
|
var import_node_os5 = require("os");
|
|
@@ -2584,7 +2584,7 @@ async function getOrRestoreSession(sessionName) {
|
|
|
2584
2584
|
return null;
|
|
2585
2585
|
}
|
|
2586
2586
|
try {
|
|
2587
|
-
const client = new
|
|
2587
|
+
const client = new import_client.MCPClient();
|
|
2588
2588
|
if (config.type === "http") {
|
|
2589
2589
|
client.addServer(sessionName, {
|
|
2590
2590
|
url: config.url,
|
|
@@ -2612,7 +2612,7 @@ async function getOrRestoreSession(sessionName) {
|
|
|
2612
2612
|
async function connectCommand(urlOrCommand, options) {
|
|
2613
2613
|
try {
|
|
2614
2614
|
const sessionName = options.name || `session-${Date.now()}`;
|
|
2615
|
-
const client = new
|
|
2615
|
+
const client = new import_client.MCPClient();
|
|
2616
2616
|
let session;
|
|
2617
2617
|
if (options.stdio) {
|
|
2618
2618
|
const parts = urlOrCommand.split(" ");
|