UNPKG

@agentpaid/mcp-use

Version:

A utility library for integrating Model Context Protocol (MCP) with LangChain, Zod, and related tools. Provides helpers for schema conversion, event streaming, and SDK usage.

126 lines (125 loc) 4.28 kB
{ "name": "@agentpaid/mcp-use", "type": "module", "version": "0.1.9", "packageManager": "pnpm@10.6.1", "description": "A utility library for integrating Model Context Protocol (MCP) with LangChain, Zod, and related tools. Provides helpers for schema conversion, event streaming, and SDK usage.", "author": "Zane", "license": "MIT", "homepage": "https://github.com/mcp-use/mcp-use-ts#readme", "repository": { "type": "git", "url": "git+https://github.com/mcp-use/mcp-use-ts.git" }, "bugs": { "url": "https://github.com/mcp-use/mcp-use-ts/issues" }, "keywords": [ "MCP", "Model Context Protocol", "LangChain", "Zod", "schema", "SDK", "eventsource", "AI", "utility", "typescript" ], "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist-cjs/index.js" } }, "main": "./dist-cjs/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist", "dist-cjs" ], "engines": { "node": ">=22.0.0" }, "publishConfig": { "registry": "https://registry.npmjs.org", "access": "public" }, "scripts": { "build": "shx rm -rf dist && tsc", "build:cjs": "shx rm -rf dist-cjs && tsc --project tsconfig.cjs.json && node scripts/create-cjs-package.cjs", "build:all": "npm run build && npm run build:cjs", "lint": "eslint", "lint:fix": "eslint --fix", "test": "vitest", "test:run": "vitest run", "test:simple": "vitest run tests/stream_events_simple.test.ts", "test:integration": "vitest run tests/stream_events.test.ts", "watch": "tsc --watch", "start": "node dist/index.js", "prepublishOnly": "npm run build:all", "fmt": "eslint --fix", "release": "npm version patch --tag-version-prefix=v && git push --follow-tags", "release:minor": "npm version minor --tag-version-prefix=v && git push --follow-tags", "release:major": "npm version major --tag-version-prefix=v && git push --follow-tags", "prepare": "husky", "example:airbnb": "npm run build && node dist/examples/airbnb_use.js", "example:browser": "npm run build && node dist/examples/browser_use.js", "example:chat": "npm run build && node dist/examples/chat_example.js", "example:stream": "npm run build && node dist/examples/stream_example.js", "example:stream_events": "npm run build && node dist/examples/stream_events_example.js", "example:ai_sdk": "npm run build && node dist/examples/ai_sdk_example.js", "example:filesystem": "npm run build && node dist/examples/filesystem_use.js", "example:http": "npm run build && node dist/examples/http_example.js", "example:everything": "npm run build && node dist/examples/mcp_everything.js", "example:multi": "npm run build && node dist/examples/multi_server_example.js", "example:sandbox": "npm run build && node dist/examples/sandbox_everything.js", "example:oauth": "npm run build && node dist/examples/simple_oauth_example.js", "example:blender": "npm run build && node dist/examples/blender_use.js", "example:add_server": "npm run build && node dist/examples/add_server_tool.js" }, "dependencies": { "@dmitryrechkin/json-schema-to-zod": "^1.0.1", "@langchain/anthropic": "^0.3.14", "@langchain/core": "0.3.58", "@langchain/openai": "^0.5.15", "@modelcontextprotocol/sdk": "1.12.1", "@scarf/scarf": "^1.4.0", "ai": "^4.3.19", "dotenv": "^16.5.0", "eventsource": "^3.0.6", "fastembed": "^1.14.4", "langchain": "^0.3.27", "lodash": "^4.17.21", "lodash-es": "^4.17.21", "posthog-node": "^5.1.1", "uuid": "^11.1.0", "winston": "^3.17.0", "ws": "^8.18.2", "zod": "^3.25.48", "zod-to-json-schema": "^3.24.5" }, "devDependencies": { "@antfu/eslint-config": "^4.13.2", "@types/lodash-es": "^4.17.12", "@types/node": "^20.19.8", "@types/ws": "^8.18.1", "eslint": "^9.28.0", "eslint-plugin-format": "^1.0.1", "husky": "^9.1.7", "lint-staged": "^15.2.11", "shx": "^0.4.0", "typescript": "^5.8.3", "vitest": "^2.1.9" }, "lint-staged": { "*.{js,ts}": [ "npm run lint" ], "**/*.ts": [ "npm run build" ] } }