UNPKG

@ai-sdk/mcp

Version:

The **Model Context Protocol (MCP) client** for the [AI SDK](https://ai-sdk.dev/docs) lets you connect to MCP servers and use their tools with AI SDK functions like `generateText` and `streamText`.

81 lines 2.05 kB
{ "name": "@ai-sdk/mcp", "version": "1.0.46", "license": "Apache-2.0", "sideEffects": false, "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "files": [ "dist/**/*", "src", "!src/**/*.test.ts", "!src/**/*.test-d.ts", "!src/**/__snapshots__", "!src/**/__fixtures__", "CHANGELOG.md", "README.md", "internal.d.ts" ], "exports": { "./package.json": "./package.json", ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" }, "./mcp-stdio": { "types": "./dist/mcp-stdio/index.d.ts", "import": "./dist/mcp-stdio/index.mjs", "module": "./dist/mcp-stdio/index.mjs", "require": "./dist/mcp-stdio/index.js" } }, "dependencies": { "pkce-challenge": "^5.0.0", "@ai-sdk/provider": "3.0.10", "@ai-sdk/provider-utils": "4.0.27" }, "devDependencies": { "@types/node": "20.17.24", "tsup": "^8", "typescript": "5.8.3", "vitest": "^4.1.0", "zod": "3.25.76", "@ai-sdk/test-server": "1.0.5", "@vercel/ai-tsconfig": "0.0.0" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" }, "engines": { "node": ">=18" }, "publishConfig": { "access": "public" }, "homepage": "https://ai-sdk.dev/docs", "repository": { "type": "git", "url": "https://github.com/vercel/ai", "directory": "packages/mcp" }, "bugs": { "url": "https://github.com/vercel/ai/issues" }, "keywords": [ "ai", "mcp" ], "scripts": { "build": "pnpm clean && tsup --tsconfig tsconfig.build.json", "build:watch": "pnpm clean && tsup --watch", "clean": "rm -rf dist *.tsbuildinfo", "type-check": "tsc --build", "test": "pnpm test:node && pnpm test:edge", "test:update": "pnpm test:node -u", "test:watch": "vitest --config vitest.node.config.js", "test:edge": "vitest --config vitest.edge.config.js --run", "test:node": "vitest --config vitest.node.config.js --run" } }