You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Example files are currently excluded from the TypeScript build process via tsconfig.json, which causes the example scripts to fail when executed via npm scripts.
To Reproduce
Steps to reproduce the behavior:
Clone the repository
git clone https://github.com/mcp-use/mcp-use-ts.git
cd mcp-use-ts
Install the dependencies
npm install
Run an example script: (or any other example)
npm run example:browser
Observe the error: Error: Cannot find module '/mcp-use-ts/dist/examples/browser_use.js'
Expected behavior
Example files should be compiled to the dist/examples/ directory so that the npm example scripts can execute them successfully.
Environment
Node version: 23.9.0
npm/yarn/pnpm version: npm v10.9.3
OS: macOS
Package version: 0.2.0
Additional context Potential fix
Update the tsconfig.json to include non-React examples in the build by adjusting the exclude list:
Describe the bug
Example files are currently excluded from the TypeScript build process via
tsconfig.json, which causes the example scripts to fail when executed via npm scripts.To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/mcp-use/mcp-use-ts.git cd mcp-use-tsError: Cannot find module '/mcp-use-ts/dist/examples/browser_use.js'Expected behavior
Example files should be compiled to the
dist/examples/directory so that the npm example scripts can execute them successfully.Environment
Additional context
Potential fix
Update the
tsconfig.jsonto include non-React examples in the build by adjusting the exclude list:If you want I can make a pull request to fix the examples