首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
MCP广场 >详情页
Context7 MCP云托管2025-10-11899分享添加福利群:解决AI开发者的「MCP实战痛点」
Context7 MCP 是一个模型上下文协议(MCP)服务器,旨在为开发者提供最新的代码文档和示例。它通过直接从源代码提取特定版本的文档,确保生成的内容是最新且准确的。Context7 解决了传统 LLMs 依赖于过时或通用信息的问题,避免了过时代码、虚构 API 和旧版本包的通用答案。
By upstash
2025-10-11899
github
详情内容
工具描述

封面

Context7 MCP - 为任何提示提供最新代码文档

官网 smithery徽章 NPM版本

安装MCP服务器 在VS Code中安装(npx)

繁體中文 简体中文 日本語 한국어 문서 Documentación en Español Documentation en Français Documentação em Português (Brasil) Documentazione in italiano Dokumentasi Bahasa Indonesia Dokumentation auf Deutsch Документация на русском языке Українська документація Türkçe Doküman Arabic Documentation Tiếng Việt

❌ 没有Context7的情况

大型语言模型(LLMs)依赖您使用库的过时或通用信息。您会得到:

  • ❌ 代码示例过时,基于一年前的训练数据
  • ❌ 虚构的API,实际并不存在
  • ❌ 针对旧包版本的通用答案

✅ 使用Context7

Context7 MCP直接从源代码获取最新、特定版本的文档和代码示例,并将其直接放入您的提示中。

在Cursor提示中添加use context7

创建一个Next.js中间件,检查cookie中的有效JWT并将未认证用户重定向到`/login`。use context7
配置Cloudflare Worker脚本,将JSON API响应缓存五分钟。use context7

Context7将最新代码示例和文档直接获取到您的LLM上下文中。

  • 1️⃣ 自然地编写您的提示
  • 2️⃣ 告诉LLMuse context7
  • 3️⃣ 获得可工作的代码答案

无需切换标签页,没有虚构的API,没有过时的代码生成。

📚 添加项目

查看我们的项目添加指南,了解如何将您喜爱的库添加(或更新)到Context7中。

🛠️ 安装

要求

  • Node.js >= v18.0.0
  • Cursor、Claude Code、VSCode、Windsurf或其他MCP客户端
  • Context7 API密钥(可选,用于提高速率限制)(在context7.com/dashboard创建账户获取)

[!WARNING] SSE协议弃用通知

服务器发送事件(SSE)传输协议已被弃用,其端点将在未来版本中移除。请改用HTTP或stdio传输方法。

通过Smithery安装

通过Smithery为任何客户端自动安装Context7 MCP服务器:

npx -y @smithery/cli@latest install @upstash/context7-mcp --client <CLIENT_NAME> --key <YOUR_SMITHERY_KEY>

您可以在Smithery.ai网页找到您的Smithery密钥。

在Cursor中安装

前往:设置 -> Cursor设置 -> MCP -> 添加新的全局MCP服务器

建议将以下配置粘贴到您的Cursor ~/.cursor/mcp.json文件中。您也可以通过在当前项目文件夹创建.cursor/mcp.json来安装到特定项目。更多信息请参阅Cursor MCP文档

自Cursor 1.0起,您可以点击下方安装按钮进行一键安装。

Cursor远程服务器连接

安装MCP服务器

{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "CONTEXT7_API_KEY": "您的API密钥"
      }
    }
  }
}

Cursor本地服务器连接

安装MCP服务器

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "您的API密钥"]
    }
  }
}
在Claude Code中安装

运行此命令。更多信息请参阅Claude Code MCP文档

Claude Code远程服务器连接

claude mcp add --transport http context7 https://mcp.context7.com/mcp --header "CONTEXT7_API_KEY: 您的API密钥"

Claude Code本地服务器连接

claude mcp add context7 -- npx -y @upstash/context7-mcp --api-key 您的API密钥
在Windsurf中安装

将此添加到您的Windsurf MCP配置文件中。更多信息请参阅Windsurf MCP文档

Windsurf远程服务器连接

{
  "mcpServers": {
    "context7": {
      "serverUrl": "https://mcp.context7.com/mcp",
      "headers": {
        "CONTEXT7_API_KEY": "您的API密钥"
      }
    }
  }
}

Windsurf本地服务器连接

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "您的API密钥"]
    }
  }
}
在VS Code中安装

