Files
2025-11-30 09:05:46 +08:00

51 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## Context7
使用 MCP 的 Context7 搜索技术文档。
### 使用方法
```bash
# 以请求 Claude 的形式
"用 context7 搜索 [搜索关键词]"
```
### 基本示例
```bash
# React hooks 调研
"用 context7 搜索 React hooks"
# 错误解决方法搜索
"用 context7 查找 TypeScript 的类型错误"
```
### 与 Claude 的协作
```bash
# 技术调研请求
"用 context7 查找 Rust 的所有权系统,并以初学者友好的方式解释"
# 错误解决请求
"用 context7 搜索 Python 的 ImportError 常见原因和解决方法"
# 最佳实践确认
"用 context7 查找 React 性能优化的最佳实践"
```
### 详细示例
```bash
# 从多个角度调研
"用 context7 从以下角度调研 GraphQL
1. 基本概念和与 REST API 的区别
2. 实现方法和最佳实践
3. 常见问题和解决方法"
# 特定版本或环境的调研
"用 context7 搜索 Next.js 14 的新功能,重点说明 App Router 的使用方法"
```
### 注意事项
如果 Context7 找不到信息Claude 会自动建议其他方法,如 Web 搜索等。