resolve_library_id: MCP error -32602
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.
Thx in advanced for the help.
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.
Also might be related to: https://forum.cursor.com/t/im-getting-mcp-error-with-the-latest-update/72733/48?page=3
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.
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)
Same issue here
Could you try without the @latest tag or with bunx please?
I tried again without latest tag, still with npx. Error: Failed to retrieve library documentation data from Context7
Are you using latest npm release?
Same here Tried now with latest bunx, and still getting same issue
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.
Hey @ImaginasoftDM
Is it working for you now?
@enesgules upgrading to cursor 0.49 (via turning on beta) fixed it for me! YAY!
I believe this is solved. If you encounter any issues please let us know.
roo-code也存在这个问题并且我的node18以上版本
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?