@mcp-use/cli 1.0.18 → 1.0.19

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.
Files changed (2) hide show
  1. package/dist/cli.js +13 -3
  2. package/package.json +1 -2
package/dist/cli.js CHANGED
@@ -248592,7 +248592,7 @@ var MCPClient = class _MCPClient {
248592
248592
 
248593
248593
  // source/services/agent-service.ts
248594
248594
  setTelemetrySource("CLI");
248595
- Logger2.setDebug(0);
248595
+ Logger2.configure({ level: "warn" });
248596
248596
  var AgentService = class {
248597
248597
  agent = null;
248598
248598
  client = null;
@@ -248600,8 +248600,14 @@ var AgentService = class {
248600
248600
  constructor(deps) {
248601
248601
  this.llmService = deps.llmService;
248602
248602
  this.client = new MCPClient({});
248603
+ const llm = this.llmService.createLLM();
248604
+ if (!llm) {
248605
+ throw new Error(
248606
+ "LLM Service could not create a model. Check your configuration."
248607
+ );
248608
+ }
248603
248609
  this.agent = new MCPAgent({
248604
- llm: this.llmService.createLLM(),
248610
+ llm,
248605
248611
  client: this.client,
248606
248612
  maxSteps: 15,
248607
248613
  memoryEnabled: true
@@ -248735,9 +248741,13 @@ var AgentService = class {
248735
248741
  if (!this.agent || !this.client) {
248736
248742
  throw new Error("Agent not initialized");
248737
248743
  }
248744
+ const llm = this.llmService.createLLM();
248745
+ if (!llm) {
248746
+ throw new Error("LLM not available. Agent could not be reinitialized.");
248747
+ }
248738
248748
  const newClient = new MCPClient(this.client.getConfig());
248739
248749
  this.agent = new MCPAgent({
248740
- llm: this.llmService.createLLM(),
248750
+ llm,
248741
248751
  client: newClient,
248742
248752
  maxSteps: 30,
248743
248753
  memoryEnabled: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-use/cli",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "license": "MIT",
5
5
  "description": "CLI for interacting with Model Context Protocol servers via natural language",
6
6
  "keywords": [
@@ -57,7 +57,6 @@
57
57
  "cli-spinners": "^3.2.0",
58
58
  "dotenv": "^16.5.0",
59
59
  "ink": "^5.2.1",
60
- "ink-big-text": "^2.0.0",
61
60
  "ink-gradient": "^3.0.0",
62
61
  "ink-link": "^4.1.0",
63
62
  "mcp-use": "^0.1.2",