Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.
This repository was archived by the owner on May 21, 2026. It is now read-only.

[BUG] #67

Description

@Frangu77o

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:

  1. Clone the repository
    git clone https://github.com/mcp-use/mcp-use-ts.git
    cd mcp-use-ts
  2. Install the dependencies
    npm install
  3. Run an example script: (or any other example)
    npm run example:browser
  4. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions