@myvillage/cli 1.23.0 → 1.23.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myvillage/cli",
3
- "version": "1.23.0",
3
+ "version": "1.23.2",
4
4
  "description": "MyVillageOS CLI for community developers",
5
5
  "type": "module",
6
6
  "bin": {
@@ -27,6 +27,7 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@ai-sdk/anthropic": "^1.0.0",
30
+ "@ai-sdk/mcp": "^1.0.42",
30
31
  "@ai-sdk/openai": "^3.0.33",
31
32
  "ai": "^6.0.0",
32
33
  "axios": "^1.6.2",
@@ -36,7 +36,10 @@ export async function getMCPTools(agentDir, agentConfig) {
36
36
  const transport = server.url ? 'sse' : 'stdio';
37
37
 
38
38
  try {
39
- const { experimental_createMCPClient: createMCPClient } = await import('ai');
39
+ // AI SDK v6 moved the MCP client into a separate package
40
+ // (`@ai-sdk/mcp`). Importing from `ai` returns undefined on v6 and
41
+ // throws "createMCPClient is not a function" when called.
42
+ const { experimental_createMCPClient: createMCPClient } = await import('@ai-sdk/mcp');
40
43
  let client;
41
44
 
42
45
  if (server.url) {
@@ -430,7 +430,15 @@ export async function agentStartCommand(name) {
430
430
  }
431
431
  console.log(brand.teal(` Logs: myvillage agent logs ${name}\n`));
432
432
  } else {
433
- spinner.fail(`Agent "${name}" failed to start. Check logs for details.`);
433
+ spinner.fail(`Agent "${name}" failed to start.`);
434
+ // Try to surface the most recent error log entry so the developer
435
+ // doesn't have to dig through a JSONL file by hand.
436
+ const recent = readAgentLogs(name, { limit: 30 });
437
+ const lastError = [...recent].reverse().find(e => e.type === 'error');
438
+ if (lastError?.error) {
439
+ console.log(chalk.red(` ${lastError.error}`));
440
+ }
441
+ console.log(brand.teal(` Full logs: myvillage agent logs ${name}\n`));
434
442
  }
435
443
  } catch (err) {
436
444
  spinner.fail(`Failed to start agent: ${err.message}`);