在VS Code中安装(npx) 在VS Code Insiders中安装(npx)

将此添加到您的VS Code MCP配置文件中。更多信息请参阅VS Code MCP文档

VS Code远程服务器连接

"mcp": {
  "servers": {
    "context7": {
      "type": "http",
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "CONTEXT7_API_KEY": "您的API密钥"
      }
    }
  }
}

VS Code本地服务器连接

"mcp": {
  "servers": {
    "context7": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "您的API密钥"]
    }
  }
}
在Cline中安装

您可以通过Cline MCP服务器市场轻松安装Context7,按照以下说明操作:

  1. 打开Cline
  2. 点击汉堡菜单图标(☰)进入MCP服务器部分。
  3. 市场标签页中使用搜索栏查找_Context7_。
  4. 点击安装按钮。

或者您可以直接编辑MCP服务器配置:

  1. 打开Cline
  2. 点击汉堡菜单图标(☰)进入MCP服务器部分。
  3. 选择远程服务器标签页。
  4. 点击编辑配置按钮。
  5. 将context7添加到mcpServers中:
{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "CONTEXT7_API_KEY": "您的API密钥"
      }
    }
  }
}
{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp",
      "type": "streamableHttp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
在Zed中安装

可通过Zed扩展商店安装,或将其添加到Zed的settings.json配置中。更多信息请参阅Zed上下文服务器文档

{
  "context_servers": {
    "Context7": {
      "command": {
        "path": "npx",
        "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
      },
      "settings": {}
    }
  }
}
在Augment Code中安装

可通过图形界面或手动配置两种方式在Augment Code中配置Context7 MCP。

A. 使用图形界面

  1. 点击汉堡菜单

  2. 选择设置

  3. 进入工具板块

  4. 点击**+ 添加MCP**按钮

  5. 输入以下命令:

    npx -y @upstash/context7-mcp@latest
    
  6. 命名MCP为:Context7

  7. 点击添加按钮

添加完成后,即可在Augment Code中直接使用Context7的最新代码文档功能。


B. 手动配置

  1. 按下Cmd/Ctrl Shift P快捷键,或点击Augment面板的汉堡菜单
  2. 选择编辑设置
  3. 在高级设置中点击"在settings.json中编辑"
  4. augment.advanced对象的mcpServers数组中添加服务器配置
"augment.advanced": {
  "mcpServers": [
    {
      "name": "context7",
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
    }
  ]
}

添加完成后请重启编辑器。如遇错误请检查语法,确保没有遗漏闭合括号或逗号。

在Roo Code中安装

将此配置添加到Roo Code的MCP配置文件。更多信息请参阅Roo Code MCP文档

远程服务器连接

{
  "mcpServers": {
    "context7": {
      "type": "streamable-http",
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "CONTEXT7_API_KEY": "YOUR_API_KEY",
      }
    }
  }
}

本地服务器连接

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
    }
  }
}
在Gemini CLI中安装

详情参阅Gemini CLI配置文档

  1. 打开Gemini CLI设置文件(位于~/.gemini/settings.json
  2. settings.json文件的mcpServers对象中添加:
{
  "mcpServers": {
    "context7": {
      "httpUrl": "https://mcp.context7.com/mcp",
      "headers": {
        "CONTEXT7_API_KEY": "YOUR_API_KEY",
        "Accept": "application/json, text/event-stream"
      }
    }
  }
}

或配置本地服务器:

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
    }
  }
}

mcpServers对象不存在,请手动创建。

在Claude Desktop中安装

远程服务器连接

打开Claude Desktop,进入设置 > 连接器 > 添加自定义连接器。名称填写Context7,远程MCP服务器URL填写https://mcp.context7.com/mcp

本地服务器连接

打开Claude Desktop开发者设置,编辑claude_desktop_config.json文件添加以下配置。详情参阅Claude Desktop MCP文档

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
    }
  }
}
在Opencode中安装

将此配置添加到Opencode配置文件中。更多信息请参阅Opencode MCP文档

远程服务器连接

"mcp": {
  "context7": {
    "type": "remote",
    "url": "https://mcp.context7.com/mcp",
    "headers": {
      "CONTEXT7_API_KEY": "YOUR_API_KEY"
    },
    "enabled": true
  }
}

本地服务器连接

