context7 icon indicating copy to clipboard operation
context7 copied to clipboard

resolve_library_id: MCP error -32602

Open ImaginasoftDM opened this issue 1 year ago • 15 comments

Everytime mcp tool runs resolve_library_id I get this error:

2025-04-20 10:22:07.324 [error] ext7: Error calling tool 'resolve_library_id': MCP error -32602: MCP error -32602: Tool resolve_library_id not found

None of the libraries that I've tried work.

Image

Thx in advanced for the help.

ImaginasoftDM avatar Apr 20 '25 09:04 ImaginasoftDM

The issue is probably on the client side. There have been multiple reports about this in the context7-mcp repo, but we still haven’t found a deterministic cause. Another challenge is that I can’t reproduce it. If you’d like, we can hop on a call and try to debug it together.

enesgules avatar Apr 20 '25 21:04 enesgules

Also might be related to: https://forum.cursor.com/t/im-getting-mcp-error-with-the-latest-update/72733/48?page=3

enesgules avatar Apr 20 '25 21:04 enesgules

Thanks for the help, I changed my mcp name from context7 to context_7 and it worked :)

Edit: Sorry it worked but when I turned off cursor, it went back to the same problem.

ImaginasoftDM avatar Apr 21 '25 10:04 ImaginasoftDM

Getting same issue, I thought maybe coz i am on windows and perhaps npx was the issue. I changed to "context7": { "command": "cmd", "args": ["/c", "npx", "-y", "@upstash/context7-mcp@latest"] }

but same error.

I run this tool, but got no feedback. npx -y @modelcontextprotocol/inspector npx @upstash/context7-mcp@latest

Starting MCP inspector... ⚙️ Proxy server listening on port 6277 🔍 MCP Inspector is up and running at http://127.0.0.1:6274 🚀

(no feedback)

odeke avatar Apr 21 '25 13:04 odeke

Same issue here

josiahcoad avatar Apr 22 '25 14:04 josiahcoad

Could you try without the @latest tag or with bunx please?

enesgules avatar Apr 22 '25 15:04 enesgules

I tried again without latest tag, still with npx. Error: Failed to retrieve library documentation data from Context7

odeke avatar Apr 22 '25 15:04 odeke

Are you using latest npm release?

enesgules avatar Apr 22 '25 21:04 enesgules

Same here Tried now with latest bunx, and still getting same issue

GiladShoham avatar Apr 22 '25 21:04 GiladShoham

Cursor seems to automatically transform kebab case names to snake case, for example list-sites becomes list_sites when the agent tries to call the tool. It then (of course) cannot find the tool with that snake cased name because it does not exist.

It seems like they have fixed it: https://forum.cursor.com/t/im-getting-mcp-error-with-the-latest-update/72733/57

The new version is being rolled out. If you want early access, you need to enable it in the Cursor settings.

Image

enesgules avatar Apr 22 '25 21:04 enesgules

Hey @ImaginasoftDM

Is it working for you now?

enesgules avatar Apr 23 '25 07:04 enesgules

@enesgules upgrading to cursor 0.49 (via turning on beta) fixed it for me! YAY!

josiahcoad avatar Apr 23 '25 13:04 josiahcoad

I believe this is solved. If you encounter any issues please let us know.

enesgules avatar Apr 26 '25 03:04 enesgules

roo-code也存在这个问题并且我的node18以上版本

xiaolifeipiao avatar Apr 26 '25 14:04 xiaolifeipiao

Translation

roo-code also has this issue, even though my Node version is above 18.

Does it try to call the tools with underscores? What is the issue exactly?

enesgules avatar Apr 26 '25 14:04 enesgules