#2670·mcp-use

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:

bash
pnpm install --ignore-workspace --frozen-lockfile

It fails for two reasons:

  1. No lockfile. --frozen-lockfile requires a pnpm-lock.yaml, but the example doesn't ship one (it was intentionally left out in #2445 via chore(client): omit example lockfile). So the README command exits with ERR_PNPM_NO_LOCKFILE.
Image
  1. Blocked esbuild build. Dropping --frozen-lockfile gets further, but on the repo's pinned pnpm (11.13.1) the install exits with ERR_PNPM_IGNORED_BUILDS for esbuild. The repo allows esbuild in libraries/typescript/pnpm-workspace.yaml, but --ignore-workspace skips 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:

  1. Fresh clone, canary
  2. cd libraries/typescript/packages/client/examples/node/ai-sdk-openai
  3. pnpm install --ignore-workspace --frozen-lockfile → ERR_PNPM_NO_LOCKFILE
  4. pnpm 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 Image

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