{
  "mcp": {
    "context7": {
      "type": "local",
      "command": ["npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
      "enabled": true
    }
  }
}
在OpenAI Codex中安装

更多信息请参阅OpenAI Codex

在OpenAI Codex的MCP服务器设置中添加以下配置:

[mcp_servers.context7]
args = ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
command = "npx"

⚠️ Windows系统注意事项

Windows用户使用默认配置可能会遇到请求超时错误。此时需要显式配置Node.js完整路径:

[mcp_servers.context7]
command = "C:\\Program Files\\nodejs\\node.exe"
args = [
  "C:\\Users\\yourname\\AppData\\Roaming\\npm\\node_modules\\@upstash\\context7-mcp\\dist\\index.js",
  "--transport",
  "stdio",
  "--api-key",
  "YOUR_API_KEY"
]

或使用替代方案:

[mcp_servers.context7]
command = "cmd"
args = [
    "/c",
    "npx",
    "-y",
    "@upstash/context7-mcp",
    "--api-key",
    "YOUR_API_KEY"
]
env = { SystemRoot="C:\\Windows" }
startup_timeout_ms = 20_000

此配置可确保Codex CLI在Windows系统稳定运行。

在JetBrains AI Assistant中安装

详情参阅JetBrains AI助手文档

  1. 在JetBrains IDE中进入设置 -> 工具 -> AI助手 -> 模型上下文协议(MCP)
  2. 点击+ 添加
  3. 在对话框左上角选择"以JSON格式"选项
  4. 添加以下配置后点击确定
{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
    }
  }
}
  1. 点击应用保存更改
  2. JetBrains Junie中可通过设置 -> 工具 -> Junie -> MCP设置同样方式添加
在Kiro中安装

详情参阅Kiro模型上下文协议文档

  1. 导航至Kiro > MCP服务器
  2. 点击+ 添加按钮新建MCP服务器
  3. 粘贴以下配置:
{
  "mcpServers": {
    "Context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
      "env": {},
      "disabled": false,
      "autoApprove": []
    }
  }
}
  1. 点击保存应用更改
在Trae中安装

使用"手动添加"功能并填写MCP服务器的JSON配置信息。 更多详情请访问Trae文档

远程服务器连接

{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

本地服务器连接

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
    }
  }
}
使用Bun或Deno运行时

以下方案适用于支持通过command + args启动本地MCP服务器的所有客户端。

Bun运行时

{
  "mcpServers": {
    "context7": {
      "command": "bunx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
    }
  }
}

Deno运行时

{
  "mcpServers": {
    "context7": {
      "command": "deno",
      "args": [
        "run",
        "--allow-env=NO_DEPRECATION,TRACE_DEPRECATION",
        "--allow-net",
        "npm:@upstash/context7-mcp"
      ]
    }
  }
}
使用Docker容器

若希望通过Docker容器运行MCP服务器:

  1. 构建Docker镜像:

    在项目根目录创建Dockerfile文件:

    点击查看Dockerfile内容
    FROM node:18-alpine
    
    WORKDIR /app
    
    # 全局安装最新版本
    RUN npm install -g @upstash/context7-mcp
    
    # 暴露默认端口(可选,取决于MCP客户端交互方式)
    # EXPOSE 3000
    
    # 运行服务器的默认命令
    CMD ["context7-mcp"]
    

    使用标签构建镜像(如context7-mcp)。请确保Docker Desktop(或Docker守护进程)正在运行。在保存Dockerfile的目录下执行:

    docker build -t context7-mcp .
    
  2. 配置MCP客户端:

    更新MCP客户端配置以使用Docker命令。

    示例cline_mcp_settings.json配置:

    {
      "mcpServers": {
        "Сontext7": {
          "autoApprove": [],
          "disabled": false,
          "timeout": 60,
          "command": "docker",
          "args": ["run", "-i", "--rm", "context7-mcp"],
          "transportType": "stdio"
        }
      }
    }
    

    注:此为示例配置。请根据具体MCP客户端(如Cursor、VS Code等)参考前文示例调整结构(如mcpServersservers的区别)。同时确保args中的镜像名称与docker build命令使用的标签一致。

通过桌面扩展安装

将mcpb文件夹下的context7.mcpb文件安装并添加到您的客户端。更多信息请查阅MCP bundles文档

Windows系统安装

