-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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:
- "exclude": ["node_modules", "dist", "examples"]
+ "exclude": ["node_modules", "dist", "examples/react"]If you want I can make a pull request to fix the examples
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working