context7 icon indicating copy to clipboard operation
context7 copied to clipboard

Timeout when adding to Zed

Open secondl1ght opened this issue 3 months ago • 6 comments

When following the Context7 docs for adding the MCP to the Zed editor, it results in a timeout error.

Image Image

secondl1ght avatar Nov 18 '25 23:11 secondl1ght

FYI I tried with and without an API key but no luck either time.

secondl1ght avatar Nov 18 '25 23:11 secondl1ght

@secondl1ght thanks for the heads up, we'll investigate and fix this issue asap.

fahreddinozcan avatar Nov 19 '25 08:11 fahreddinozcan

@secondl1ght using a correct config, MCP seems to be working well. You might have some typo or misconfiguration on your settings.json file. I will be sharing edited version of my settings.json file by masking my API key. Can you compare my context_servers with yours to see if there's any misconfig in your settings.json?

// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
	"agent_servers": {
		"your_agent": {
			"command": "path_to_executable",
			"args": [],
			"env": {}
		}
	},
	"context_servers": {
		"Context7": {
			"source": "custom",
			"command": "npx",
			"args": ["-y", "@upstash/context7-mcp", "--api-key", "ctx7sk-API_KEY"]
		}
	}
}

One alternative would be to use MCP as an extension. You can use their marketplace to add Context7. Here's the reference: https://zed.dev/extensions/mcp-server-context7

fahreddinozcan avatar Nov 19 '25 09:11 fahreddinozcan

My config looks the exact same as yours, I would prefer to use the MCP directly so that is why I am not using the extension.

secondl1ght avatar Nov 19 '25 15:11 secondl1ght

Can you share your Zed and npm versions? It might be about a specific version, or if you're missing the npm, npx command might not work.

fahreddinozcan avatar Nov 20 '25 07:11 fahreddinozcan

Zed 0.213.3 NPM/NPX 10.9.3

secondl1ght avatar Nov 20 '25 17:11 secondl1ght