Windows配置与Linux或macOS略有不同(示例中使用的是_Cline_)。其他编辑器配置原理相同,请参考commandargs的配置方式。

{
  "mcpServers": {
    "github.com/upstash/context7-mcp": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
      "disabled": false,
      "autoApprove": []
    }
  }
}
Amazon Q开发者CLI安装

将此配置添加到您的Amazon Q开发者CLI配置文件中。详情参见Amazon Q开发者CLI文档

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
    }
  }
}
Warp终端安装

详情参见Warp模型上下文协议文档

  1. 进入设置 > AI > 管理MCP服务器
  2. 点击+添加按钮新建MCP服务器
  3. 粘贴以下配置:
{
  "Context7": {
    "command": "npx",
    "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
    "env": {},
    "working_directory": null,
    "start_on_launch": true
  }
}
  1. 点击保存应用更改
Copilot编码代理安装

在Copilot编码代理中使用Context7

在Copilot编码代理配置文件的mcp部分添加以下配置(路径:仓库->设置->Copilot->编码代理->MCP配置):

{
  "mcpServers": {
    "context7": {
      "type": "http",
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "CONTEXT7_API_KEY": "YOUR_API_KEY"
      },
      "tools": ["get-library-docs", "resolve-library-id"]
    }
  }
}

更多信息请参阅GitHub官方文档

LM Studio安装

更多信息请查看LM Studio MCP支持文档

一键安装:

将context7 MCP服务器添加到LM Studio

手动设置:

  1. 进入程序(右侧)> 安装 > 编辑mcp.json
  2. 粘贴以下配置:
{
  "mcpServers": {
    "Context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
    }
  }
}
  1. 点击保存应用更改
  2. 在右侧程序下方或聊天框底部插头图标处切换MCP服务器开关
Visual Studio 2022安装

按照Visual Studio MCP服务器文档配置Context7 MCP。

将以下内容添加到Visual Studio MCP配置文件(详情见Visual Studio文档):

{
  "inputs": [],
  "servers": {
    "context7": {
      "type": "http",
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "CONTEXT7_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

或配置本地服务器:

{
  "mcp": {
    "servers": {
      "context7": {
        "type": "stdio",
        "command": "npx",
        "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
      }
    }
  }
}

更多信息和故障排除请参考Visual Studio MCP服务器文档

Crush终端安装

将此配置添加到Crush配置文件中。更多信息请查看Crush MCP文档

Crush远程服务器连接(HTTP)

{
  "$schema": "https://charm.land/crush.json",
  "mcp": {
    "context7": {
      "type": "http",
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "CONTEXT7_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Crush本地服务器连接

{
  "$schema": "https://charm.land/crush.json",
  "mcp": {
    "context7": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
    }
  }
}
BoltAI安装

打开应用"设置"页面,进入"插件"选项,输入以下JSON:

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
    }
  }
}

保存后,在聊天窗口输入get-library-docs后跟Context7文档ID(例如get-library-docs /nuxt/ui)。更多信息请访问BoltAI文档站点。iOS版BoltAI请参阅本指南

Rovo开发CLI安装

通过运行以下命令编辑Rovo开发CLI的MCP配置:

acli rovodev mcp

配置示例:

远程服务器连接

{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

本地服务器连接

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
    }
  }
}
Zencoder安装

在Zencoder中配置Context7 MCP步骤如下:

  1. 进入Zencoder菜单(...)
  2. 从下拉菜单中选择Agent tools
  3. 点击Add custom MCP
  4. 添加下方提供的名称和服务器配置,确保点击Install按钮
{
  "command": "npx",
  "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}

添加MCP服务器后即可持续使用。

Qodo Gen安装

详情参见Qodo Gen文档

  1. 在VSCode或IntelliJ中打开Qodo Gen聊天面板
  2. 点击Connect more tools
  3. 点击+ Add new MCP
  4. 添加以下配置:

Qodo Gen本地服务器连接

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
    }
  }
}

Qodo Gen远程服务器连接

{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp"
    }
  }
}
Perplexity桌面版安装

更多信息请查看Perplexity本地和远程MCP文档

  1. 进入Perplexity > 设置
  2. 选择Connectors
  3. 点击Add Connector
  4. 选择Advanced
  5. 输入服务器名称:Context7
  6. 在文本区域粘贴以下JSON:
{
  "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],
  "command": "npx",
  "env": {}
}
  1. 点击保存

