Skip to content

Conversation

@fernandaaraujo0202
Copy link

Descrição

I've added a new feature to the MCP server that allows users to compare two libraries directly. This makes it easier to evaluate different tools using Context7 data.

Main change:

  • New tool: I implemented a handler in src/index.ts that accepts libraryIdA and libraryIdB;

    • The tool performs searches in both libraries in parallel;
  • Type safety: Updated src/index.ts and src/lib/utils.ts with the necessary interfaces and types to support the new feature and ensure the project compiles without errors.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@fahreddinozcan
Copy link
Contributor

Hey @fernandaaraujo0202,
I think MCP can currently do this comparison, because searchLibrary tool returns multiple libraries at once, so they're comparable in single prompt. I'm curious why you think this tool is necessary?

we try to keep the MCP tools as concise and less as possible to make sure we don't bloat your context. So we are not adding new tools unless its really necessary.

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.

2 participants