examples: AI SDK example fails to install on a fresh checkout
Author: Darshan174Created Sep 26, 2026Updated Sep 26, 2026
LabelsbugdocumentationTypeScriptrepoclientblockedmcp-use/mcp-use
Describe the bug
The install command in packages/client/examples/node/ai-sdk-openai/README.md fails on a fresh checkout:
pnpm install --ignore-workspace --frozen-lockfileIt fails for two reasons:
- No lockfile.
--frozen-lockfilerequires apnpm-lock.yaml, but the example doesn't ship one (it was intentionally left out in #2445 viachore(client): omit example lockfile). So the README command exits withERR_PNPM_NO_LOCKFILE.
- Blocked esbuild build. Dropping
--frozen-lockfilegets further, but on the repo's pinned pnpm (11.13.1) the install exits withERR_PNPM_IGNORED_BUILDSforesbuild. The repo allows esbuild inlibraries/typescript/pnpm-workspace.yaml, but--ignore-workspaceskips that file, so the permission never applies here. The packages do get installed, but the command exits with code 1, which breaks anything chained after it.
To Reproduce Steps to reproduce the behavior:
- Fresh clone,
canary cd libraries/typescript/packages/client/examples/node/ai-sdk-openaipnpm install --ignore-workspace --frozen-lockfile→ERR_PNPM_NO_LOCKFILEpnpm install --ignore-workspace→ERR_PNPM_IGNORED_BUILDS(exit 1)
Expected behavior The README's install command should work on a clean checkout with the repo's pinned pnpm.
Screenshots
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
esbuild only comes in through tsx, which runs index.ts. The example already requires Node >= 22.22.2, which runs TypeScript files natively, so tsx may not be needed at all. I'm happy to open a PR
Source: mcp-use/mcp-use