context7 icon indicating copy to clipboard operation
context7 copied to clipboard

MCP server error in Windsurf #mcp

Open csfalcao opened this issue 1 year ago • 2 comments

Can't use the MCP server. Using the code provided below:

"}, "context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp@latest"] }"

the error is:

"Error: failed to initialize server: <truncated 3 bytes> error code EEXIST npm error syscall rename npm error path /Users/csfalcao/.npm/_cacache/tmp/9ea4a422 npm error dest /Users/csfalcao/.npm/_cacache/content-v2/sha512/02/d7/e8d783a26d2bf9c00a7855636c15813501c850453bfd701196113e296561f362c845492f4d408e88e7badd2a7f5cae859531b6056cb849fb226f9992081f npm error errno -13 npm error EACCES: permission denied, rename '/Users/csfalcao/.npm/_cacache/tmp/9ea4a422' -> '/Users/csfalcao/.npm/_cacache/content-v2/sha512/02/d7/e8d783a26d2bf9c00a7855636c15813501c850453bfd701196113e296561f362c845492f4d408e88e7badd2a7f5cae859531b6056cb849fb226f9992081f' npm error File exists: /Users/csfalcao/.npm/_cacache/content-v2/sha512/02/d7/e8d783a26d2bf9c00a7855636c15813501c850453bfd701196113e296561f362c845492f4d408e88e7badd2a7f5cae859531b6056cb849fb226f9992081f npm error Remove the existing file and try again, or run npm npm error with --force to overwrite files recklessly. npm error A complete log of this run can be found in: /Users/csfalcao/.npm/_logs/2025-05-18T01_12_44_866Z-debug-0.log: server terminated. Check your configuration."

Other MCP servers are ok.

csfalcao avatar May 18 '25 01:05 csfalcao

Did you try the solutions in the Readme?

enesgules avatar May 18 '25 20:05 enesgules

Let us know if you can't solve the issue

enesgules avatar May 21 '25 15:05 enesgules