Skip to content

Fix: Resolve build errors related to missing dependencies and types #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

galimbertti
Copy link

This commit addresses several build errors that were occurring due to missing npm packages, type definitions, or outdated code references.

The following issues were resolved:

  • Installed missing dependencies: node-fetch, yargs.
  • Ensured vitest and @modelcontextprotocol/sdk are correctly installed.
  • Installed @types/node to provide type definitions for Node.js built-in objects like process.
  • Investigated a TS2345 type error related to enabledToolsSet. This error appears to be from a previous version of your code, as the relevant logic is no longer present in the current CLI entry point (scripts/start-server.ts) and the build now completes successfully.

The build process (npm run build) now completes without errors.

This commit addresses several build errors that were occurring due to missing npm packages, type definitions, or outdated code references.

The following issues were resolved:
- Installed missing dependencies: `node-fetch`, `yargs`.
- Ensured `vitest` and `@modelcontextprotocol/sdk` are correctly installed.
- Installed `@types/node` to provide type definitions for Node.js built-in objects like `process`.
- Investigated a `TS2345` type error related to `enabledToolsSet`. This error appears to be from a previous version of your code, as the relevant logic is no longer present in the current CLI entry point (`scripts/start-server.ts`) and the build now completes successfully.

The build process (`npm run build`) now completes without errors.
@joshcanhelp
Copy link
Contributor

@galimbertti - I'm just trying this out locally and getting familiar with the repo. npm install && npm run build worked for me without any changes (node 22.14.0).

Installed missing dependencies: node-fetch, yargs

I don't see these used anywhere. axios is the HTTP library being used and I don't see yargs anywhere in here.

Ensured vitest and @modelcontextprotocol/sdk are correctly installed.

SDK bump is probably a good thing but everything worked for me in Claude with the latest on main. Tried npx vitest run as well and it ran but have 4 failed tests.

Installed @types/node

Looks like that's already installed

Hopefully that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants