@ai-sdk/mcp 0.0.14 → 0.0.16

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @ai-sdk/mcp
2
2
 
3
+ ## 0.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a27a978]
8
+ - @ai-sdk/provider-utils@3.0.23
9
+
10
+ ## 0.0.15
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [6a2f01b]
15
+ - Updated dependencies [17d64e3]
16
+ - @ai-sdk/provider-utils@3.0.22
17
+
3
18
  ## 0.0.14
4
19
 
5
20
  ### Patch Changes
@@ -99,13 +114,13 @@
99
114
  This change replaces
100
115
 
101
116
  ```ts
102
- import { experimental_createMCPClient } from 'ai';
103
- import { Experimental_StdioMCPTransport } from 'ai/mcp-stdio';
117
+ import { experimental_createMCPClient } from "ai";
118
+ import { Experimental_StdioMCPTransport } from "ai/mcp-stdio";
104
119
  ```
105
120
 
106
121
  with
107
122
 
108
123
  ```ts
109
- import { experimental_createMCPClient } from '@ai-sdk/mcp';
110
- import { Experimental_StdioMCPTransport } from '@ai-sdk/mcp/mcp-stdio';
124
+ import { experimental_createMCPClient } from "@ai-sdk/mcp";
125
+ import { Experimental_StdioMCPTransport } from "@ai-sdk/mcp/mcp-stdio";
111
126
  ```
package/dist/index.js CHANGED
@@ -28,15 +28,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  ElicitResultSchema: () => ElicitResultSchema,
34
34
  ElicitationRequestSchema: () => ElicitationRequestSchema,
35
35
  UnauthorizedError: () => UnauthorizedError,
36
36
  auth: () => auth,
37
37
  experimental_createMCPClient: () => createMCPClient
38
38
  });
39
- module.exports = __toCommonJS(src_exports);
39
+ module.exports = __toCommonJS(index_exports);
40
40
 
41
41
  // src/tool/mcp-client.ts
42
42
  var import_provider_utils3 = require("@ai-sdk/provider-utils");
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/tool/mcp-stdio/index.ts
21
- var mcp_stdio_exports = {};
22
- __export(mcp_stdio_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  Experimental_StdioMCPTransport: () => StdioMCPTransport
24
24
  });
25
- module.exports = __toCommonJS(mcp_stdio_exports);
25
+ module.exports = __toCommonJS(index_exports);
26
26
 
27
27
  // src/tool/json-rpc-message.ts
28
28
  var import_v42 = require("zod/v4");
@@ -238,7 +238,7 @@ var MCPClientError = class extends (_b = AISDKError, _a = symbol, _b) {
238
238
  };
239
239
 
240
240
  // src/tool/mcp-stdio/create-child-process.ts
241
- import { spawn } from "node:child_process";
241
+ import { spawn } from "child_process";
242
242
 
243
243
  // src/tool/mcp-stdio/get-environment.ts
244
244
  function getEnvironment(customEnv) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/mcp",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -28,13 +28,13 @@
28
28
  "dependencies": {
29
29
  "pkce-challenge": "^5.0.0",
30
30
  "@ai-sdk/provider": "2.0.1",
31
- "@ai-sdk/provider-utils": "3.0.21"
31
+ "@ai-sdk/provider-utils": "3.0.23"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "20.17.24",
35
35
  "tsup": "^8",
36
36
  "typescript": "5.8.3",
37
- "vitest": "2.1.4",
37
+ "vitest": "^4.1.0",
38
38
  "zod": "3.25.76",
39
39
  "@ai-sdk/test-server": "0.0.2",
40
40
  "@vercel/ai-tsconfig": "0.0.0"
@@ -64,9 +64,7 @@
64
64
  "build": "pnpm clean && tsup --tsconfig tsconfig.build.json",
65
65
  "build:watch": "pnpm clean && tsup --watch",
66
66
  "clean": "rm -rf dist *.tsbuildinfo",
67
- "lint": "eslint \"./**/*.ts*\"",
68
67
  "type-check": "tsc --build",
69
- "prettier-check": "prettier --check \"./**/*.ts*\"",
70
68
  "test": "pnpm test:node && pnpm test:edge",
71
69
  "test:update": "pnpm test:node -u",
72
70
  "test:watch": "vitest --config vitest.node.config.js",