@myvillage/cli 1.23.0 → 1.23.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myvillage/cli",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.1",
|
|
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
|
-
|
|
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) {
|