🔨 可用工具

Context7 MCP提供以下LLM可用工具:

  • resolve-library-id:将通用库名解析为Context7兼容的库ID

    • libraryName(必填):要搜索的库名称
  • get-library-docs:使用Context7兼容库ID获取库文档

    • context7CompatibleLibraryID(必填):精确的Context7兼容库ID(如/mongodb/docs/vercel/next.js
    • topic(可选):聚焦特定主题的文档(如"routing"、"hooks")
    • tokens(可选,默认5000):返回的最大token数。小于1000的值会自动调整为1000。

🛟 使用技巧

添加规则

如果不想在每个提示中都添加use context7,可以在MCP客户端的规则部分定义简单规则:

  • Windsurf:在.windsurfrules文件中
  • Cursor:从Cursor设置 > Rules部分
  • Claude Code:在CLAUDE.md文件中

或您MCP客户端中的等效位置,以便在任何代码问题上自动调用Context7。

规则示例

当我需要代码生成、设置或配置步骤,或库/API文档时,始终使用context7。
这意味着您应该自动使用Context7 MCP工具来解析库ID和获取库文档,
而无需我明确要求。

此后,您将在任何相关对话中自动获得Context7文档,无需额外输入。您可以根据使用场景调整此规则。

使用库ID

如果已明确知道要使用的库,请将其Context7 ID添加到提示中。这样Context7 MCP服务器可以跳过库匹配步骤,直接获取文档。

使用Supabase实现基础认证功能。通过/supabase/supabase库加载API文档。

斜杠语法明确告知MCP工具需要加载哪个库的文档。

HTTPS代理配置

若您处于HTTP代理环境下,Context7会读取标准环境变量https_proxy/HTTPS_PROXY

💻 开发指南

克隆项目并安装依赖:

bun i

构建项目:

bun run build

启动服务:

bun run dist/index.js

命令行参数

context7-mcp支持以下参数:

  • --transport <stdio|http> – 选择传输协议(默认stdio)。注意HTTP传输会自动提供HTTP和SSE端点
  • --port <数字> – HTTP传输的监听端口(默认3000
  • --api-key <密钥> – 认证API密钥。可通过context7.com/dashboard注册获取

HTTP传输示例(端口8080):

bun run dist/index.js --transport http --port 8080

stdio传输示例:

bun run dist/index.js --transport stdio --api-key YOUR_API_KEY
本地配置示例
{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["tsx", "/path/to/folder/context7/src/index.ts", "--api-key", "YOUR_API_KEY"]
    }
  }
}
使用MCP检测器测试
npx -y @modelcontextprotocol/inspector npx @upstash/context7-mcp

🚨 故障排查

模块未找到错误

若遇到ERR_MODULE_NOT_FOUND,尝试用bunx替代npx

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

这通常能解决npx在特定环境下模块解析异常的问题。

ESM模块解析问题

对于Error: Cannot find module 'uriTemplate.js'类错误,尝试添加--experimental-vm-modules参数:

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "--node-options=--experimental-vm-modules", "@upstash/context7-mcp@1.0.6"]
    }
  }
}
TLS证书问题

使用--experimental-fetch参数绕过TLS相关问题:

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "--node-options=--experimental-fetch", "@upstash/context7-mcp"]
    }
  }
}
通用MCP客户端错误
  1. 尝试在包名后添加@latest
  2. 使用bunx替代npx
  3. 可考虑使用deno作为备选方案
  4. 确保使用Node.js v18及以上版本以获得原生fetch支持

⚠️ 免责声明

Context7项目由社区贡献,虽然我们努力保持高质量,但无法保证所有库文档的准确性、完整性和安全性。Context7列出的项目均由各自所有者开发维护,非Context7官方维护。如发现可疑、不当或潜在有害内容,请使用项目页面的"举报"按钮立即通知我们。我们将严肃处理所有举报,及时审查被标记内容以维护平台的安全性和完整性。使用Context7即表示您知悉需自行承担使用风险。

🤝 联系我们

获取最新动态并加入社区:

📺 媒体报道

⭐ 星标历史

星标历史图表

📄 许可证

MIT协议

连接服务
Server已在腾讯云托管,可在连接后免费调用和在线进行工具测试~
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档