Skip to content

Conversation

@flaviodelgrosso
Copy link
Contributor

This pull request introduces a new feature for searching npm packages, along with updates to the project configuration and dependencies. The changes include implementing a new tool for npm package search.

Closes #53

New MCP Tool search_npm_packages

  • Added a new tool to search for npm packages using the npm-registry-sdk, with support for filtering by qualifiers like author, scope and keywords.
  • Integrated the searchNpmPackages tool into the server in src/server.ts and updated server metadata to dynamically load the name, version and description from package.json.

Dependency Updates

  • Added npm-registry-sdk as a new dependency in package.json.
  • Updated @vitest/coverage-v8 and moved vitest to dev dependencies.

Testing

  • Added tests for the searchNpmPackages functionality in test/searchNpmPackages.test.ts. Tests cover successful searches, handling of no results, use of qualifiers, missing package details and error scenarios.

Chore Updates

  • Fixed lint-staged and husky configurations on pre-commit hook

@alfonsograziano
Copy link
Owner

Hey @flaviodelgrosso this sounds like a nice addition! In case you finalize this please let me know, happy to release this new feature in the next release :D

@flaviodelgrosso flaviodelgrosso marked this pull request as ready for review June 3, 2025 10:52
Copy link
Owner

@alfonsograziano alfonsograziano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @flaviodelgrosso LGTM. Cannot wait to try it out!

@alfonsograziano alfonsograziano merged commit 53e7436 into alfonsograziano:master Jun 5, 2025
2 checks passed
@flaviodelgrosso flaviodelgrosso deleted the feat/search-deps-tool branch June 5, 2025 20:04
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.

Dependency Search Tool for Node.js

2 participants