@mcp-use/cli 1.0.9 → 1.0.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/cli.js +21 -15
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -279363,9 +279363,7 @@ var LLMService = class {
|
|
|
279363
279363
|
}
|
|
279364
279364
|
createLLM() {
|
|
279365
279365
|
if (!this.currentLLMConfig) {
|
|
279366
|
-
|
|
279367
|
-
"No LLM configured. Use /model command to select a provider and model."
|
|
279368
|
-
);
|
|
279366
|
+
return null;
|
|
279369
279367
|
}
|
|
279370
279368
|
const config3 = this.currentLLMConfig;
|
|
279371
279369
|
const providerInfo = PROVIDERS[config3.provider];
|
|
@@ -279969,10 +279967,10 @@ This command will test if the server package can be started manually.`
|
|
|
279969
279967
|
|
|
279970
279968
|
Command: ${result.command}
|
|
279971
279969
|
|
|
279972
|
-
|
|
279970
|
+
Note: This will attempt to run the server command manually.
|
|
279973
279971
|
Check the console for output and errors.
|
|
279974
279972
|
|
|
279975
|
-
|
|
279973
|
+
Try running this command manually in your terminal:
|
|
279976
279974
|
${result.command}`,
|
|
279977
279975
|
data: { testServer: true, serverName, command: result.command }
|
|
279978
279976
|
};
|
|
@@ -280202,14 +280200,14 @@ Available slash commands:
|
|
|
280202
280200
|
statusText += "\n";
|
|
280203
280201
|
if (!currentConfig) {
|
|
280204
280202
|
if (availableProviders.length === 0) {
|
|
280205
|
-
statusText += "
|
|
280203
|
+
statusText += " No model selected\n";
|
|
280206
280204
|
statusText += "\nChoose a model to get started:\n";
|
|
280207
280205
|
statusText += "\u2022 /model openai gpt-4o-mini\n";
|
|
280208
280206
|
statusText += "\u2022 /model anthropic claude-3-5-sonnet-20241022\n";
|
|
280209
280207
|
statusText += "\u2022 /model google gemini-1.5-pro\n";
|
|
280210
280208
|
statusText += "\nThe CLI will help you set up API keys when needed.";
|
|
280211
280209
|
} else {
|
|
280212
|
-
statusText += "
|
|
280210
|
+
statusText += " No model selected\n";
|
|
280213
280211
|
statusText += `
|
|
280214
280212
|
Available providers: ${availableProviders.join(
|
|
280215
280213
|
", "
|
|
@@ -280845,7 +280843,7 @@ Configured servers: ${configuredServers.join(
|
|
|
280845
280843
|
await this.agentService.connectServer(serverName, serverConfig);
|
|
280846
280844
|
return {
|
|
280847
280845
|
type: "success",
|
|
280848
|
-
message:
|
|
280846
|
+
message: `Connected to server "${serverName}"!`,
|
|
280849
280847
|
data: { reinitializeAgent: true }
|
|
280850
280848
|
};
|
|
280851
280849
|
} catch (error) {
|
|
@@ -282934,7 +282932,7 @@ function ToolStatus({ tools, error }) {
|
|
|
282934
282932
|
"\u274C Error: ",
|
|
282935
282933
|
error
|
|
282936
282934
|
] }),
|
|
282937
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { children: "
|
|
282935
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { children: " This might indicate:" }),
|
|
282938
282936
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box_default, { marginLeft: 2, flexDirection: "column", children: [
|
|
282939
282937
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { children: "\u2022 MCP servers failed to start" }),
|
|
282940
282938
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { children: "\u2022 Connection issues with configured servers" })
|
|
@@ -283360,6 +283358,17 @@ function App2() {
|
|
|
283360
283358
|
};
|
|
283361
283359
|
setMessages((prev) => [...prev, userMessage]);
|
|
283362
283360
|
setInput("");
|
|
283361
|
+
if (currentModel.includes("No") && !trimmedInput.startsWith("/")) {
|
|
283362
|
+
const errorMessage = {
|
|
283363
|
+
id: (Date.now() + 1).toString(),
|
|
283364
|
+
role: "assistant",
|
|
283365
|
+
content: `No model configured. Use /model to select a provider and model.`,
|
|
283366
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
283367
|
+
};
|
|
283368
|
+
setMessages((prev) => [...prev, errorMessage]);
|
|
283369
|
+
setIsLoading(false);
|
|
283370
|
+
return;
|
|
283371
|
+
}
|
|
283363
283372
|
setIsLoading(true);
|
|
283364
283373
|
try {
|
|
283365
283374
|
const stream = cliService.sendMessage(trimmedInput);
|
|
@@ -283463,7 +283472,7 @@ function App2() {
|
|
|
283463
283472
|
"\u274C ",
|
|
283464
283473
|
initializationError
|
|
283465
283474
|
] }) }),
|
|
283466
|
-
!initializationError &&
|
|
283475
|
+
!initializationError && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
283467
283476
|
Box_default,
|
|
283468
283477
|
{
|
|
283469
283478
|
marginBottom: 1,
|
|
@@ -283475,12 +283484,9 @@ function App2() {
|
|
|
283475
283484
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AsciiLogo, {}),
|
|
283476
283485
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text, { color: "gray", children: "Welcome to MCP-Use CLI!" }),
|
|
283477
283486
|
currentModel.includes("No") ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
283478
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.
|
|
283479
|
-
"\u26A0\uFE0F ",
|
|
283480
|
-
currentModel
|
|
283481
|
-
] }),
|
|
283487
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text, { color: "yellow", children: currentModel }),
|
|
283482
283488
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text, { color: "gray", children: "Choose a model to get started - the CLI will help you set up the API key." }),
|
|
283483
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text, { color: "cyan", children: "
|
|
283489
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text, { color: "cyan", children: "Try: /model openai gpt-4o-mini" }),
|
|
283484
283490
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text, { color: "gray", children: "Or use /models to see all options, /help for commands." })
|
|
283485
283491
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
283486
283492
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text, { color: "gray", children: "Type your message and press Enter to start chatting." }),
|