From 3015c5dd244591ae60301b810adbcf9f520360e7 Mon Sep 17 00:00:00 2001 From: "shawn.qian" Date: Sun, 27 Apr 2025 11:35:23 +0800 Subject: [PATCH] docs: fix Chinese documentation and JSON format in Zed installation section - Add VS Code installation button to Chinese documentation - Add Node v18 requirement note to Chinese MCP client errors section - Remove duplicate JeredBlu entry in Chinese media section - Fix JSON format in Zed installation section in English documentation --- README.md | 2 +- docs/README.zh-CN.md | 23 +++++++++++++++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7e4ad8d..ee8e903 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,7 @@ It can be installed via [Zed Extensions](https://zed.dev/extensions?query=Contex "command": { "path": "npx", "args": ["-y", "@upstash/context7-mcp@latest"] - } + }, "settings": {} } } diff --git a/docs/README.zh-CN.md b/docs/README.zh-CN.md index 1ec2641..e9b79cd 100644 --- a/docs/README.zh-CN.md +++ b/docs/README.zh-CN.md @@ -1,6 +1,6 @@ # Context7 MCP - 为所有Prompt获取最新文档 -[![网站](https://img.shields.io/badge/Website-context7.com-blue)](https://context7.com) [![smithery徽章](https://smithery.ai/badge/@upstash/context7-mcp)](https://smithery.ai/server/@upstash/context7-mcp) +[![网站](https://img.shields.io/badge/Website-context7.com-blue)](https://context7.com) [![smithery徽章](https://smithery.ai/badge/@upstash/context7-mcp)](https://smithery.ai/server/@upstash/context7-mcp) [在VS Code中安装 (npx)](https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522context7%2522%252C%2522config%2522%253A%257B%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522%2540upstash%252Fcontext7-mcp%2540latest%2522%255D%257D%257D) ## ❌ 不使用Context7 @@ -130,6 +130,24 @@ npx -y @smithery/cli install @upstash/context7-mcp --client claude } ``` +### 在Zed中安装 + +可以通过[Zed扩展](https://zed.dev/extensions?query=Context7)安装,或者你可以将以下内容添加到你的Zed `settings.json`文件中。更多信息请参见[Zed Context Server文档](https://zed.dev/docs/assistant/context-servers)。 + +```json +{ + "context_servers": { + "Context7": { + "command": { + "path": "npx", + "args": ["-y", "@upstash/context7-mcp@latest"] + }, + "settings": {} + } + } +} +``` + ### 在Claude Code中安装 运行此命令。更多信息请参见[Claude Code MCP文档](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/tutorials#set-up-model-context-protocol-mcp)。 @@ -261,6 +279,8 @@ npx -y @modelcontextprotocol/inspector npx @upstash/context7-mcp@latest 3. 尝试使用`deno`作为替代方案。 +4. 确保你使用的是Node v18或更高版本,以便使用`npx`时获得原生fetch支持。 + ## Context7媒体报道 - [Better Stack: "免费工具让Cursor变得更智能10倍"](https://youtu.be/52FC3qObp9E) @@ -268,7 +288,6 @@ npx -y @modelcontextprotocol/inspector npx @upstash/context7-mcp@latest - [Income stream surfers: "Context7 + SequentialThinking MCPs: 这是AGI吗?"](https://www.youtube.com/watch?v=-ggvzyLpK6o) - [Julian Goldie SEO: "Context7: 新的MCP AI代理更新"](https://www.youtube.com/watch?v=CTZm6fBYisc) - [JeredBlu: "Context 7 MCP: 即时获取文档 + VS Code设置"](https://www.youtube.com/watch?v=-ls0D-rtET4) -- [JeredBlu: "Context 7 MCP: 即时获取文档 + VS Code设置"](https://www.youtube.com/watch?v=-ls0D-rtET4) - [Income stream surfers: "Context7: 将改变AI编码的新MCP服务器"](https://www.youtube.com/watch?v=PS-2Azb-C3M) ## Star历史