I can't make it work in Roo Code
I tried to use the same json configuration for for Claude Desktop in roo code, but it would not work even if it is the only mcp server in the file. I ran npx -y @upstash/context7-mcp@latest in the terminal and it works there, but when I save the mcp_settings.json file nothing happens.
I have the same issue with a number of MCP servers. Claude figured out how to work around it by installing the server globally using npm (instead of npx). Then you also need to change the mcp_settings.json like this. Obviously, your own path to index.js will differ:
"context7": {
"command": "node",
"args": [
"C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\@upstash\\context7-mcp\\dist\\index.js"
],
"stdio": [
"pipe",
"pipe",
"pipe"
],
"env": {
"PYTHONIOENCODING": "utf-8",
"NODE_ENV": "development"
},
"disabled": false,
"alwaysAllow": []
}
This seems like a client side issue, could you try with bunx or without the @latest tag plaese? Sometimes renaming the server also helps.
using it without @latest tag worked for me in Cursor on Macbook Pro. However I only have resolve-library-id and get-library-docs as tools, not sure if that's all to it.
Yep, there are only two tools.
Is this resolved @JuanDechia ?
Is this resolved @JuanDechia ?
I finally made it work with deno.
Great! Did you use the version in the README or something else?
Closing this since it is solved. If you have more questions please let us know.
Is this resolved @JuanDechia ?
I finally made it work with deno.
Can you mention how you did it? I've tried everything but with no success.
Is this resolved @JuanDechia ?
I finally made it work with deno.
Can you mention how you did it? I've tried everything but with no success.
Did you try it with the deno config in readme?
I've installed deno too, but only thing that makes RooCode read the new mcp is this command,
"context7": { "command": "cmd", "args": [ "/c", "npx", "-y", "@smithery/cli@latest", "run", "@upstash/context7-mcp" ]
Yet, I get timeout errors:
2025-04-23T10:01:05.122Z [Runner] Connecting to server: {"id":"@upstash/context7-mcp","connectionTypes":["ws"]} 2025-04-23T10:01:05.126Z [Runner] Connecting to WebSocket endpoint: https://server.smithery.ai/@upstash/context7-mcp MCP error -32001: Request timed out 2025-04-23T10:02:02.000Z [Runner] STDIN closed (client disconnected) 2025-04-23T10:02:02.000Z [Runner] Received exit signal, initiating shutdown... 2025-04-23T10:02:02.002Z [Runner] Starting cleanup process... 2025-04-23T10:02:02.002Z [Runner] Attempting to close transport (3s timeout)... 2025-04-23T10:02:02.012Z [Runner] WebSocket error: WebSocket was closed before the connection was established 2025-04-23T10:02:02.013Z [Runner] WebSocket connection closed 2025-04-23T10:02:02.013Z [Runner] Clean shutdown detected, performing graceful exit 2025-04-23T10:02:02.013Z [Runner] Final cleanup on exit
Using roocode, on a Github Codespaces, this worked for me.
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
}
}
}
Apparently I just waited long enough to finally understand it. I used the cmd command,
"context7": { "command": "cmd", "args": [ "/c", "npx", "-y", "@smithery/cli@latest", "run", "@upstash/context7-mcp" ]
It seems there was an overload of the servers and did not make a connection. Now it did, so hope won't break anymore.
Maybe put that in readme as a workaround.
I've yet to get Roo-Code to connect to Context7. Connects on Cline just fine.
I can get it to show up in MCP Servers after editing the mcp_settings.json but it always has an error on error tab.
"Context7 Documentation MCP Server running on studio"
If I use the code from GioPetro it times out after a long wait.