开源推荐
morning
GitHub 热门项目:context7
摘要
GitHub项目:context7 仓库地址:https://github。
https
img
shields
badge
README
2026-05-12
1 阅读
GitHub Trending
GitHub 项目:context7
仓库地址:https://github.com/upstash/context7
星级:55048 | 作者:upstash
项目描述:Context7 Platform——法学硕士和人工智能代码编辑器的最新代码文档
===================================================
自述文件内容:

[](https://cursor.com/en/install-mcp?name=context7&config=eyJ1cmwiOiJodHRwczovL21jcC5jb250ZXh0Ny5jb20vbWNwIn0%3D)
# Context7 Platform - 任何提示的最新代码文档
[](https://context7.com) [](https://smithery.ai/server/@upstash/context7-mcp) [](https://www.npmjs.com/package/@upstash/context7-mcp) [](./LICENSE)
[](./i18n/README.zh-TW.md) [](./i18n/README.zh-CN.md) [](./i18n/README.ja.md) [](./i18n/README.ko.md) [](./i18n/README.es.md) [](./i18n/README.fr.md) [![葡萄牙语文档(巴西)]()](./i18n/README.pt-BR.md) [](./i18n/README.it.md) [](./i18n/README.id-ID.md) [](./i18n/README.de.md) [](./i18n/README.ru.md) [](./i18n/README.uk.md) [](./i18n/README.tr.md) [](./i18n/README.ar.md) [](./i18n/README.vi.md)
## ❌ 没有上下文7
法学硕士依赖于您使用的图书馆的过时或通用信息。你得到:
- ❌代码示例已经过时并且基于一年前的训练数据
- ❌ 根本不存在的幻觉 API
- ❌旧软件包版本的通用答案
## ✅ 与上下文7
Context7 直接从源中提取最新的、特定于版本的文档和代码示例,并将它们直接放入您的提示中。
````txt
创建一个 Next.js 中间件来检查 cookie 中的有效 JWT
并将未经身份验证的用户重定向到“/login”。使用上下文7
````
````txt
配置 Cloudflare Worker 脚本进行缓存
JSON API 响应五分钟。使用上下文7
````
````txt
显示用于电子邮件/密码注册的 Supabase auth API。
````
Context7 获取最新代码