@ai-sdk/mcp 0.0.15 → 0.0.17

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,21 @@
1
1
  # @ai-sdk/mcp
2
2
 
3
+ ## 0.0.17
4
+
5
+ ### Patch Changes
6
+
7
+ - 0a00b9b: trigger release for all packages after provenance setup
8
+ - Updated dependencies [0a00b9b]
9
+ - @ai-sdk/provider@2.0.2
10
+ - @ai-sdk/provider-utils@3.0.24
11
+
12
+ ## 0.0.16
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [a27a978]
17
+ - @ai-sdk/provider-utils@3.0.23
18
+
3
19
  ## 0.0.15
4
20
 
5
21
  ### Patch Changes
@@ -107,13 +123,13 @@
107
123
  This change replaces
108
124
 
109
125
  ```ts
110
- import { experimental_createMCPClient } from 'ai';
111
- import { Experimental_StdioMCPTransport } from 'ai/mcp-stdio';
126
+ import { experimental_createMCPClient } from "ai";
127
+ import { Experimental_StdioMCPTransport } from "ai/mcp-stdio";
112
128
  ```
113
129
 
114
130
  with
115
131
 
116
132
  ```ts
117
- import { experimental_createMCPClient } from '@ai-sdk/mcp';
118
- import { Experimental_StdioMCPTransport } from '@ai-sdk/mcp/mcp-stdio';
133
+ import { experimental_createMCPClient } from "@ai-sdk/mcp";
134
+ import { Experimental_StdioMCPTransport } from "@ai-sdk/mcp/mcp-stdio";
119
135
  ```
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.15",
3
+ "version": "0.0.17",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -27,16 +27,16 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "pkce-challenge": "^5.0.0",
30
- "@ai-sdk/provider": "2.0.1",
31
- "@ai-sdk/provider-utils": "3.0.22"
30
+ "@ai-sdk/provider-utils": "3.0.24",
31
+ "@ai-sdk/provider": "2.0.2"
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
- "@ai-sdk/test-server": "0.0.2",
39
+ "@ai-sdk/test-server": "0.0.3",
40
40
  "@vercel/ai-tsconfig": "0.0.0"
41
41
  },
42
42
  "peerDependencies": {
@@ -51,7 +51,8 @@
51
51
  "homepage": "https://ai-sdk.dev/docs",
52
52
  "repository": {
53
53
  "type": "git",
54
- "url": "git+https://github.com/vercel/ai.git"
54
+ "url": "https://github.com/vercel/ai",
55
+ "directory": "packages/mcp"
55
56
  },
56
57
  "bugs": {
57
58
  "url": "https://github.com/vercel/ai/issues"
@@ -64,9 +65,7 @@
64
65
  "build": "pnpm clean && tsup --tsconfig tsconfig.build.json",
65
66
  "build:watch": "pnpm clean && tsup --watch",
66
67
  "clean": "rm -rf dist *.tsbuildinfo",
67
- "lint": "eslint \"./**/*.ts*\"",
68
68
  "type-check": "tsc --build",
69
- "prettier-check": "prettier --check \"./**/*.ts*\"",
70
69
  "test": "pnpm test:node && pnpm test:edge",
71
70
  "test:update": "pnpm test:node -u",
72
71
  "test:watch": "vitest --config vitest.node.config.js",