Timeout when adding to Zed
When following the Context7 docs for adding the MCP to the Zed editor, it results in a timeout error.
FYI I tried with and without an API key but no luck either time.
@secondl1ght thanks for the heads up, we'll investigate and fix this issue asap.
@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
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.
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.
Zed 0.213.3 NPM/NPX 10.9.3